Skip to content

Commit

Permalink
review: improve error message for auth methods
Browse files Browse the repository at this point in the history
Signed-off-by: Andreas Auernhammer <[email protected]>
  • Loading branch information
aead committed Oct 23, 2023
1 parent 9123d01 commit e884dea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/keystore/vault/vault.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func Connect(ctx context.Context, c *Config) (*Store, error) {
return nil, errors.New("vault: no authentication method specified")
}
if (c.AppRole.ID != "" || c.AppRole.Secret != "") && (c.K8S.JWT != "" || c.K8S.Role != "") {
return nil, errors.New("vault: ambigious authentication: approle and kubernetes method specified")
return nil, errors.New("vault: more than one authentication method specified: approle and kubernetes configuration is present")
}
}
if c.Transit != nil {
Expand Down

0 comments on commit e884dea

Please sign in to comment.