DNSSECSigningConfig

Struct DNSSECSigningConfig 

Source
pub struct DNSSECSigningConfig {
    pub enabled: bool,
    pub policy: Option<String>,
    pub algorithm: Option<String>,
    pub ksk_lifetime: Option<String>,
    pub zsk_lifetime: Option<String>,
    pub nsec3: Option<bool>,
    pub nsec3_salt: Option<String>,
    pub nsec3_iterations: Option<u32>,
    pub keys_from: Option<DNSSECKeySource>,
    pub auto_generate: Option<bool>,
    pub export_to_secret: Option<bool>,
}
Expand description

DNSSEC zone signing configuration

Configures automatic DNSSEC key generation, zone signing, and key rotation. Uses BIND9’s modern dnssec-policy for declarative key management.

§Key Management Options

  1. User-Supplied Keys (Production): Keys managed externally via Secrets
  2. Auto-Generated Keys (Dev/Test): BIND9 generates keys, operator backs up to Secrets
  3. Persistent Storage (Legacy): Keys stored in PersistentVolume

§Example

signing:
  enabled: true
  policy: "default"
  algorithm: "ECDSAP256SHA256"
  kskLifetime: "365d"
  zskLifetime: "90d"
  nsec3: true
  nsec3Iterations: 0

Fields§

§enabled: bool

Enable DNSSEC signing for zones

When true, zones will be automatically signed with DNSSEC. Keys are generated and managed according to the configured policy.

Default: false

§policy: Option<String>

DNSSEC policy name

Name of the DNSSEC policy to apply. Built-in policies:

  • "default" - Standard policy with ECDSA P-256, 365d KSK, 90d ZSK

Custom policies can be defined in future enhancements.

Default: "default"

§algorithm: Option<String>

DNSSEC algorithm

Cryptographic algorithm for DNSSEC signing. Supported algorithms:

  • "ECDSAP256SHA256" (13) - ECDSA P-256 with SHA-256 (recommended, fast)
  • "ECDSAP384SHA384" (14) - ECDSA P-384 with SHA-384 (higher security)
  • "RSASHA256" (8) - RSA with SHA-256 (widely compatible)

ECDSA algorithms are recommended for performance and smaller key sizes.

Default: "ECDSAP256SHA256"

§ksk_lifetime: Option<String>

Key Signing Key (KSK) lifetime

Duration before KSK is rotated. Format: “365d”, “1y”, “8760h”

KSK signs the DNSKEY RRset and is published in the parent zone as a DS record. Longer lifetimes reduce DS update frequency but increase impact of key compromise.

Default: "365d" (1 year)

§zsk_lifetime: Option<String>

Zone Signing Key (ZSK) lifetime

Duration before ZSK is rotated. Format: “90d”, “3m”, “2160h”

ZSK signs all other records in the zone. Shorter lifetimes improve security but increase signing overhead.

Default: "90d" (3 months)

§nsec3: Option<bool>

Use NSEC3 instead of NSEC for authenticated denial of existence

NSEC3 hashes zone names to prevent zone enumeration attacks. Recommended for privacy-sensitive zones.

Default: false (use NSEC)

§nsec3_salt: Option<String>

NSEC3 salt (hex string)

Salt value for NSEC3 hashing. If not specified, BIND9 auto-generates. Format: hex string (e.g., “AABBCCDD”)

Default: Auto-generated by BIND9

§nsec3_iterations: Option<u32>

NSEC3 iterations

Number of hash iterations for NSEC3. RFC 9276 recommends 0 for performance.

Important: Higher values significantly impact query performance.

Default: 0 (per RFC 9276 recommendation)

§keys_from: Option<DNSSECKeySource>

DNSSEC key source configuration

Specifies where DNSSEC keys come from:

  • User-supplied Secret (recommended for production)
  • Persistent storage (legacy)

If not specified and auto_generate is true, keys are generated in emptyDir and optionally backed up to Secrets.

§auto_generate: Option<bool>

Auto-generate DNSSEC keys if no keys_from specified

When true, BIND9 generates keys automatically using the configured policy. Recommended for development and testing.

Default: true

§export_to_secret: Option<bool>

Export auto-generated keys to Secret for backup/restore

When true, operator exports BIND9-generated keys to a Kubernetes Secret. Enables self-healing: keys are restored from Secret on pod restart.

Secret name format: dnssec-keys-<zone-name>-generated

Default: true

Trait Implementations§

Source§

impl Clone for DNSSECSigningConfig

Source§

fn clone(&self) -> DNSSECSigningConfig

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for DNSSECSigningConfig

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for DNSSECSigningConfig

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl JsonSchema for DNSSECSigningConfig

Source§

fn schema_name() -> Cow<'static, str>

The name of the generated JSON Schema. Read more
Source§

fn schema_id() -> Cow<'static, str>

Returns a string that uniquely identifies the schema produced by this type. Read more
Source§

fn json_schema(generator: &mut SchemaGenerator) -> Schema

Generates a JSON Schema for this type. Read more
Source§

fn inline_schema() -> bool

Whether JSON Schemas generated for this type should be included directly in parent schemas, rather than being re-used where possible using the $ref keyword. Read more
Source§

impl PartialEq for DNSSECSigningConfig

Source§

fn eq(&self, other: &DNSSECSigningConfig) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for DNSSECSigningConfig

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for DNSSECSigningConfig

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> FromRef<T> for T
where T: Clone,

§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
§

impl<T> IntoRequest<T> for T

§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
§

impl<L> LayerExt<L> for L

§

fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>
where L: Layer<S>,

Applies the layer to a service and wraps it in [Layered].
§

impl<T> PolicyExt for T
where T: ?Sized,

§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] only if self and other return Action::Follow. Read more
§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
§

impl<T> ServiceExt for T

§

fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>
where Self: Sized,

Apply a transformation to the response body. Read more
§

fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>
where Self: Sized,

High level tracing that classifies responses using HTTP status codes. Read more
§

fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>
where Self: Sized,

High level tracing that classifies responses using gRPC headers. Read more
§

fn follow_redirects(self) -> FollowRedirect<Self>
where Self: Sized,

Follow redirect resposes using the Standard policy. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,