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

Make ownerID and rootHost required in record spec #107

Merged
merged 4 commits into from
May 9, 2024

Conversation

mikenairn
Copy link
Member

@mikenairn mikenairn commented May 8, 2024

closes #101

Updates the DNSRecord spec to make ownerID and rootHost required. We might in the future decide to change this, but for now this is the most tested path and what is required for the kuadrant DNSPolicy. This will also prevent a situation where a DNSRecord could be created that can unexpectedly remove unrelated records from a zone.

Adds minimal validation to the fields, length > 1 for both ownerID and rootHost and a max length of 12 for ownerID.

Follow on issues/discussions:

mikenairn added 3 commits May 8, 2024 11:54
Updates the DNSRecord spec to make `ownerID` and `rootHost` required. We
might in the future decide to change this, but for now this is the most
tested path and what is required for the kuadrant DNSPolicy. This will
also prevent a situation where a DNSRecord could be created that can
unexpectedly remove unrelated records from a zone.

Adds minimal validation to the fields, length > 1 for both `ownerID` and
`rootHost` and a max length of 12 for `ownerID`.
Signed-off-by: Michael Nairn <[email protected]>
Signed-off-by: Michael Nairn <[email protected]>
@mikenairn mikenairn added this pull request to the merge queue May 9, 2024
Merged via the queue into Kuadrant:main with commit 2d0bae0 May 9, 2024
9 checks passed
@mikenairn mikenairn deleted the require_ownerid_and_root_host branch May 9, 2024 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Creating a record with no rootHost and ownerID will delete all other records in a managed zone
2 participants