We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Currently, supported auth methods in the Go SDK are limited to:
The JWT method is missing from this list.
Add support for JWT under github.com/hashicorp/vault/api/auth so that it can be consumed easily.
github.com/hashicorp/vault/api/auth
i.e.
package main import ( "context" "fmt" vault "github.com/hashicorp/vault/api" auth "github.com/hashicorp/vault/api/auth/jwt" ) func example(jwtToken string) (string, error) { client, _ := vault.NewClient(nil) jwtAuth, err := auth.NewJWTAuth( jwtToken, // JWT token "dev-role-jwt", // Vault role ) if err != nil { return "", fmt.Errorf("unable to initialize JWT auth method: %w", err) } authInfo, err := client.Auth().Login(context.Background(), jwtAuth) [...] }
This would make login through GitHub Actions OIDC more straightforward.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Problem
Currently, supported auth methods in the Go SDK are limited to:
The JWT method is missing from this list.
Prefered Solution
Add support for JWT under
github.com/hashicorp/vault/api/auth
so that it can be consumed easily.i.e.
Alternatives
Additional context
This would make login through GitHub Actions OIDC more straightforward.
The text was updated successfully, but these errors were encountered: