From e884deacecfa5243914704f980e92068f262b127 Mon Sep 17 00:00:00 2001 From: Andreas Auernhammer Date: Mon, 23 Oct 2023 17:40:45 +0200 Subject: [PATCH] review: improve error message for auth methods Signed-off-by: Andreas Auernhammer --- internal/keystore/vault/vault.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/keystore/vault/vault.go b/internal/keystore/vault/vault.go index 9e8b24f1..0b9907b2 100644 --- a/internal/keystore/vault/vault.go +++ b/internal/keystore/vault/vault.go @@ -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 {