mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 19:17:58 +00:00
s/VAULT_GITHUB_AUTH_TOKEN/VAULT_AUTH_GITHUB_TOKEN
This commit is contained in:
@@ -18,8 +18,8 @@ func (h *CLIHandler) Auth(c *api.Client, m map[string]string) (string, error) {
|
||||
|
||||
token, ok := m["token"]
|
||||
if !ok {
|
||||
if token = os.Getenv("VAULT_GITHUB_AUTH_TOKEN"); token == "" {
|
||||
return "", fmt.Errorf("GitHub token should be provided either as 'value' for 'token' key,\nor via an env var VAULT_GITHUB_AUTH_TOKEN")
|
||||
if token = os.Getenv("VAULT_AUTH_GITHUB_TOKEN"); token == "" {
|
||||
return "", fmt.Errorf("GitHub token should be provided either as 'value' for 'token' key,\nor via an env var VAULT_AUTH_GITHUB_TOKEN")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -118,7 +118,7 @@ The above would make anyone in the "admins" team a root user in Vault
|
||||
|
||||
You can then auth with a user that is a member of the "admins" team using a Personal Access Token with the `read:org` scope.
|
||||
|
||||
GitHub token can also be supplied from the env variable `VAULT_GITHUB_AUTH_TOKEN`.
|
||||
GitHub token can also be supplied from the env variable `VAULT_AUTH_GITHUB_TOKEN`.
|
||||
|
||||
```
|
||||
$ vault auth -method=github token=000000905b381e723b3d6a7d52f148a5d43c4b45
|
||||
|
||||
Reference in New Issue
Block a user