Skip to content

Commit

Permalink
Merge pull request #83 from Infisical/misc/removed-unecessary-check-i…
Browse files Browse the repository at this point in the history
…n-raw-secrets-fetch

misc: removed unnecessary check in raw secrets fetch
  • Loading branch information
sheensantoscapadngan authored Dec 16, 2024
2 parents 0b53417 + 70851ba commit 83ef708
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions internal/client/secrets.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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) {
Expand Down

0 comments on commit 83ef708

Please sign in to comment.