-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Represent AWS Alias records as record type A #3910
Conversation
@johngmyers I understand there is an issue by representing Alias record with CNAME in the plan. I'm unsure that switching to Type A will really fix it 🤔 Those kind of lines is quite confusing, for instance: if isAlias, found := r.GetProviderSpecificProperty("alias"); found && isAlias == "true" && recordType == endpoint.RecordTypeA {
recordType = endpoint.RecordTypeCNAME
} I understand that => Wdyt about adding a new |
With #3605 we will need two alias records for a domain, one A and one AAAA. This is because Route53 requires the two records in order for the alias to be dual-stack. For backwards compatibility, the new-format TXT registry ownership record for an A alias record needs to be formatted as if it were a CNAME. |
And Route53 is the only provider that uses the "alias" ProviderSpecificProperty. |
That might help other providers, but doesn't help Route53. In Route53, alias records have an underlying type of A, AAAA, etc. and there has to be one alias record per type that is aliased. I wouldn't say Route53 has a good design, but it is what it is. |
Co-authored-by: Michel Loiseleur <[email protected]>
/lgtm |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: johngmyers The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/retest |
Description
Causes AWS Alias records to be represented in the planner as records of type A.
This resolves a conflicting interaction between #3747 (which resolves conflicts between CNAME records and records of any other type with the same domain) and #3605 (which gives the planner both CNAME and AAAA records for AWS aliases).
Checklist
End user documentation updated