Skip to content

docs: accept ADR 0011 (protected storage) and the .NET 11 toolchain - #15

Merged
AamiriYouness merged 2 commits into
mainfrom
milestone-3/protected-storage
Dec 2, 2026
Merged

AamiriYouness merged 2 commits into
mainfrom
milestone-3/protected-storage

Conversation

@AamiriYouness

Copy link
Copy Markdown
Contributor

Summary

Design for roadmap milestone 3, protected storage. Docs only.

  • ADR 0011 (accepted): session files stay files but are AES-256-GCM encrypted, with one random 32-byte key per store directory held by the OS:

    • macOS: login Keychain, default (creator-only) access
    • Windows: DPAPI, current user (Credential Manager fails over SSH)
    • Linux: Secret Service through libsecret

    The file store's leases, atomic writes, and location checks move into Shared.Storage and are reused. A key is replaced only when the OS says it is definitively missing; a locked, refused, or slow keyring fails with StorageUnavailable and never falls back to plaintext. Keyring calls have deadlines (10 s; 60 s for macOS reads that may show the access dialog). A static probe lets hosts explain a missing keyring and point to the explicit plaintext option.

  • ADR 0003 amendment (accepted): build with the .NET 11 SDK, libraries and tests target net10.0;net11.0, C# 15 everywhere, used only where it also compiles for net10.0.

  • Roadmap: milestone 3 decisions, current focus, and the next action (the toolchain step).

Verification

  • No code, project, or workflow files changed.
  • The seven required checks run on this PR.

ADR 0011: session files stay files but are AES-256-GCM encrypted, with one
random key per store directory in the macOS Keychain (creator-only access),
protected by DPAPI on Windows, or in the Linux Secret Service. File leases
and atomic writes move to Shared.Storage and are reused. A key is replaced
only when definitively missing; an unavailable keyring fails with
StorageUnavailable and never falls back to plaintext. Keyring calls have
deadlines, and a probe lets hosts explain a missing keyring.

ADR 0003 amendment: build with the .NET 11 SDK, target net10.0 and net11.0,
and use C# 15.
@AamiriYouness
AamiriYouness merged commit 916999a into main Dec 2, 2026
7 checks passed
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.

1 participant