caddy: access logs, security headers; dns: CAA records
- (logging) snippet: JSON access log at /data/logs/access.log, rotated, tokens/OIDC codes and API key headers masked - (security_headers)/(no_framing): nosniff, Referrer-Policy and X-Frame-Options only where the app sets none; drop Server/X-Powered-By - (static_site): adds a CSP (base-uri, object-src, frame-ancestors, form-action) and Permissions-Policy to the four static sites - CAA records: Let's Encrypt + ZeroSSL on both domains, Amazon on thesatelliteoflove.com for links. (CloudFront/ACM), no wildcards Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
0afdd670ff
commit
30bc0a46b4
2 files changed
+133
-23
No files matched your search
@@ -62,6 +62,26 @@
|
||||
- name: "repair"
|
||||
ip: "{{ network.netcup_ip }}"
|
||||
|
||||
# CAA: only these CAs may issue certificates for each domain (and its
|
||||
# subdomains). Let's Encrypt is what Caddy uses; sectigo.com is ZeroSSL,
|
||||
# Caddy's automatic fallback CA. Amazon covers links.thesatelliteoflove.com
|
||||
# (CloudFront with an ACM certificate). No CA may issue wildcards.
|
||||
caa_records:
|
||||
- zone: thesatelliteoflove.com
|
||||
records:
|
||||
- '0 issue "letsencrypt.org"'
|
||||
- '0 issue "sectigo.com"'
|
||||
- '0 issue "amazon.com"'
|
||||
- '0 issue "amazontrust.com"'
|
||||
- '0 issue "awstrust.com"'
|
||||
- '0 issue "amazonaws.com"'
|
||||
- '0 issuewild ";"'
|
||||
- zone: nerder.land
|
||||
records:
|
||||
- '0 issue "letsencrypt.org"'
|
||||
- '0 issue "sectigo.com"'
|
||||
- '0 issuewild ";"'
|
||||
|
||||
# DNS records to remove for decommissioned services
|
||||
removed_records:
|
||||
- name: thesatelliteoflove.com
|
||||
@@ -117,3 +137,14 @@
|
||||
loop: "{{ query('subelements', domains, 'dns_records') }}"
|
||||
loop_control:
|
||||
loop_var: item
|
||||
|
||||
- name: Set CAA records restricting which CAs may issue certificates
|
||||
amazon.aws.route53:
|
||||
state: present
|
||||
zone: "{{ item.zone }}"
|
||||
record: "{{ item.zone }}"
|
||||
type: CAA
|
||||
ttl: 3600
|
||||
value: "{{ item.records }}"
|
||||
overwrite: true
|
||||
loop: "{{ caa_records }}"
|
||||
Reference in new issue
Block a user