Skip to content

[master] Fix missing arg in acme state/module "dns_plugin_propagate_seconds"#64441

Closed
rittycat wants to merge 1 commit into
saltstack:masterfrom
rittycat:fix-acme-missing-arg
Closed

[master] Fix missing arg in acme state/module "dns_plugin_propagate_seconds"#64441
rittycat wants to merge 1 commit into
saltstack:masterfrom
rittycat:fix-acme-missing-arg

Conversation

@rittycat

@rittycat rittycat commented Jun 9, 2023

Copy link
Copy Markdown
Contributor

What does this PR do?

Adds the function arguments, and the cmd append required to make the documented argument 'dns_plugin_propagate_seconds` work

What issues does this PR fix or reference?

Fixes: #63700

Previous Behavior

The argument was documented but did not exist in code

New Behavior

The relevant code was added for both state and module, and documented in state

Merge requirements satisfied?

[NOTICE] Bug fixes or features added to Salt require tests.

Commits signed with GPG?

Yes

Please review Salt's Contributing Guide for best practices.

See GitHub's page on GPG signing for more information about signing commits with GPG.

@rittycat rittycat requested a review from a team as a code owner June 9, 2023 07:34
@rittycat rittycat requested review from dwoz and removed request for a team June 9, 2023 07:34
@salt-project-bot-prod-environment salt-project-bot-prod-environment Bot changed the title Fix missing arg in acme state/module "dns_plugin_propagate_seconds" [master] Fix missing arg in acme state/module "dns_plugin_propagate_seconds" Jun 9, 2023
@rittycat rittycat temporarily deployed to ci June 9, 2023 07:50 — with GitHub Actions Inactive
@rittycat rittycat temporarily deployed to ci June 9, 2023 07:50 — with GitHub Actions Inactive
@rittycat rittycat temporarily deployed to ci June 9, 2023 07:50 — with GitHub Actions Inactive
@rittycat rittycat temporarily deployed to ci June 9, 2023 07:50 — with GitHub Actions Inactive
@rittycat rittycat temporarily deployed to ci June 9, 2023 08:10 — with GitHub Actions Inactive
@rittycat rittycat temporarily deployed to ci June 9, 2023 08:13 — with GitHub Actions Inactive
@rittycat rittycat temporarily deployed to ci June 9, 2023 09:02 — with GitHub Actions Inactive
@rittycat rittycat temporarily deployed to ci June 9, 2023 09:02 — with GitHub Actions Inactive
@rittycat rittycat temporarily deployed to ci June 9, 2023 09:02 — with GitHub Actions Inactive
@rittycat rittycat temporarily deployed to ci June 9, 2023 09:02 — with GitHub Actions Inactive
@rittycat rittycat temporarily deployed to ci June 9, 2023 09:02 — with GitHub Actions Inactive
@rittycat rittycat temporarily deployed to ci June 9, 2023 09:02 — with GitHub Actions Inactive
@rittycat rittycat temporarily deployed to ci June 9, 2023 09:09 — with GitHub Actions Inactive
@rittycat rittycat temporarily deployed to ci June 9, 2023 09:09 — with GitHub Actions Inactive
@rittycat rittycat temporarily deployed to ci June 9, 2023 09:09 — with GitHub Actions Inactive
@rittycat rittycat temporarily deployed to ci June 9, 2023 09:09 — with GitHub Actions Inactive
@rittycat rittycat temporarily deployed to ci June 9, 2023 09:09 — with GitHub Actions Inactive
@rittycat rittycat temporarily deployed to ci June 9, 2023 09:09 — with GitHub Actions Inactive

@Ch3LL Ch3LL left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this, would you mind also adding some test coverage to ensure this does not regress in the future.

@dwoz dwoz added this to the Argon v3008.0 milestone Dec 18, 2023
@dwoz dwoz requested a review from a team as a code owner March 16, 2025 22:09

@twangboy twangboy left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will also need some tests

Comment thread salt/modules/acme.py
if dns_plugin == "cloudflare":
cmd.append("--dns-cloudflare")
cmd.append("--dns-cloudflare-credentials {}".format(dns_plugin_credentials))
cmd.append("--dns-cloudflare-propagation-seconds {}".format(dns_plugin_propagate_seconds))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add docs for this new parameter as well as a .. version-added::. If you can, document the other parameters as well.

Comment thread salt/states/acme.py
:param https_01_address: The address the server listens to during http-01 challenge.
:param dns_plugin: Name of a DNS plugin to use (currently only 'cloudflare')
:param dns_plugin_credentials: Path to the credentials file if required by the specified DNS plugin
:param dns_plugin_propagate_seconds: Number of seconds to wait for DNS propogations before asking ACME servers to verify the DNS record. (default 10)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a .. version-added:: comment here as well.

@twangboy twangboy added test:full Run the full test suite needs-testcase PR needs test cases written, or the issue is about a bug/feature that needs test cases labels Jul 3, 2025
@dwoz

dwoz commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Closing — the author's fork was deleted so a maintainer-side rebase isn't mechanically possible on this PR. Reopened as #69404 against 3006.x (the oldest branch where acme still ships — the module was removed from master/3008.x in dc526dc community-extensions purge) with @rittycat preserved as commit author.

@dwoz dwoz closed this Jun 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

has-failing-test needs-testcase PR needs test cases written, or the issue is about a bug/feature that needs test cases test:full Run the full test suite

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] dns_plugin_propagate_seconds is missing from acme.cert

4 participants