Repository navigation
add dns issuer secrets validation before marking it as ready - #8255
Conversation
|
Hi @Peac36. Thanks for your PR. I'm waiting for a cert-manager member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions 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-sigs/prow repository. |
|
/ok-to-test |
|
/retest |
| } | ||
|
|
||
| if s.Key != "" { | ||
| if _, ok := res.StringData[s.Key]; !ok { |
There was a problem hiding this comment.
I would suggest using .Data instead of .StringData based on the fact that StringData could be empty on READ.
There was a problem hiding this comment.
Discussed with @Peac36 in the cert-manager weekly meeting 18 Dec 2025.
We agree that .Data is probably the correct field, but note that the E2E tests do pass even when using the StringData field, contrary to what the API docs say.
There was a problem hiding this comment.
@hjoshi123 , @wallrj-cyberark - Thanks for the feedback. I've addressed this comment.
There was a problem hiding this comment.
Thank you for incorporating the changes @Peac36!
|
/lgtm |
|
/kind bug |
|
@hjoshi123 - What do we wait to get this merged? Would you like me to address something else? |
|
/test pull-cert-manager-master-e2e-v1-35 |
Signed-off-by: Nikola <[email protected]>
|
@hjoshi123 - I've fixed the raised issues. Yes, I've tested it locally - |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: hjoshi123 The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
Good day, Thank you for the work on this — it’s greatly appreciated.
In this case, should the Issuer transition to a non-ready state as soon as possible? |
|
📢 The fix or feature is now available for testing Please test and report back. |

Pull Request Motivation
The ACME DNS issuer is marked as ready, although the solver's secret is missing or the secret key does not exist. This is misleading because without a valid solver's secret, the issuer's challenges would never be processed. To avoid this, this PR adds validation and error messages that indicate that there is missing info to complete the whole flow of issuing a certificate
Fix: #7826
Kind
/bug
Release Note
Steps for testing.
Scenario: 1 - missing secret
Scenation 2 - missing key