Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Limit DigitalOcean records for cleanup to TXT only #6875

Merged
merged 1 commit into from
Apr 10, 2024

Conversation

SgtCoDFish
Copy link
Member

There was a slack report that in cleanup, the digitalocean webhook would delete A records if the domain had a CNAME.

I’m using DNS01 validation (with DigitalOcean as the provider) for a domain which is CNAME’d. Every time there’s a challenge which succeeds, in the clean up process, the A record where the verification domain is pointing to gets deleted. This causes many sites to fall over.

I don't really have the bandwidth to dig too much into that right now, but it seems a pretty severe bug so it seems worth trying a fix.

This PR should ensure that only TXT records can be considered for deletion.

Kind

/kind bug

Release Note

DigitalOcean: Ensure that only TXT records are considered for deletion when cleaning up after an ACME challenge

Signed-off-by: Ashley Davis <ashley.davis@venafi.com>
@jetstack-bot jetstack-bot added kind/bug Categorizes issue or PR as related to a bug. release-note Denotes a PR that will be considered when it comes time to generate release notes. dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. area/acme Indicates a PR directly modifies the ACME Issuer code area/acme/dns01 Indicates a PR modifies ACME DNS01 provider code labels Mar 26, 2024
@SgtCoDFish SgtCoDFish changed the title glimmit DigitalOcean records for cleanup to TXT only Limit DigitalOcean records for cleanup to TXT only Mar 26, 2024
@BobyMCbobs
Copy link

@SgtCoDFish, thank you for your help with this. To my short local testing, this fixes it.

  1. challenge created
  2. TXT record created
  3. challenge succeeds
  4. TXT record deleted and A record used in CNAME ref not deleted

@SgtCoDFish
Copy link
Member Author

/cherry-pick release-1.12

(tagging for a backport since this is quite a nasty bug)

@jetstack-bot
Copy link
Contributor

@SgtCoDFish: once the present PR merges, I will cherry-pick it on top of release-1.12 in a new PR and assign it to you.

In response to this:

/cherry-pick release-1.12

(tagging for a backport since this is quite a nasty bug)

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@SgtCoDFish
Copy link
Member Author

/cherry-pick release-1.13

(tagging for a backport since this is quite a nasty bug)

@jetstack-bot
Copy link
Contributor

@SgtCoDFish: once the present PR merges, I will cherry-pick it on top of release-1.13 in a new PR and assign it to you.

In response to this:

/cherry-pick release-1.13

(tagging for a backport since this is quite a nasty bug)

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@SgtCoDFish
Copy link
Member Author

/cherry-pick release-1.14

(tagging for a backport since this is quite a nasty bug)

@jetstack-bot
Copy link
Contributor

@SgtCoDFish: once the present PR merges, I will cherry-pick it on top of release-1.14 in a new PR and assign it to you.

In response to this:

/cherry-pick release-1.14

(tagging for a backport since this is quite a nasty bug)

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@ThatsMrTalbot
Copy link
Contributor

Nice one line fix 👍
/lgtm
/approve

@jetstack-bot jetstack-bot added the lgtm Indicates that a PR is ready to be merged. label Apr 10, 2024
@jetstack-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ThatsMrTalbot

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@jetstack-bot jetstack-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 10, 2024
@SgtCoDFish
Copy link
Member Author

/test pull-cert-manager-master-e2e-v1-28

Flake with pebble, unrelated to this PR

@jetstack-bot jetstack-bot merged commit d073db1 into cert-manager:master Apr 10, 2024
7 checks passed
@SgtCoDFish SgtCoDFish deleted the dodo branch April 10, 2024 13:31
@jetstack-bot
Copy link
Contributor

@SgtCoDFish: new pull request created: #6892

In response to this:

/cherry-pick release-1.13

(tagging for a backport since this is quite a nasty bug)

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@jetstack-bot
Copy link
Contributor

@SgtCoDFish: new pull request created: #6893

In response to this:

/cherry-pick release-1.14

(tagging for a backport since this is quite a nasty bug)

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@jetstack-bot
Copy link
Contributor

@SgtCoDFish: new pull request created: #6894

In response to this:

/cherry-pick release-1.12

(tagging for a backport since this is quite a nasty bug)

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/acme/dns01 Indicates a PR modifies ACME DNS01 provider code area/acme Indicates a PR directly modifies the ACME Issuer code dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. kind/bug Categorizes issue or PR as related to a bug. lgtm Indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants