You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tl;dr:
When validating renew-self requests for a token from the aws-iam auth backend, vault seems to compare the canonicalArn (which is stripped of the path) against whatever was configured as bound_iam_principal_arn (which might contain the path). This seems to be at least unintuitive.
Expected Behavior: renew-self works when a complete ARN with a path (e.g. arn:aws:iam::account-id:role/something/some-role) was configured as bound_iam_principal_arn
Actual Behavior:
URL: PUT https://vaulthost:8200/v1/auth/token/renew-self
Code: 500. Errors:
* 1 error occurred:
* failed to renew entry: role no longer bound to arn "arn:aws:iam::account-id:role/some-role"
Steps to Reproduce:
enable the AWS IAM Auth Backend
create an AWS IAM Role that contains a path (e.g. something/some-role)
configure a mapping from this role to a policy in vault, use the ARN including the path (arn:aws:iam::account-id:role/something/some-role), e.g.
tl;dr:
When validating
renew-self
requests for a token from the aws-iam auth backend, vault seems to compare thecanonicalArn
(which is stripped of the path) against whatever was configured asbound_iam_principal_arn
(which might contain the path). This seems to be at least unintuitive.Expected Behavior:
renew-self
works when a complete ARN with a path (e.g.arn:aws:iam::account-id:role/something/some-role
) was configured asbound_iam_principal_arn
Actual Behavior:
Steps to Reproduce:
something/some-role
)arn:aws:iam::account-id:role/something/some-role
), e.g.renew-self
"bound_iam_principal_arn": "arn:aws:iam::account-id:role/some-role",
renew-self
again, observe that all works fine.Vault Version
Vault 0.7.3 in official Docker container
References
Workaround
Remove the path from the
bound_iam_principal_arn
.The text was updated successfully, but these errors were encountered: