mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-11 10:28:50 +00:00
Feat: Expand secret references with Machine Identity
This commit is contained in:
@@ -163,6 +163,9 @@ func CallGetDecryptedSecretsV3(httpClient *resty.Client, request GetDecryptedSec
|
|||||||
if request.Recursive {
|
if request.Recursive {
|
||||||
req.SetQueryParam("recursive", "true")
|
req.SetQueryParam("recursive", "true")
|
||||||
}
|
}
|
||||||
|
if request.ExpandSecretReferences {
|
||||||
|
req.SetQueryParam("expandSecretReferences", "true")
|
||||||
|
}
|
||||||
|
|
||||||
response, err := req.Get(fmt.Sprintf("%v/v3/secrets/raw", API_HOST_URL))
|
response, err := req.Get(fmt.Sprintf("%v/v3/secrets/raw", API_HOST_URL))
|
||||||
|
|
||||||
|
|||||||
@@ -102,6 +102,7 @@ type GetDecryptedSecretsV3Request struct {
|
|||||||
Environment string `json:"environment"`
|
Environment string `json:"environment"`
|
||||||
SecretPath string `json:"secretPath"`
|
SecretPath string `json:"secretPath"`
|
||||||
Recursive bool `json:"recursive"`
|
Recursive bool `json:"recursive"`
|
||||||
|
ExpandSecretReferences bool `json:"expandSecretReferences"`
|
||||||
ETag string `json:"etag,omitempty"`
|
ETag string `json:"etag,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -62,6 +62,7 @@ func GetPlainTextSecretsViaUniversalAuth(accessToken string, etag string, secret
|
|||||||
Environment: secretScope.EnvSlug,
|
Environment: secretScope.EnvSlug,
|
||||||
Recursive: secretScope.Recursive,
|
Recursive: secretScope.Recursive,
|
||||||
SecretPath: secretScope.SecretsPath,
|
SecretPath: secretScope.SecretsPath,
|
||||||
|
ExpandSecretReferences: true,
|
||||||
ETag: etag,
|
ETag: etag,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user