Replies: 1 comment 1 reply
-
|
@cipherboy is this related to #493? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I don't want to synchronize users and their groups from my oidc provider (gitlab where my code resides) to openbao. I want openbao to use what's already there.
I would love it if something like this was possible (it doesn't have to be exactly like this, I've chosen this so it somehow fits in current model):
kubectl exec -it openbao-0 -- bao write auth/oidc/role/gitlab-users
allowed_redirect_uris="https://openbao.local/ui/vault/auth/oidc/oidc/callback"
role_type="oidc"
user_claim="sub"
ttl="1h"
oidc_scopes="openid email"
verbose_oidc_logging="true"
groups_claim="groups"
token_policies="basic"
claim_mappings="groups=groups" <--- currently impossible, this only maps simple strings, doesn't understand arrays
basic.hcl:
Read/write access only within your OIDC group(s)
path "secret/data/{{something.that.resolves.groups.to.its.elements.and.creates.as.many.path.entries.as.there.are.groups}}/" {
capabilities = ["create", "update", "read", "list", "delete"]
}
path "secret/metadata/{{something.that.resolves.groups.to.its.elements.and.creates.as.many.path.entries.as.there.are.groups}}/" {
capabilities = ["read", "list", "delete"]
}
Of course:
{{something.that.resolves.groups.to.its.elements.and.creates.as.many.path.entries.as.there.are.groups}}
this doesn't have to look like this, it could be (and probably should be) like iterating over array in go template.
In short I would love it if I could externalize group definition and maintenance to a system that already does this and is highly relevant to what I'm trying to achieve - my code repository. If someone has access to a code repository it means it should have access to secrets pertaining to it. I already have gitlab and people that manage it. Openbao should be able to just use it as it is.
Thoughts?
Beta Was this translation helpful? Give feedback.
All reactions