-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Enforce a CNAME DNS entry has a single answer
There are currently two ways to create `Guardian::DNS::RecordSet` resource: 1. `GuCname` 2. `GuDnsRecordSet` A CNAME should not return multiple answers without "the correct filters in place (such as SELECT_FIRST_N 1) to limit them to a single answer at resolution time". `Guardian::DNS::RecordSet` does not create any filters (and it's unlikely to). The props of `GuCname` enforce this single answer restriction, however if you're still able to use `GuDnsRecordSet` to create a CNAME that violates this restriction. In this change we throw if a CNAME is being created with multiple answers.
- Loading branch information
Showing
2 changed files
with
41 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters