-
Notifications
You must be signed in to change notification settings - Fork 340
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
Validate policy names for duplicates in multi zone mode #3837
Comments
Triage: it would be nice to allow policies to have the same name across meshes. 2 ways to go about it:
Other better suggestions welcomed :) |
Maybe 1 would work if it's enforced only on NEW resources until v2 where it's just disallowed |
This issue was inactive for 30 days it will be reviewed in the next triage meeting and might be closed. |
This issue was inactive for 30 days it will be reviewed in the next triage meeting and might be closed. |
This issue was inactive for 30 days it will be reviewed in the next triage meeting and might be closed. |
This issue was inactive for 90 days. It will be reviewed in the next triage meeting and might be closed. |
This issue was inactive for 90 days. It will be reviewed in the next triage meeting and might be closed. |
This issue was inactive for 90 days. It will be reviewed in the next triage meeting and might be closed. |
@lukidzi do you think there's something we could do when syncing from KDS? |
xref: #7519 |
Done by ^ |
What happened?
On a multizone kuma deployment model, we have kuma global CP running in Universal mode with postgres as backend and zone cp's running in kubernetes mode. It seems while creating policies via global CP API, we dont validate the existence of any existing policy of same name for a specific policy type. As a result, once the zone cp sync's and starts to create policies as CRD objects, new policies will fail as there already exists a CRD object for that policy type with the same name.
Steps to Repro:
kubernetes
as the backend storefoo
andbar
trace-all-traffic
via kumactl. Both apply request will succeed and we can validate viakumactl get traffic-traces -m <mesh-name>
Solution
Add a validation step in the API to check for the existence of a duplicate policy with same name for a specific policy type and fail the request may be with a 409 status and a clear error message indicating the existence of a duplicate entry?
The text was updated successfully, but these errors were encountered: