Skip to content

ADR 006: server_secret is a single point of compromise for all content #16

Closed

Description

@thiras

Category: Security Gap

ADR 006: The epoch key derivation uses a single server_secret for all content:

epoch_key = BLAKE3_KDF(server_secret, epoch_id)

If server_secret is compromised, an attacker can derive all past and future epoch keys and decrypt any sealed envelope. The ADR mentions "rotation of server_secret" but leaves critical questions unanswered:

  1. How is rotation coordinated across multiple app server instances?
  2. What happens to in-flight envelopes sealed with the old epoch key during rotation?
  3. Should server_secret be derived per-content-owner rather than globally? (This would limit blast radius)
  4. How long are old epoch keys valid after rotation? Is there a grace period?

Recommendation

  • Specify the rotation protocol (e.g., dual-key overlap period)
  • Consider per-tenant server_secret to limit blast radius of a single compromise
  • Require HSM/KMS storage for server_secret even in the ADR (not just "in production")

ADRs affected

  • ADR 006 (E2E Encryption)

Activity

  1. added
    kind:security
    on Mar 29, 2026
  2. self-assigned this
    on Mar 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind:security

Type

No type

Fields

Priority

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions