From 33558539eb78060fbf22b8a2baba1888998d78d0 Mon Sep 17 00:00:00 2001 From: Gabriel Adrian Samfira Date: Sat, 2 Nov 2024 20:45:16 +0000 Subject: [PATCH] Make session token optional Session token is optional. This change removes the check for an empty session token option. Signed-off-by: Gabriel Adrian Samfira --- config/config.go | 4 ---- config/config_test.go | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/config/config.go b/config/config.go index a249bd5..c262e8c 100644 --- a/config/config.go +++ b/config/config.go @@ -85,10 +85,6 @@ func (c StaticCredentials) Validate() error { return fmt.Errorf("missing secret_access_key") } - if c.SessionToken == "" { - return fmt.Errorf("missing session_token") - } - return nil } diff --git a/config/config_test.go b/config/config_test.go index 23dc01f..7458d67 100644 --- a/config/config_test.go +++ b/config/config_test.go @@ -159,7 +159,7 @@ func TestCredentialsValidate(t *testing.T) { SessionToken: "", }, }, - errString: "missing session_token", + errString: "", }, }