ADR-0047: A cryptographic inventory generated from state#

  • Status: accepted. Applies principle 1 and principle 10 (ADR-0042).
  • Date: 2026-12-01

Context#

A software bill of materials answers two questions: what a system is made of, and what is exposed when a weakness is announced in one of its parts. For this project an SBOM has almost nothing to list. The site build and the Lambda functions use only the Python standard library (ADR-0007), and the CI tools are already pinned in one lockfile (ADR-0036).

What the configuration does choose is cryptography: the DNSSEC keys, the certificate's key, the TLS key exchange, DKIM, how CloudFront signs its requests to its origins, and how buckets are encrypted at rest. The weakness those choices face is a large quantum computer, which breaks the public-key algorithms and only weakens the symmetric ones. The site states some of these algorithms in its DNSSEC, certificate and edge tables, but nowhere says, for each one, what it protects, who holds its key, and what a quantum computer would do to it.

Decision#

  1. Each module that chooses an algorithm outputs crypto_inventory: one row per use, saying what it protects, the algorithm as the provider names it, read from the resource, and who holds the key. The production root gathers the rows into site_facts.crypto_inventory. Tests assert the rows that carry a decision: the hybrid key exchange appears only under TLSv1.3_2025, DKIM only with mail on, and DNSSEC keys only when the zone is signed.
  2. The build classifies each algorithm from a table in site/build.py: a post-quantum hybrid, broken by Shor's algorithm, or weakened by Grover's algorithm and not broken. It renders the inventory on the TLS and post-quantum page, sorted by that class. An algorithm the table does not list fails the build, so no algorithm reaches the page unclassified.
  3. The inventory covers what this configuration chooses. The page names what it leaves out: encryption AWS applies by default where the configuration chooses nothing, the bootstrap layer, and the deploy path's credentials.

Alternatives considered#

A CycloneDX cryptographic bill of materials served by the site. It is the standard form, and the build could write it from the same facts. But it would be a new kind of file for the site to serve, and nothing reads this domain's cryptography by machine. Principle 10 prefers the table. The file stays a build-time export of the same facts, for when something needs it.

A cryptography scanner, such as those that build a CBOM from source code. They look for calls to cryptographic libraries. Here the cryptography is configuration, which they do not read, and each would be another tool to pin.

Classifying in OpenTofu. A lookup that fails on an unknown algorithm would fail the plan, so a table on a page could block a change to the infrastructure. In the build, the failure stops only the deploy that would publish the claim.

A table written by hand. It would drift from the configuration, which is the failure the living documentation exists to prevent.

Consequences#

Positive: which uses of cryptography are post-quantum, and which a quantum computer would break, is a fact from state, next to the prose that explains it. A new algorithm cannot be published without a judgement on it.

Negative: completeness rests on each module declaring its rows. Nothing checks that a module chooses no algorithm it does not declare (limitations). The classification is knowledge written by hand, corrected in the table if it becomes wrong. Changing an algorithm fails the site deploy after its apply until the build knows the new value, and the site shows the previous inventory until then.

Neutral: the DNSSEC and certificate tables keep their algorithm rows. Both they and the inventory are generated from the same state. The change adds no workflow, check target or scheduled job (ADR-0029): the refusal is part of the existing build.

Revisit when#

  • Something needs the inventory by machine, such as an auditor, a scanner or an attestation, which would make the CycloneDX file worth serving.
  • A module's cryptography cannot be read from its resources, which would put a hand-written row in the inventory.

Built 2026-12-01 from commit 5f3eb2c4b04f9d8367364b6f4598a05a364e2263. This page was generated from the same source that provisions the infrastructure it describes.