Skip to content

Commit

Permalink
Merge pull request #8 from co-cddo/add-dm-zone
Browse files Browse the repository at this point in the history
Add additional delegated zone(s) for data marketplace
  • Loading branch information
OllieJC authored Nov 9, 2023
2 parents 41f136a + 64c385a commit 23b2047
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cdn/functions/router/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ function handler(event) {
if (uri.match(/^(\/.well[-_]known)?\/security\.txt$/)) {
return redirect("https://vulnerability-reporting.service.security.gov.uk/.well-known/security.txt");
}

if (uri.match(/^\/(dm|datamarketplace)$/)) {
return redirect("https://mvp.dm.cddo.cabinetoffice.gov.uk");
}

if (uri.match(/^\/sbd$/)) {
return redirect("https://www.security.gov.uk/guidance/secure-by-design/");
Expand Down
14 changes: 14 additions & 0 deletions dns/route53-dm-cddo-co-gov-uk.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
resource "aws_route53_record" "dm-delegated-zone" {
zone_id = aws_route53_zone.cddo-cabinetoffice-gov-uk.zone_id
allow_overwrite = true
name = "dm"
ttl = local.standard_ttl
type = "NS"

records = [
"ns-915.awsdns-50.net.",
"ns-81.awsdns-10.com.",
"ns-1190.awsdns-20.org.",
"ns-1631.awsdns-11.co.uk.",
]
}

0 comments on commit 23b2047

Please sign in to comment.