Repository navigation
Create 20220720-per-certificate-owner-ref.md - #5324
Conversation
Signed-off-by: Maël Valais <[email protected]>
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: maelvls 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 |
JoshVanL
left a comment
There was a problem hiding this comment.
Added some questions from my side 🙂
|
Irbe suggested that I follow the formatting mandated by the design template. I will address Josh's comments and reformat the document to match the expected template. Update 26 July 2022: I have rearranged the document so that it matches the design template. I tried answering the four questions asked by @JoshVanL. Update 30 July 2022: I will be on vacation from 30 July to 15 August 2022. |
Signed-off-by: Maël Valais <[email protected]>
Signed-off-by: Maël Valais <[email protected]>
Co-authored-by: Josh van Leeuwen <[email protected]> Signed-off-by: Maël Valais <[email protected]>
Signed-off-by: Maël Valais <[email protected]>
|
/test pull-cert-manager-master-make-test |
Co-authored-by: Josh Soref <[email protected]> Signed-off-by: Maël Valais <[email protected]>
Signed-off-by: Maël Valais <[email protected]>
Signed-off-by: Maël Valais <[email protected]>
|
I am unsure how to proceed with this design. @RomanenkoDenys would like to know what to do now. The design has some missing sections but I don't think that's a stopper. This the discussion is settling down, I propose that we proceed with implementing that design. Please let me know @JoshVanL if you have more comments. |
Signed-off-by: Maël Valais <[email protected]>
|
IMO this design doc should be merged. No need to wait another year 😅 |
jsoref
left a comment
There was a problem hiding this comment.
I'm fine w/ the proposed change, but it needs to be applied throughout the document.
There's a section for Alternatives to which the previous proposal should be relegated
Co-authored-by: Josh Soref <[email protected]> Signed-off-by: Maël Valais <[email protected]>
There was a problem hiding this comment.
Pull Request Overview
This PR introduces a design document for enabling per-certificate control over secret cleanup behavior in cert-manager. The design aims to address the need for fine-grained control over whether secrets should be deleted when their associated certificates are removed.
- Adds a new
deletionPolicyfield to Certificate resources with valuesDeleteorOrphan - Introduces a new
--default-secret-cleanup-policyflag to replace the global--enable-certificate-owner-refflag - Provides backward compatibility while enabling per-certificate cleanup control
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Co-authored-by: Copilot <[email protected]> Signed-off-by: Maël Valais <[email protected]>
Signed-off-by: Maël Valais <[email protected]>
30914c0 to
c213f87
Compare
|
Hey. Due to the change from |
Signed-off-by: Maël Valais <[email protected]>
Signed-off-by: Maël Valais <[email protected]>
Signed-off-by: Maël Valais <[email protected]>
Co-authored-by: Josh Soref <[email protected]> Signed-off-by: Maël Valais <[email protected]>
Signed-off-by: Maël Valais <[email protected]>
| or from `Delete` to `Orphan` is not immediate: the change requires a re-issuance | ||
| of the Certificate resources. | ||
|
|
||
| The default value for `--default-secret-deletion-policy` is `Orphan`. |
There was a problem hiding this comment.
Are we sure we want this? I'll definitely vote for Delete as the default. When introducing a new flag, we should have the best default value. And orphaning a lot of secrets in the cluster doesn't seem like a good default to me.
To avoid a "surprising" behavior for users, I suggest making the existing --enable-certificate-owner-ref take precedence (with its current default) until we graduate this feature (behind a feature gate?).
There was a problem hiding this comment.
I'd be ok with this being a behavior change to Delete as the default.
There was a problem hiding this comment.
We discussed this in today's stand-up, and there are valid reasons for keeping the current Orphan as the default. Changing this could create a lot of noise that we want to avoid.
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: erikgb 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 |
|
/unhold |
CyberArk tracker: VC-45306