From 70851ba368f8f41a3ae8063951ef5642d2ae76ac Mon Sep 17 00:00:00 2001 From: Sheen Capadngan Date: Mon, 16 Dec 2024 19:50:56 +0800 Subject: [PATCH] misc: removed unnecessary check in raw secrets fetch --- internal/client/secrets.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/internal/client/secrets.go b/internal/client/secrets.go index 80492ee..4f6f191 100644 --- a/internal/client/secrets.go +++ b/internal/client/secrets.go @@ -281,10 +281,6 @@ func (client Client) GetPlainTextSecretsViaServiceToken(secretFolderPath string, } func (client Client) GetRawSecrets(secretFolderPath string, envSlug string, workspaceId string) ([]RawV3Secret, error) { - if client.Config.ClientId == "" || client.Config.ClientSecret == "" { - return nil, fmt.Errorf("client ID and client secret must be defined to fetch secrets with machine identity") - } - request := GetRawSecretsV3Request{ Environment: envSlug, WorkspaceId: workspaceId, @@ -302,7 +298,6 @@ func (client Client) GetRawSecrets(secretFolderPath string, envSlug string, work } return secrets.Secrets, nil - } func GetPlainTextSecrets(key []byte, encryptedSecrets GetEncryptedSecretsV3Response) ([]SingleEnvironmentVariable, error) {