Skip to content

Vault + Jupyterhub + LDAP to manage secrets #1070

Answered by briantist
danieleperera asked this question in Q&A
Discussion options

You must be logged in to vote

Thank you, the problem you're seeing here is the part where you try to create a new, second token.

By logging in with LDAP, you've already assigned a token to the client. That token was created with the policies you previously assigned, the same as the ones you would get by logging into the UI.

Then, you are trying to create a new token with that token. But your policy does not give you the permissions to create child tokens. This is supported by the policy you showed me, and also the error message which shows your error on this endpoint: v1/auth/token/create

I don't think you have any need to be creating a second token though, so you can probably comment out your call to create a second …

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@danieleperera
Comment options

@briantist
Comment options

Answer selected by danieleperera
@danieleperera
Comment options

@briantist
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants