Closed
Description
Is your feature request related to a problem? Please describe.
The argocd-vault-plugin's AWS_REGION config is static. You cannot retrieve a secret from a region other than the one that is configured statically.
Describe the solution you'd like
If a user provides a full secret ARN, use the region in the ARN to perform the lookup.
Describe alternatives you've considered
Could possibly setup secret replication but that has added costs and complexity.
Additional context
The error message AWS throws on this is not great, a generic resource policy permission denied:
An error occurred (AccessDeniedException) when calling the GetSecretValue operation: User: arn:aws:sts::<ACCOUNT ID>:assumed-role/my_role is not authorized to perform: secretsmanager:GetSecretValue on resource: arn:aws:secretsmanager:us-west-2:<ACCOUNT ID>:secret:my-secret because no resource-based policy allows the secretsmanager:GetSecretValue action
Metadata
Metadata
Assignees
Labels
No labels