-
Notifications
You must be signed in to change notification settings - Fork 21
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
Scoped down tokens from artifactory role #134
Comments
@kkronenb If I understand your use case, I'm curious why creating multiple roles (vs explicitly setting reduced scope) are not desirable. |
That is a possibility, but is undesirable from a maintenance stand point. When we new repo/group is added to artifactory, we must make a corresponding configuration update to Vault as well. If we have the ability to request a token with a specific scope, this dual configuration goes away. We currently have 28 groups in artifactory for example. This quickly becomes an administrative hurdle in Vault. |
My reasoning for wanting scoped down tokens is that it decouples artifactory administration from vault administration. When a new group is added to artifactory, there is no need to make a corresponding role in vault which requires additional overhead. |
Turns out adding this functionality was pretty trivial.
|
@kkronenb Yes, that's right. The coding part is straightforward, I'm thinking through the ramification of allowing This is provisionally in our plan for Q1 2024. |
That is tricky, even if you limited the scope to I definitely do not think you should allow requestors to specify whatever raw scope they want, because if you do that, you might as well just create an admin role and be done with it. :) Tommy |
First, thank you both for the conversation around this, I appreciate enumerating the issues. @TJM This is exactly what I want. We use the same pattern with the github plugin where Vault is a vending machine for github PATs and can mint anything from org readonly to repo admin from a single plugin role. This is all controlled by Vault policies. By definition in the instructions, the Vault Access Token is already an admin token. All this change is doing is moving from an implicit scope with multiple roles to an explicit scope via request. Both of these cases need to be addressed by Vault policies; either granting it based on This change could be an opt in when configuring the plugin where the existing behavior is the default. |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Is your feature request related to a problem? Please describe.
I am working on setting up this integration and would like to configure our CI role be able to create tokens for any scope, i.e.
applied-permissions/groups:*
. Currently when a token is created for a role, it uses the scope that is configured without the ability to set an explicitly reduced scope.Describe the solution you'd like
When calling
vault read artifactory/token/jenkins
, I'd like to be able to specify a scope such asscope=readonly
.Describe alternatives you've considered
The current behavior is a blocker for our implementation.
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: