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

Admin should not be able to create two policies with the same name #79

Open
v0lkan opened this issue Jan 10, 2025 · 0 comments
Open

Admin should not be able to create two policies with the same name #79

v0lkan opened this issue Jan 10, 2025 · 0 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@v0lkan
Copy link
Contributor

v0lkan commented Jan 10, 2025

Currently it's possible to create two policies with the same name.

When that's done they will have different ids; so they will be distinct policies, but their name will be the same.

That's rather confusing for the end user and could even result in misconfigurations.

It's better to make the policy name unique (both in code, and also a unique constraint in sqlite too)

@v0lkan v0lkan added bug Something isn't working good first issue Good for newcomers labels Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant