Skip to content

feat(credentialstore): add versioned encrypted CAS store - #536

Merged
JAORMX merged 3 commits into
mainfrom
feat/issue-519-credential-store
Aug 15, 2026
Merged

JAORMX merged 3 commits into
mainfrom
feat/issue-519-credential-store

Conversation

@JAORMX

@JAORMX JAORMX commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add an OAuth-agnostic credential-store contract with opaque bytes, conditional-only CAS, typed errors, namespace isolation, and deterministic memory backend
  • add a hardened local encrypted-file backend using AES-256-GCM, location-bound AAD, stable per-record flocking, owner/mode/path validation, bounded strict envelopes, atomic durable replacement, and explicit unsupported-platform behavior
  • add reusable conformance, subprocess contention, fault/corruption/path/cancellation, fuzz, and race coverage
  • document the local-only threat model and resource lifecycle in ADR 0108 and living architecture docs

Security posture

The backend accepts only explicit absolute roots and 32-byte key material. It performs no key acquisition, password derivation, environment/XDG lookup, prompting, global logging, enumeration, or cleanup. It is scoped to cooperating processes on one local Unix host/filesystem and does not claim distributed, Kubernetes, or tenant-isolated semantics.

Verification

  • go test -race ./internal/adapter/credentialstore/...
  • task generate
  • task docs:check
  • task lint
  • task test
  • go run ./cmd/mecademo
  • independent spec/security/architecture/reuse/QA review with repair wave; final security recheck clean

Closes #519
Part of #518

@JAORMX
JAORMX force-pushed the feat/issue-519-credential-store branch from b66e4e2 to ceb1f31 Compare August 15, 2026 09:31
@JAORMX
JAORMX merged commit 82aa7a1 into main Aug 15, 2026
15 checks passed
@JAORMX
JAORMX deleted the feat/issue-519-credential-store branch August 15, 2026 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Credential store: versioned CAS records and hardened local backend

1 participant