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

BUGFIX: Fix consistency bugs in filtered secrets logic #6493

Closed
wants to merge 1 commit into from

Conversation

inteon
Copy link
Member

@inteon inteon commented Nov 16, 2023

The SecretsFilteredCaching feature that was promoted to Beta in 1.13 has an issue with consistency across the typed and metadata cache. This results in cert-manager thinking that secrets do not exist when the label is being removed/ added from the resource. This can result in incorrect reconciliations of the linked Certificates #6494.

How to reproduce:

  1. create a Certificate resource
  2. remove the fao annotation from the Secret
  3. notice that cert-manager re-issues the Certificate

Kind

/kind bug

Release Note

NONE

Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
@jetstack-bot jetstack-bot added release-note-none Denotes a PR that doesn't merit a release note. kind/bug Categorizes issue or PR as related to a bug. dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. labels Nov 16, 2023
@jetstack-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please ask for approval from inteon. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found 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 size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Nov 16, 2023
@jetstack-bot
Copy link
Contributor

@inteon: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pull-cert-manager-master-make-test f0543bf link true /test pull-cert-manager-master-make-test

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

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. I understand the commands that are listed here.

@inteon inteon changed the title Fix consistency bugs in filtered secrets logic BUGFIX: Fix consistency bugs in filtered secrets logic Nov 17, 2023
@inteon
Copy link
Member Author

inteon commented Nov 17, 2023

UPDATE: it doesn't seem like an issue that can be easily fixed. Furthermore, the error only occurs if you upgrade from a <v1.12 version to a v1.13 version (skipping v1.12).

See #6494 (comment) for full analysis and conclusions.

@inteon inteon closed this Nov 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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. release-note-none Denotes a PR that doesn't merit a release note. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants