You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Credential encryption key stored as plaintext env var without rotation #267
The AES-256-GCM encryption key used for all .credentials.enc files is passed as a plaintext environment variable (CREDENTIAL_ENCRYPTION_KEY) in docker-compose.yml. This key encrypts/decrypts credentials for ALL agents on the platform.
Issues:
Visible in docker inspect output
Visible in process listings (/proc/*/environ)
No key rotation mechanism exists
Single key for all agents — if compromised, all encrypted credentials are exposed
Exploit Scenario
Attacker with read access to any backend container process listing (e.g., via container escape or compromised monitoring agent) extracts CREDENTIAL_ENCRYPTION_KEY → decrypts all agent .credentials.enc backup files.
Remediation
Short-term:
Document key rotation procedure (generate new key, re-encrypt all .credentials.enc files)
Restrict container process environment visibility
Medium-term:
Migrate to Docker secrets (Swarm mode) or external secret manager (HashiCorp Vault, AWS Secrets Manager)
Consider per-agent encryption keys derived from a master key
/roadmap-plan prioritize (2026-06-15): bumped P2→P1 and promoted incubating→ready. Rationale: VERIFIED HIGH CSO finding (8/10) — a single AES-256-GCM master key encrypts all agents' .credentials.enc, passed as a plaintext env var (visible in docker inspect / /proc/*/environ) with no rotation and no per-agent isolation. Flagged as under-ranked in the 2026-06-09 roadmap review; elevating to feed the Security & Trust 'Now' lane. Pairs with #1089 (credential hot-reload rotation mechanism).
Activity
docs(security): CSO audit 2026-04-05 — 0 critical, 3 high, 5 medium
vybe commentedon Jun 15, 2026
/roadmap-plan prioritize (2026-06-15): bumped P2→P1 and promoted incubating→ready. Rationale: VERIFIED HIGH CSO finding (8/10) — a single AES-256-GCM master key encrypts all agents'
.credentials.enc, passed as a plaintext env var (visible indocker inspect//proc/*/environ) with no rotation and no per-agent isolation. Flagged as under-ranked in the 2026-06-09 roadmap review; elevating to feed the Security & Trust 'Now' lane. Pairs with #1089 (credential hot-reload rotation mechanism).dolho commentedon Jun 30, 2026
/claim
github-actions commentedon Jun 30, 2026
Claimed by @dolho. Label
status-in-progressadded.Next steps:
feature/267-<short-slug>Fixes #267fix(ci): rename SECRET_COLUMNS to satisfy CodeQL clear-text-logging (#…
fix(security): credential encryption key rotation (#267) (#1385)
docs(user-docs): sync to dev state 2026-07-03 — v0.7.0 What's New + p…