Skip to content
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

Allow * in name of wildcard privileges #412

Open
tomudding opened this issue Jun 15, 2024 · 2 comments
Open

Allow * in name of wildcard privileges #412

tomudding opened this issue Jun 15, 2024 · 2 comments
Assignees

Comments

@tomudding
Copy link

The wildcard privileges provided by default or created from new repositories always include a * in the name to make it clear that the privilege is a wildcard privilege (specifically which part of the privilege has a "wildcard"). For example, all privileges for Docker repository administration can be granted by nx-repository-admin-docker-[repository]-*.

However, when you try to create a wildcard privilege yourself, it is not possible to use a * in the name. The field has the following validation: "Only letters, digits, underscores(_), hyphens(-), and dots(.) are allowed and may not start with underscore or dot.".

This does not appear to be a technical restriction due to the existence of the default privileges, so I think it would be a nice addition to also allow * in the name of a custom wildcard privilege.

@nblair
Copy link
Contributor

nblair commented Jun 25, 2024

Thanks for opening an issue @tomudding. The current validation on that field limits it to a small set. I've marked this as an enhancement request and I'll leave it open to track demand.

@brenuart
Copy link

brenuart commented Jul 3, 2024

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants