octodns.zone.caa
Classes
|
Comprehensive best-practice validator for CAA records. |
- class octodns.zone.caa.CaaZoneValidator(id, presence='optional', sets=None)[source]
Bases:
ZoneValidatorComprehensive best-practice validator for CAA records.
Checks:
Presence of ``issue`` or ``issuewild`` — At least one CAA record must contain an
issueorissuewildtag to explicitly authorize which Certificate Authorities may issue certificates.Explicit wildcard policy — If an
issuetag is present but noissuewildtag exists, wildcard certificate issuance falls back to theissuepolicy. This validator recommends adding an explicitissuewildrecord to make the wildcard-issuance policy clear.
Can operate in two modes: ‘optional’ (default) and ‘required’. In ‘optional’ mode, the validator only runs if CAA records are present. In ‘required’ mode, a CAA record MUST be present at the zone apex.
Regardless of mode, if CAA records are found (at the apex or at sub-domains) they will be validated against best practices.
Enabled as part of the
best-practicevalidator set:manager: enabled: - best-practice
Examples:
Common configuration for Let’s Encrypt:
- flags: 0 tag: issue value: letsencrypt.org - flags: 0 tag: issuewild value: letsencrypt.org
Configuration for non-issuance (restricting all issuance):
- flags: 0 tag: issue value: ";"
References: