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

helm RBAC should be more restrictive #827

Closed
TheKangaroo opened this issue Apr 21, 2022 · 1 comment · Fixed by #828
Closed

helm RBAC should be more restrictive #827

TheKangaroo opened this issue Apr 21, 2022 · 1 comment · Fixed by #828
Labels
backlog Issues/PRs that will be included in the project roadmap enhancement

Comments

@TheKangaroo
Copy link
Contributor

Which component:
controller

Describe the bug
This PR #715 added the get service permission to system:authenticated which is needed to lookup the named port of the service.
While this works as expected I think the helm chart is missing the restriction to the resource name of the service. This in turn will allow every authenticated user to get any service in the same namespace as sealed-secrets is deployed.

Expected behavior
I think this should be limited to just "sealed-secrets-controller" like in the controller.jsonnet file in the same PR.

Additional context
I'll happily provide a PR fix for this :)

@github-actions github-actions bot added the triage Issues/PRs that need to be reviewed label Apr 21, 2022
TheKangaroo added a commit to TheKangaroo/sealed-secrets that referenced this issue Apr 21, 2022
add rbac name selector for get service permission in the helm chart.
this was missing in bitnami-labs#715

fixes: bitnami-labs#827

Signed-off-by: Till Adam <[email protected]>
@alvneiayu alvneiayu added backlog Issues/PRs that will be included in the project roadmap enhancement and removed triage Issues/PRs that need to be reviewed labels Apr 28, 2022
@alemorcuq
Copy link
Collaborator

Thanks for creating a PR! Let's continue there.

TheKangaroo added a commit to TheKangaroo/sealed-secrets that referenced this issue May 5, 2022
add rbac name selector for get service permission in the helm chart.
this was missing in bitnami-labs#715

fixes: bitnami-labs#827

Signed-off-by: Till Adam <[email protected]>
alemorcuq pushed a commit that referenced this issue May 5, 2022
add rbac name selector for get service permission in the helm chart.
this was missing in #715

fixes: #827

Signed-off-by: Till Adam <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog Issues/PRs that will be included in the project roadmap enhancement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants