The idea is:
Add support for AWS STS AssumeRole per AWS Secrets Manager external secrets vault.
Today, an AWS Secrets Manager vault can use either static IAM user credentials or AWS credential auto-discovery.
With auto-discovery, multiple vaults on the same n8n runtime effectively use the same AWS workload identity. This means the vaults can be separated at the n8n project level, but they cannot have different IAM permissions in AWS.
Ideally, each vault could optionally specify a roleArn to assume after obtaining the base credentials through auto-discovery.
For example:
n8n runtime role
|
+-- sts:AssumeRole -> n8n-team-a-secrets
| -> /team-a/*
|
+-- sts:AssumeRole -> n8n-team-b-secrets
-> /team-b/*
Conceptually, the configuration could look something like:
provider: aws-secrets-manager
authentication: auto-discovery
roleArn: arn:aws:iam::123456789012:role/n8n-team-a-secrets
externalId: optional
My use case:
We run a shared n8n deployment with multiple projects and want to use AWS Secrets Manager as the external secret store.
Different projects should have access to different sets of secrets.
For example:
Project A -> Vault A -> /n8n/team-a/*
Project B -> Vault B -> /n8n/team-b/*
We can scope the vaults to the respective n8n projects, but if both vaults use AWS credential auto-discovery, both AWS Secrets Manager clients ultimately use the same runtime IAM role.
AWS therefore cannot enforce that Vault A may only access Team A secrets and Vault B may only access Team B secrets.
The only current way to get separate AWS identities per vault appears to be using separate IAM users with static access keys. We would strongly prefer not to introduce long-lived AWS credentials just to achieve per-vault authorization.
I think it would be beneficial to add this because:
It would allow n8n vault boundaries to map to real AWS IAM authorization boundaries while still using temporary credentials and standard AWS workload identity mechanisms.
This would provide:
- proper least-privilege access to Secrets Manager
- different IAM permissions per n8n vault
- no long-lived IAM user access keys
- compatibility with ECS task roles, EKS Pod Identity / IRSA, and EC2 instance profiles
- one shared n8n deployment without requiring separate instances for every trust boundary
At the moment there seems to be a trade-off between:
Auto-discovery
-> temporary credentials
-> shared AWS authorization boundary
and:
IAM user per vault
-> separate AWS authorization boundaries
-> long-lived static credentials
Supporting STS AssumeRole per vault would provide both temporary credentials and proper authorization isolation.
n8n already supports an AWS Assume Role credential for normal AWS integrations, so it seems like the same general authentication pattern could potentially be reused for the AWS Secrets Manager external secret store.
Any resources to support this?
n8n External Secret Stores – AWS Secrets Manager:
n8n AWS credentials / Assume Role:
AWS STS AssumeRole:
AWS IAM roles and temporary credentials:
Are you willing to work on this?
yes