uptrakit

Cryptographic Details

Cryptographic Details

ComponentLibraryNotes
TLSRustls (aws-lc-rs backend)Secures all controller HTTPS and agent WebSocket connections.
CA KeyECDSA P-256Used for the managed CA and all issued certs.
Certificate HashingSHA-256Signing, CRL generation, OCSP responses.
Password HashingArgon2id (OWASP parameters: 19 MiB, 2 iterations)Stores user passwords.
JWT SigningjsonwebtokenSigns access and refresh tokens.
Session TokensSHA-256 hashed, 7-day expiry, rotated on every usePrevents replay attacks.
Encryption At RestAES-256-GCM (aws-lc-rs crate)Envelope encryption: KEK wraps DEKs; DEKs encrypt data. ENC:v3:<key_id>:<hex> format with per-column AAD. Random 96-bit nonces; birthday-bound collision at ~2^48 encryptions (per NIST SP 800-38D). O(1) master key rotation.
DEK Key IDSHA-256 (first 8 hex chars)Identifies which DEK encrypted a value. Embedded in the ENC:v3: ciphertext prefix.
TOFU VerificationTofuVerifier with SHA-256 fingerprintsSecures CA bootstrap with signature verification.

No custom cryptographic primitives are implemented; the project relies on audited crates and hard-coded parameters.

See Secrets and Encryption for operational details and Key Rotation for the master key rotation procedure.