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

consoles: Make DirectoryRoleBinding optional #1

Merged
merged 1 commit into from
Aug 29, 2023
Merged

consoles: Make DirectoryRoleBinding optional #1

merged 1 commit into from
Aug 29, 2023

Conversation

benwh
Copy link

@benwh benwh commented Aug 29, 2023

Currently, the workloads controller has a hard dependency on DirectoryRoleBindings, as provided by the RBAC controller, in order to create consoles. If you try to do this, without having the RBAC controller installed, then the reconcile loop gets stuck, as the rolebinding to access the console can't be provisioned.

This is a bit presumptuous; it should be possible to run consoles without DRBs, e.g. if you just want to reference plain User kinds in additionalAttachSubjects.

This change adds a flag, which makes the usage of DirectoryRoleBinding optional. The flag defaults to true, meaning that this isn't a breaking change.

We intended to use this in conjunction with Google Groups for RBAC as an alternative.

Currently, the workloads controller has a hard dependency on
`DirectoryRoleBinding`s, as provided by the RBAC controller, in order to
create consoles. If you try to do this, without having the RBAC
controller installed, then the reconcile loop gets stuck, as the
rolebinding to access the console can't be provisioned.

This is a bit presumptuous; it should be possible to run consoles
without DRBs, e.g. if you just want to reference plain `User` kinds in
`additionalAttachSubjects`.

This change adds a flag, which makes the usage of `DirectoryRoleBinding`
optional. The flag defaults to true, meaning that this isn't a breaking
change.

We intended to use this in conjunction with [Google Groups for RBAC][0]
as an alternative.

[0]: https://cloud.google.com/kubernetes-engine/docs/how-to/google-groups-rbac
@benwh benwh merged commit 17097a4 into master Aug 29, 2023
4 checks passed
@benwh benwh deleted the ben/no-drb branch August 29, 2023 12:34
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.

1 participant