Bacon v2 enforces .yml
config file validation and adds support for Porkbun's priority property. v2 may break your deployment pipeline if your config file isn't valid. See Bacon's README for more details about validation.
In order for a config file to be valid, all of the following must be true:
- The config file must have a
domain
field. - Each record must have a
host
field. - Each record must have a
type
field. - Each record must have a
content
field. - Each record must have a
ttl
field. - Each record's
type
must beA
,MX
,CNAME
,ALIAS
,TXT
,NS
,AAAA
,SRV
,TLSA
,CAA
,HTTPS
, orSVCB
. - Each record's
ttl
must be greater than or equal to600
. - Each record with a
priority
must have type ofMX
orSRV
. - Each
CNAME
record must have a uniquehost
. - Non-
CNAME
records may not sharehost
with anyCNAME
record.
These validations ensure consistency between deployments.