Merge pull request #1275 from Emiliaaah/fix-agent-secret-path

fix(cli): secret-path directive for agent
This commit is contained in:
Maidul Islam
2024-01-05 10:39:39 -05:00
committed by GitHub
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -474,6 +474,7 @@ func CallGetRawSecretsV3(httpClient *resty.Client, request GetRawSecretsV3Reques
SetBody(request). SetBody(request).
SetQueryParam("workspaceId", request.WorkspaceId). SetQueryParam("workspaceId", request.WorkspaceId).
SetQueryParam("environment", request.Environment). SetQueryParam("environment", request.Environment).
SetQueryParam("secretPath", request.SecretPath).
SetQueryParam("include_imports", "false"). SetQueryParam("include_imports", "false").
Get(fmt.Sprintf("%v/v3/secrets/raw", config.INFISICAL_URL)) Get(fmt.Sprintf("%v/v3/secrets/raw", config.INFISICAL_URL))
+1 -1
View File
@@ -168,7 +168,7 @@ func GetPlainTextSecretsViaMachineIdentity(accessToken string, workspaceId strin
getSecretsRequest.SecretPath = secretsPath getSecretsRequest.SecretPath = secretsPath
} }
rawSecrets, err := api.CallGetRawSecretsV3(httpClient, api.GetRawSecretsV3Request{WorkspaceId: workspaceId, SecretPath: environmentName, Environment: environmentName}) rawSecrets, err := api.CallGetRawSecretsV3(httpClient, api.GetRawSecretsV3Request{WorkspaceId: workspaceId, SecretPath: secretsPath, Environment: environmentName})
if err != nil { if err != nil {
return nil, err return nil, err
} }