8000 Sign tasan.app with DNSSEC and publish an HTTPS record by Hilzu · Pull Request #81 · Hilzu/tasan · GitHub
[go: up one dir, main page]

Skip to content

Sign tasan.app with DNSSEC and publish an HTTPS record - #81

Open
Hilzu wants to merge 4 commits into
mainfrom
dnssec-https-record
Open

Hilzu wants to merge 4 commits into
mainfrom
dnssec-https-record

Conversation

@Hilzu
@Hilzu Hilzu commented Nov 7, 2026 •
Copy link
Copy Markdown
Owner

Closes #24.

Changes

  • Enable Route 53 DNSSEC signing on the existing tasan.app hosted zone from the existing us-east-1 CertificateStack, using its hard-coded hosted zone ID. A new Dnssec construct creates a retained P-256 KMS key, the active TasanAppKsk key-signing key, and then enables signing. The key policy allows Route 53 to sign only for the tasan.app hosted zone.
  • Monitor DNSSECInternalFailure and DNSSECKeySigningKeysNeedingAction in the same stack. The alarms use Sum over four-hour periods to match Route 53's metric cadence. Missing data does not clear an alarm. Alarm and recovery notifications go to the SNS topic in the DnssecAlarmTopicArn output, which has no subscriber configured in CDK.
  • In TasanStack, add an apex HTTPS alias to the existing HTTP/3-enabled CloudFront distribution so compatible clients can discover h3 on the first connection. The existing certificate configuration and A/AAAA records are preserved.

No new stacks or cross-region references are added. The CertificateStack ID is unchanged, and the existing manually triggered Deploy workflow deploys both changes. It does not publish the parent DS record.

Rollout and rollback

  1. After deployment, confirm Route 53 is signing and the KSK is ACTIVE. Check the apex HTTPS response with dig tasan.app TYPE65 for h3. Subscribe to the DnssecAlarmTopicArn output of CertificateStack in us-east-1, confirm the subscription, and test delivery before adding the DS record.
  2. Follow AWS's staged rollout guidance. Wait at least the previous maximum zone TTL after signing is in sync (currently 172,800 seconds, or 48 hours), and monitor resolution. Retrieve the DS details using aws --profile SCOy-TasanApp route53 get-dnssec --hosted-zone-id Z09321561V60KK8BTT64E, publish them through the registrar, then verify the chain from the .app parent with a validating resolver or DNSViz.
  3. Rollback after DS publication: remove the parent DS record first, confirm removal has propagated, and wait out the DS TTL before reverting the signing resources or disabling the key. See the Route 53 rollback guidance.

Validation

  • pnpm test passed, including format, lint and type checks, plus assertions for the key requirements and zone-scoped policy, the active KSK dependency, alarms, and the apex HTTPS alias.
  • pnpm --filter @tasan/infra cdk:synth --lookups=false --quiet passed.
  • pnpm --filter @tasan/infra exec cdk diff --app cdk.out --profile SCOy-TasanApp --method template CertificateStack TasanStack showed only additions in CertificateStack and the HTTPS record plus a Lambda asset hash change in TasanStack, with no replacements. Nothing was deployed.

🤖 Generated with Claude Code

Route 53 signs with an asymmetric P-256 KMS key that has to be in
us-east-1, so the key lives in a new DnssecKeyStack there and reaches
TasanStack through a cross-region reference. Route 53 publishes its
DNSSEC metrics only in us-east-1, so a new DnssecAlarmsStack alarms on
DNSSECInternalFailure and DNSSECKeySigningKeysNeedingAction and notifies
an SNS topic.

An HTTPS alias record for the apex points to CloudFront, which answers
with its ALPN protocols and IP hints, so browsers can use HTTP/3 on the
first connection.

Closes #24

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@Hilzu
Hilzu force-pushed the dnssec-https-record branch from e464f92 to 6a4199b Compare December 4, 2026 17:22
Hilzu and others added 3 commits December 4, 2026 20:03
Manage the key, key-signing key, signing and alarms in the existing
us-east-1 stack using the hard-coded hosted zone ID, removing the two
extra stacks and their cross-region references. The key policy now
allows Route 53 to sign only for the app's hosted zone.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Keep the CloudFormation construct ID CertificateStack unchanged.\n\nCo-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI left a comment
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔵 Needs a closer look

Production DNSSEC carries domain-wide outage risk, requiring human verification of live signing, alarm delivery, and staged registrar DS rollout/rollback that static review cannot establish.

No open issues 🎉

What changed in this PR

Adds DNSSEC signing and HTTPS discovery for tasan.app within the existing infrastructure stacks.

Changes:

  • Adds DNSSEC signing with a retained KMS key and SNS-backed failure alarms.
  • Adds an apex HTTPS alias to the HTTP/3-enabled CloudFront distribution.
  • Renames the regional stack class while preserving its deployed ID, and adds infrastructure assertions.

Validation: Tests and synthesis were not rerun because project dependencies are not installed.

File Description
packages/​infra/​src/​us-east-1-stack.ts Adds DNSSEC and alarm-topic output; renames the class.
packages/​infra/​src/​tasan-stack.ts Adds the apex HTTPS alias.
packages/​infra/​src/​tasan-stack.test.ts Tests the HTTPS alias and updates stack references.
packages/​infra/​src/​dnssec.ts Defines signing resources, alarms, and notifications.
packages/​infra/​src/​dnssec.test.ts Checks key policy, signing dependencies, and monitoring.
packages/​infra/​src/​cdk-app.ts Uses the renamed class while preserving CertificateStack.

Review effort: Max (adaptive)

This branch has not been deployed

No deployments
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.

Create HTTPS DNS record for faster HTTP3 negotiation

2 participants

0