Repository navigation
Conversation
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
force-pushed
the
dnssec-https-record
branch
from
December 4, 2026 17:22
e464f92 to
6a4199b
Compare
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>
There was a problem hiding this comment.
🔵 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
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back la
2D40
ter.
Closes #24.
Changes
tasan.apphosted zone from the existingus-east-1CertificateStack, using its hard-coded hosted zone ID. A newDnssecconstruct creates a retained P-256 KMS key, the activeTasanAppKskkey-signing key, and then enables signing. The key policy allows Route 53 to sign only for thetasan.apphosted zone.DNSSECInternalFailureandDNSSECKeySigningKeysNeedingActionin the same stack. The alarms useSumover 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 theDnssecAlarmTopicArnoutput, which has no subscriber configured in CDK.TasanStack, add an apex HTTPS alias to the existing HTTP/3-enabled CloudFront distribution so compatible clients can discoverh3on the first connection. The existing certificate configuration and A/AAAA records are preserved.No new stacks or cross-region references are added. The
CertificateStackID is unchanged, and the existing manually triggered Deploy workflow deploys both changes. It does not publish the parent DS record.Rollout and rollback
ACTIVE. Check the apex HTTPS response withdig tasan.app TYPE65forh3. Subscribe to theDnssecAlarmTopicArnoutput ofCertificateStackinus-east-1, confirm the subscription, and test delivery before adding the DS record.aws --profile SCOy-TasanApp route53 get-dnssec --hosted-zone-id Z09321561V60KK8BTT64E, publish them through the registrar, then verify the chain from the.appparent with a validating resolver or DNSViz.Validation
pnpm testpassed, 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 --quietpassed.pnpm --filter @tasan/infra exec cdk diff --app cdk.out --profile SCOy-TasanApp --method template CertificateStack TasanStackshowed only additions inCertificateStackand the HTTPS record plus a Lambda asset hash change inTasanStack, with no replacements. Nothing was deployed.🤖 Generated with Claude Code