From 2a93c8fb2307504273da42d1f7870efdd1e86bd0 Mon Sep 17 00:00:00 2001 From: jeanblablatiste Date: Wed, 28 Aug 2024 10:28:41 +0200 Subject: [PATCH] SECS-8514/rm_JWT_from_atlantis_comment (#20) * Trimm logged jwt, display only 5 first char * remove all reference to jwt in error messages --- internal/provider/provider.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/provider/provider.go b/internal/provider/provider.go index 6d3970e..7e1ef51 100644 --- a/internal/provider/provider.go +++ b/internal/provider/provider.go @@ -151,11 +151,11 @@ func setupVaultClientAuth(client *vault.Client, authConf *providerAuthModel) err path := authConf.Path.ValueString() authInfo, err := client.Logical().Write(path, loginData) if err != nil { - return fmt.Errorf("unable to log in with Vault Kubernetes authentication with role %s and JWT %s: %w", role, jwt, err) + return fmt.Errorf("unable to log in with Vault Kubernetes authentication with role %s and err : %w", role, err) } if authInfo == nil { - return fmt.Errorf("not auth info returned for kubernetes auth with role %s and JWT %s: %s", role, jwt, err) + return fmt.Errorf("not auth info returned for kubernetes auth with role %s and err : %s", role, err) } if authInfo.Auth == nil || authInfo.Auth.ClientToken == "" {