Skip to content

Post Issuance Check: Owner Ref - #4888

Merged
jetstack-bot merged 4 commits into
cert-manager:masterfrom
JoshVanL:controllers-post-issuance-secret-owner-ref
Mar 29, 2022
Merged

jetstack-bot merged 4 commits into
cert-manager:masterfrom
JoshVanL:controllers-post-issuance-secret-owner-ref

Conversation

@JoshVanL

Copy link
Copy Markdown
Contributor

fixes #4788
/kind feature
/milestone v1.8

This PR creates a post issuance check for the owner reference on issued Certificate Secrets. If --enable-certificate-owner-ref is disabled, the issuing controller secrets manager will proactively ensure that the controller has not set an owner reference to all the issued Certificate's Secrets. Similarly, if --enable-certificate-owner-ref is enabled, the secrets manager will proactively ensure all Certificate Secrets have the correct owner reference set.

Feature: Post Issuance Check: proactively ensure that owner reference on issued Secret's reflects the `--enable-certificate-owner-ref` controller flag.

@jetstack-bot jetstack-bot added kind/feature Categorizes issue or PR as related to a new feature. release-note Denotes a PR that will be considered when it comes time to generate release notes. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. labels Feb 22, 2022
@jetstack-bot jetstack-bot added this to the v1.8 milestone Feb 22, 2022
@jetstack-bot jetstack-bot added dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. area/testing Issues relating to testing approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Feb 22, 2022
@jahrlin

jahrlin commented Mar 1, 2022

Copy link
Copy Markdown
Contributor

Nice! I tested this in my local cluster from the context of #4788 and the secret reconciliation happens as expected when I toggle --enable-certificate-owner-ref back and forth on my controller.

I'll review it again when it is no longer WIP

@maelvls

maelvls commented Mar 17, 2022 •

Copy link
Copy Markdown
Member

Hi! This is a notice and does not require any action. As part of the effort of migrating from Bazel to Make, I wanted to let you know that we have added two new Prow jobs pull-cert-manager-make-test and pull-cert-manager-make-e2e-v1-23.

@SgtCoDFish

Copy link
Copy Markdown
Member

@JoshVanL this is still marked WIP but is in the 1.8 milestone; any chance of this being completed or should I remove from the milestone?

@JoshVanL

Copy link
Copy Markdown
Contributor Author

@SgtCoDFish Hm, I think the WIP for this PR is no longer true. Taking a look through the code it looks as though it does all the objectives of the changes and it is all tested. I'll remove the WIP.

@JoshVanL JoshVanL changed the title WIP: Post Issuance Check: Owner Ref Post Issuance Check: Owner Ref Mar 29, 2022
@jetstack-bot jetstack-bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Mar 29, 2022
@JoshVanL

Copy link
Copy Markdown
Contributor Author

@SgtCoDFish I'll do quick rebase and get bazel hack tests to pass

@JoshVanL
JoshVanL force-pushed the controllers-post-issuance-secret-owner-ref branch from 3e7e799 to fa411f1 Compare March 29, 2022 12:57
Signed-off-by: joshvanl <[email protected]>
@maelvls

maelvls commented Mar 29, 2022 •

Copy link
Copy Markdown
Member

The error in the make-e2e-v1-23 job is due to the 1.8.0-alpha.1 GitHub release that is still in draft. We will be able to re-run the job as soon as the version is published. See: a57110c#r69811492

fyi @SgtCoDFish

Update: the release was published, the tests should now pass.

maelvls referenced this pull request Mar 29, 2022
These lean heavily on `go test` for everything possible.

Also adds setup for versionchecker test in make, and a script for
extracting CRDs from templated rendered YAML files

Signed-off-by: Ashley Davis <[email protected]>
@SgtCoDFish

Copy link
Copy Markdown
Member

/test pull-cert-manager-make-test

@SgtCoDFish SgtCoDFish left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

/lgtm
/approve

Can't see any reason not to approve this; it's a bonus I'd not expected to get in for v1.8, thanks for doing it 👍

@jetstack-bot jetstack-bot added the lgtm Indicates that a PR is ready to be merged. label Mar 29, 2022
@jetstack-bot

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: JoshVanL, SgtCoDFish

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

The pull request process is described here

Details Needs approval from an approver in each of these files:
  • OWNERS [JoshVanL,SgtCoDFish]

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

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/testing Issues relating to testing dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. kind/feature Categorizes issue or PR as related to a new feature. 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/XL Denotes a PR that changes 500-999 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

add warning about tls secret ownerReferences in documentation

5 participants