Skip to content

[DTOSS-13486] Fix logic for front door apex records - #319

Merged
saliceti merged 1 commit into
mainfrom
DTOSS-13486-update-domain-fix-apex-logic
Sep 23, 2026
Merged

saliceti merged 1 commit into
mainfrom
DTOSS-13486-update-domain-fix-apex-logic

Conversation

@saliceti

Copy link
Copy Markdown
Contributor

Description

When deploying the new domains for run breast screening, the apex domains failed. The logic was failing.

Context

The logic didn't work for all the types of record. It is now working and simpler to understand

  + resource "azurerm_dns_txt_record" "challenge" {
      + fqdn                = (known after apply)
      + id                  = (known after apply)
      + name                = "_dnsauth.pr-9999"
      + resource_group_name = "rg-hub-dev-uks-public-dns-zones"
      + ttl                 = 60
      + zone_name           = "review.run-breast-screening.nhs.uk"

Type of changes

  • Refactoring (non-breaking change)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would change existing functionality)
  • Bug fix (non-breaking change which fixes an issue)

The logic didn't work for all the types of record
It is now working and simpler to understand
@sonarqubecloud

Copy link
Copy Markdown

@mrlockstar mrlockstar left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@saliceti
saliceti added this pull request to the merge queue Sep 23, 2026
Merged via the queue into main with commit ef320dd Sep 23, 2026
13 checks passed
@saliceti
saliceti deleted the DTOSS-13486-update-domain-fix-apex-logic branch September 23, 2026 15:25
saliceti added a commit that referenced this pull request Sep 24, 2026
#319 fixed the
log for apex domains, but broke non-apex domains. It incorrectly
generated the _dnsauth record with the DNS zone suffix, like
_dnsauth.pr-2177.review.run-breast-screening.nhs.uk

Fix the domain so it is simply like:
_dnsauth.pr-2177.review
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.

2 participants