AccessDenied: Not authorized to perform sts:AssumeRoleWithWebIdentity #7838
Replies: 2 comments
-
https://github.com/vmware-tanzu/velero-plugin-for-aws?tab=readme-ov-file#option-1-set-permissions-with-an-iam-user |
Beta Was this translation helpful? Give feedback.
0 replies
-
Many thanks for your help. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
Velero failed to restore a backup with the following error:
restoring targetgroupbindings.elbv2.k8s.aws "vtargetgroupbinding.elbv2.k8s.aws" denied the request: unable to get target group IP address type: WebIdentityErr: failed to retrieve credentials
caused by: AccessDenied: Not authorized to perform sts:AssumeRoleWithWebIdentity
status code: 403
It seems that the error is caused by an AccessDenied: Not authorized to perform sts:AssumeRoleWithWebIdentity! But the velero role have the permissions to use the AsumeRole:
{
"Effect": "Allow",
"Principal": {
"Federated": "arn:aws:iam::acount-id:oidc-provider/oidc.eks.us-east-1.amazonaws.com/id/oidc-id"
},
"Action": "sts:AssumeRoleWithWebIdentity",
"Condition": {
"StringEquals": {
"oidc.eks.us-east-1.amazonaws.com/id/oidc-id:aud": "sts.amazonaws.com",
"oidc.eks.us-east-1.amazonaws.com/id/oidc-id:sub": "system:serviceaccount:velero:velero-server"
}
}
}
Do you have an idea why I am getting this error ?
Thank you in advance for your help.
Best Regards
Beta Was this translation helpful? Give feedback.
All reactions