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 1 commit into
mainfrom
dnssec-https-record
Open

Hilzu wants to merge 1 commit into
mainfrom
dnssec-https-record

Conversation

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

Closes #24.

Changes

  • DNSSEC signing: TasanStack turns on DNSSEC for the tasan.app hosted zone with a key-signing key named TasanAppKsk.
  • DnssecKeyStack (us-east-1): Route 53 signs only with an asymmetric ECC_NIST_P256 KMS key in us-east-1, so the key lives in its own stack there and reaches TasanStack through a cross-region reference. Only dnssec-route53.amazonaws.com can 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 when DNSSECInternalFailure or DNSSECKeySigningKeysNeedingAction reaches 1 or more in a 5-minute window. Alarm and recovery notifications go to an SNS topic, whose ARN is the AlarmTopicArn output. The topic has no subscription so that no address is committed to the repository.
  • HTTPS record: an alias from the apex to CloudFront. CloudFront answers it with the distribution's ALPN protocols (h3, h2) and IP hints, so browsers can use HTTP/3 on the first connection instead of learning about it from Alt-Svc. auth.tasan.app is unchanged.

Deploy order is DnssecKeyStack → TasanStack → DnssecAlarmsStack, and cdk deploy --all resolves it from the cross-region references.

After deploying

  1. Subscribe to the alarm topic, for example:
    aws sns subscribe --region us-east-1 --topic-arn <AlarmTopicArn> --protocol email --notification-endpoint <address>
  2. Signing has no effect until the parent .app zone publishes a DS record. Wait at least the zone's longest TTL after deploying, then get the DS record with aws route53 get-dnssec --hosted-zone-id <zone-id> and add it at the registrar. If the domain is registered with Route 53 Domains, use aws route53domains associate-delegation-signer-to-domain instead.
  3. Check the chain with dig +dnssec tasan.app or https://dnsviz.net/, and check the HTTPS record with dig 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, the HTTPS alias record, the alarm dimensions, and the stack dependency order.
  • Not run: cdk:diff against the live account, and no deployment.

This branch is based on main and is independent of #80.

🤖 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>

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

1 participant

0