-
Notifications
You must be signed in to change notification settings - Fork 32
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
vault-github: user is not part of required org #108
Comments
cc @matifali |
Hi @kleberbaum as per Vault docs, this works with any valid GitHub access tokens.
There is no special configuration needed at Vault or Coder's end. And you can create a GitHub app/OAuth app with scope CODER_EXTERNAL_AUTH_0_ID=primary-github
CODER_EXTERNAL_AUTH_0_TYPE=github
CODER_EXTERNAL_AUTH_0_CLIENT_ID=xxxxxx
CODER_EXTERNAL_AUTH_0_CLIENT_SECRET=xxxxxxx Then setup vault with GitHub auth using this guide. I have verefied in my setop and I am able to to auth using the app token e.g |
@kleberbaum I think you are missing part 3 and 4 of this guide to map users to teams and assign an appropriate vault policy. |
Closing in favour of #175 |
Module: vault-github
Coder Version: 2.4.0
Vault Version: 1.15.3
Issue: Error with
ghu_
prefixed GitHub App token during workspace startup;ghp_
personal access tokens work fine.Error Message on Workspace Startup:
Configuration:
Discovery:
ghu_
prefix) fails upon workspace initialization.ghp_
prefix) performs correctly.Steps to Reproduce:
vault auth enable github vault write auth/github/config organization=photonq-org
Question:
Is additional configuration required within HashiCorp Vault to enable authentication using GitHub App tokens (
ghu_
prefix) as they produce an error stating the user is not part of the required organization?The text was updated successfully, but these errors were encountered: