-
Notifications
You must be signed in to change notification settings - Fork 47
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
Doesn't seem to be possible to get/extract a list of privileges for Repository created. #54
Comments
Hi @fog1985 , would it help to provide a data source for privileges? It could return, based on a filter like resource "nexus_repository" "demo" {
type = "hosted"
format = "maven2"
name = "demo"
...
}
data "nexus_privileges" "demo" {
repository = nexus_repository.demo.name
} |
Hi @Nosmoht , |
@Nosmoht , |
Cool. Thank you @Nosmoht |
@fog1985 Please let me know if it works and if we can close the issue. |
Hey @Nosmoht , |
Hi @Nosmoht ,
Was referring at this code: It indeed seems to have Nevertheless, I get as follow:
If I put |
Hi @fog1985 , the data resource is used to get the list of privileges for the specified repository |
Hi @Nosmoht ,
Is there a way to get a privilege for example which's action stands for Also not clear about this parameter in data source block:
Should it be the format of the repository or format of the privileges? It would be nice to have a short example on how to filter out the output of data source to some READ, WRITE, or other filters for privileges. |
I believe the only thing we could do is to add a name filter like |
I think yes. That would work.
Result:
So |
As an interim solution, I have just come up with this one:
Which returns |
For those who might be looking for the same:
In this way, we can get nice filtering based on |
Hi @fog1985, can we close the issue and create a new feature request for the privilege filter? |
Hi guys,
This is an enhancement request.
After Repository creation, Nexus creates privileges for this repository.
Further, in work it might happen that more privileges need to be added/attached to this or that role.
And it's impossible right now to get a list of privileges for the specific repository.
Use-case: needed a role that has privileges from multiple Repositories.
It would be awesome to have this kind of feature. ;)
Regards,
Taras.
The text was updated successfully, but these errors were encountered: