Adds namespace-scoped RBAC for reduced permissions mode.#666
Open
YossiMarzuk wants to merge 3 commits into
Open
Conversation
dcefd78 to
15fd83e
Compare
Previously, reducedPermissions mode granted cluster-wide access to Flux CRs (gitrepositories, kustomizations). This moves those permissions to be namespace-scoped via the new wizFluxNamespace option, along with secrets and configmaps access needed for Helm release management. Changes: - Removed gitrepositories and kustomizations from ClusterRole - Added templates/outpostController.fluxNamespace.rbac.yaml with Role and RoleBinding for the wizFluxNamespace - Added wizFluxNamespace option to outpostController in values.yaml When reducedPermissions is true and wizFluxNamespace is set, the controller gets: - Cluster-wide: nodes (read) - Release namespace: full admin - wizFluxNamespace: secrets, configmaps, gitrepositories, kustomizations
15fd83e to
63ca063
Compare
Collaborator
Author
|
Following my last discussion with @eyal-moscovici Replace fluxRbacEnabled with wizFluxNamespace Changes:
Files changed:
Permissions: reducedPermissions: false
reducedPermissions: true
Tested:
|
…-should-grant-the-permissions-only-for-the-wiz-namespaces
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Previously, reducedPermissions mode granted cluster-wide access to Flux CRs (gitrepositories, kustomizations). This moves those permissions to be namespace-scoped via the new wizFluxNamespace option, along with secrets and configmaps access needed for Helm release management.
Changes:
When reducedPermissions is true, and wizFluxNamespace is set, the controller gets: