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>
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 later.
Closes #24.
Changes
TasanStackturns on DNSSEC for thetasan.apphosted zone with a key-signing key namedTasanAppKsk.DnssecKeyStack(us-east-1): Route 53 signs only with an asymmetricECC_NIST_P256KMS key in us-east-1, so the key lives in its own stack there and reachesTasanStackthrough a cross-region reference. Onlydnssec-route53.amazonaws.comcan use the key, and only for this account's hosted zones. The key is retained if the stack is deleted, because losing it while the DS record is published would make the domain unresolvable for validating resolvers. It costs about $1 a month.DnssecAlarmsStack(us-east-1): Route 53 publishes DNSSEC metrics only in us-east-1. This stack alarms whenDNSSECInternalFailureorDNSSECKeySigningKeysNeedingActionreaches 1 or more in a 5-minute window. Alarm and recovery notifications go to an SNS topic, whose ARN is theAlarmTopicArnoutput. The topic has no subscription so that no address is committed to the repository.h3,h2) and IP hints, so browsers can use HTTP/3 on the first connection instead of learning about it fromAlt-Svc.auth.tasan.appis unchanged.Deploy order is
DnssecKeyStack→TasanStack→DnssecAlarmsStack, andcdk deploy --allresolves it from the cross-region references.After deploying
aws sns subscribe --region us-east-1 --topic-arn <AlarmTopicArn> --protocol email --notification-endpoint <address>.appzone publishes a DS record. Wait at least the zone's longest TTL after deploying, then get the DS record withaws route53 get-dnssec --hosted-zone-id <zone-id>and add it at the registrar. If the domain is registered with Route 53 Domains, useaws route53domains associate-delegation-signer-to-domaininstead.dig +dnssec tasan.appor https://dnsviz.net/, and check the HTTPS record withdig tasan.app HTTPS.Validation
pnpm test: all package tests pass (infra 34, including the new key and alarm stack tests), plus Prettier, ESLint and TypeScript.pnpm --filter @tasan/infra cdk:synth --lookups=false: succeeds. Checked the templates for the key-signing key, the DNSSEC resource that depends on it, theHTTPSalias record, the alarm dimensions, and the stack dependency order.cdk:diffagainst the live account, and no deployment.This branch is based on
mainand is independent of #80.🤖 Generated with Claude Code