-
Notifications
You must be signed in to change notification settings - Fork 878
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ForbiddenByRbac when using azure key vault backend with version 3.8+ #1487
Comments
I know this is an old post but... Where is this command being launched? I had the same issue on our self-hosted gh agents when updated to sops latest version and had to rollback to ensure this was working. |
I launch it from my laptop. I use simple user credentials that being generated trough az login command. With this credentials I can access all secrets and keys in vault. Also as I said I even tried to use service principle with more broader permission, and it didnt work either. |
This error mentioned by other users: #1415 |
And what are the permissions? Are you assigning access policies ok the keyvault or using RBAC? (Or because it's either one or the other. If you have already an access policy in place in that keyvault, you won't be able to use RBAC.) |
We use RBAC access. My user role assignments on KeyVault and subscription level: Flow for user:
Export mentioned here environments:
Try to decrypt file with 3.7.3 (ERROR).
Flow for service principle
Export mentioned here environments:
Try to decrypt file with 3.7.3 (OK). So in my opinion looks like newer sops version cant get user token with Azure CLI credentials
|
Hi!
We successfully using sops 3.7.3 with azure key vault as backend.
But when we try to use same flow with 3.8+ version it fails with
ForbiddenByRbac
error.I tried both login type - az login and service principle credentials. Both fails.
I have next roles permission to resource: [Key Vault Crypto Officer, Key Vault Crypto User]
Something changed in how sops authenticate with azure resources?
The text was updated successfully, but these errors were encountered: