Frequently Asked Questions

Design and Architecture

Why did you build this project in Rust?

Because Cascade is written in the Rust programming language, it is significantly less likely to crash or suffer from memory safety issues. Rust also makes it easier to leverage the higher core count of modern computers through “fearless concurrency”.

See also

Rust Programming Language website

An overview of Rust’s feature set.

Do I need separate database software to run Cascade?

No, the Cascade pipeline runs as a single binary and no additional database software is required. Cascade stores its state in on-disk files in JSON format, by default at various locations under a single parent directory. As such, state is human-readable and easily backed up.

See also

Architecture

An overview of Cascade’s design.

Do I need to use a HSM to run Cascade?

No, Cascade does not require a Hardware Security Module (HSM) to operate. While it is common practice to secure cryptographic key material using an HSM, not all operators use an HSM. Cascade is able to use OpenSSL and/or ring software cryptography to generate signing keys and to cryptographically sign DNS RRset data, storing the generated keys in on-disk files.

Why is the default policy KSK/ZSK and not CSK?

Key rolls should be automatic and frequent. Frequent key rolls help to ensure that they become normal operational practice and not an exception. Key rolls should be automated as much as possible to avoid mistakes. Unfortunately, the standard for updating DS records (CDS, RFC 8078) is not widely implemented so in many cases a KSK roll has to have a manual component, namely submitting and updating the DS record at the parent.

These factors favor the KSK/ZSK split because it makes frequent ZSK rolls possible and KSK rolls can be performed less frequently.

Finally, KSK and ZSK key rolls are less complex than CSK rolls. Some people use a CSK and never roll the key, which avoids the key roll complexity but leads to a lack of operational practice when a situation arises that a key roll is needed.

Why are the default key lifetimes the way they are?

A ZSK roll requires re-signing the entire zone. For bigger zones, this should not be done too often to keep the overhead of the key roll low. Once a month seems a good compromise.

A KSK roll requires updating the DS RRset in the parent zone. For this reason, rolling a KSK once a year is reasonable.

See also

Hardware Security Modules (HSMs)

Hardware Security Modules (HSMs).

Signing and Zones

Why does Cascade sign an unchanged zone every 12 hours?

Cascade refreshes DNSSEC signatures gradually instead of replacing every signature at once. By default, it starts an incremental signing operation every 12 hours, including when the unsigned zone has not changed and no key roll is in progress.

Each operation creates a new signed version but normally replaces only some of the signatures. This is expected and does not mean that Cascade is signing the entire zone again. You can change the frequency with the signature refresh interval policy setting.

See also

Incremental Signing

How Cascade schedules signature refreshes and chooses which signatures to replace.

Installing and Building

Can I build Cascade with LibreSSL?

No, OpenSSL 3.x is required as these versions fully support Edwards-curve Digital Security Algorithm (EdDSA) keys and signatures using the Ed448 curve (DNSSEC algorithm 16). By contrast, LibreSSL does not yet have support for Ed448.

Ed448 was standardized for use with DNSSEC in February 2017 (RFC 8080) and has been a RECOMMENDED algorithm since June 2019 (RFC 8624).

See also

Install OpenSSL

Installing OpenSSL on common distributions, such as Debian, Ubuntu and Red Hat Enterprise Linux.