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

fix(operator): fix tls rotation logic for controller #1757

Merged
merged 1 commit into from
May 29, 2024

Conversation

rksharma95
Copy link
Collaborator

Purpose of PR?:
With the release of version 1.3.4, RBAC permissions have been optimized to allow get, update, and delete operations only on secrets managed by the operator. The existing TLS certificate rotation logic for the controller was not compatible with these restricted RBAC permissions. This PR introduces changes to ensure that the certificate rotation logic functions correctly within the assigned RBAC permissions. It also improves the logic to avoid force cert rotation on operator initialization.

Does this PR introduce a breaking change?
No
If the changes in this PR are manually verified, list down the scenarios covered::

Additional information for reviewer? :
Mention if this PR is part of any design or a continuation of previous PRs

Checklist:

  • Bug fix.
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update
  • PR Title follows the convention of <type>(<scope>): <subject>
  • Commit has unit tests
  • Commit has integration tests

@rksharma95 rksharma95 marked this pull request as ready for review May 21, 2024 07:10
Copy link
Member

@DelusionalOptimist DelusionalOptimist left a comment

Choose a reason for hiding this comment

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

LGTM!

@DelusionalOptimist
Copy link
Member

@rksharma95 please rebase with main. We'll be good to merge then. : )

@DelusionalOptimist DelusionalOptimist merged commit bbdc04d into kubearmor:main May 29, 2024
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants