Documentation
¶
Overview ¶
Package signer provides DNSSEC signing for DNS zones. It wraps a store.Store and handles the signing workflow: - Applies mutations atomically in a single transaction - Signs all affected RRsets - Builds NSEC/NSEC3 chain - Commits with new serial
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// Store is the underlying data store.
Store *store.Store
// Zone is the zone name to sign.
Zone domainname.DomainName
// ZSK is the Zone Signing Key (signs all RRsets except DNSKEY).
ZSK crypto.Signer
// KSK is the Key Signing Key (signs DNSKEY RRset).
KSK crypto.Signer
// Algorithm is the signing algorithm.
Algorithm dnssec.SigningAlgorithm
// DefaultTTL for generated records (NSEC, RRSIG).
DefaultTTL uint32
// RRSIGValidity is how long RRSIG records are valid.
RRSIGValidity time.Duration
// NextSecure specifies NSEC or NSEC3.
NextSecure dnssec.NextSecure
// NSEC3Params for NSEC3 mode (ignored if NextSecure is NSEC).
NSEC3Params *mindnspb.NSEC3PARAMData
// DSHash is the hash algorithm for DS records (default SHA256).
DSHash uint8
}
Config holds signer configuration.
type Mutation ¶
type Mutation struct {
Type MutationType
Name domainname.DomainName
RRType mindnspb.Type
Record mindnspb.ProtoRR // For Add/Set operations
}
Mutation represents a zone change.
func AddMutation ¶
Helper to create an Add mutation from a ProtoRR.
func DeleteMutation ¶
func DeleteMutation(name domainname.DomainName, rrtype mindnspb.Type) Mutation
Helper to create a Delete mutation.
func SetMutation ¶
Helper to create a Set mutation (replace entire RRset).
type MutationType ¶
type MutationType int
MutationType indicates the kind of mutation.
const ( MutationAdd MutationType = iota MutationDelete MutationSet // Replace entire RRset )
type Signer ¶
type Signer struct {
// contains filtered or unexported fields
}
Signer handles DNSSEC signing for a zone.
Click to show internal directories.
Click to hide internal directories.