Bound derived filesystem key lifetimes #5

Manually merged
erikinkinen merged 8 commits from feature/owned-filesystem-key-lifetimes into main 2026-11-14 20:48:47 +01:00
Owner

Keep derived filesystem keys in one private owner and borrow them for content and filename operations. Guard extraction, expansion, pads and intermediate digests through their original lifetimes.

Caller inputs, returned plaintext and compiler-created copies remain outside this storage-erasure guarantee.

This branch also includes the completed downstream features from #8.

This branch also includes the completed downstream features from #6, #8.

Keep derived filesystem keys in one private owner and borrow them for content and filename operations. Guard extraction, expansion, pads and intermediate digests through their original lifetimes. - [x] Retire private derived key storage and prevent raw-field access or cloning. - [x] Preserve the existing content, filename, context and derivation contracts in debug and optimized builds. - [ ] Merge the repository prerequisite [#4](https://git.erikinkinen.fi/erix/lib-fs-crypto/pulls/4). - [ ] Merge the supplier features [AES schedule retirement](https://git.erikinkinen.fi/erix/lib-aes/pulls/6), [AES field transformations](https://git.erikinkinen.fi/erix/lib-aes/pulls/7) and [SHA-2 state retirement](https://git.erikinkinen.fi/erix/lib-sha2/pulls/5). Caller inputs, returned plaintext and compiler-created copies remain outside this storage-erasure guarantee. This branch also includes the completed downstream features from #8. This branch also includes the completed downstream features from #6, #8.
erikinkinen added this to the Alpha 1 milestone 2026-10-30 18:21:08 +01:00
fix: Bound derived filesystem key lifetimes
Some checks failed
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 6s
CI / test (push) Failing after 36s
56e3d02cad
Keep derived filesystem keys in a single private owner and erase its storage
on drop. Borrow keys for content and name operations and guard derivation
material, pads and intermediate digests without claiming erasure of caller
inputs, returned plaintext or compiler-created copies.
ci: Select the public erasure provider APIs
Some checks failed
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / test (push) Has been cancelled
CI / markdown (push) Has been cancelled
830c3a4676
Select the exact public ConstantTime and crypto sources required by this feature. Preserve its implementation and every original Cargo gate, and bind the actual retained consumer to the tracked source graph.
ci: Use shared development dependency profiles
Some checks failed
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 6s
CI / test (push) Failing after 22s
a6efda3c21
Keep authored manifests on main and select coordinated providers through Integration. Resolve branches once per run, retain the frozen snapshot and helper identity as artifacts, and use shared source checks instead of copied tests and guides.
test: Cover cryptographic ownership in optimized builds
All checks were successful
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 2s
CI / test (push) Successful in 37s
be19d86ded
Exercise the original ownership boundaries and algorithm controls in debug and release builds using one captured dependency graph. Document the scope of owned storage erasure and keep caller inputs and outputs outside that guarantee.
erikinkinen changed title from WIP: Bound derived filesystem key lifetimes to Bound derived filesystem key lifetimes 2026-11-13 03:14:00 +01:00
Author
Owner

Ready for review. The library ownership contract and its controls are complete; the remaining linked prerequisites are merge gates.

Ready for review. The library ownership contract and its controls are complete; the remaining linked prerequisites are merge gates.
Author
Owner

The filename format has a separate CBC-CS3 correction in #8, backed by independent raw and padded ciphertext answers and AES #11. This key-ownership PR is unchanged. Any persisted nonstandard prototype bytes need explicit migration; no cipher-mode fallback is introduced.

The filename format has a separate CBC-CS3 correction in #8, backed by independent raw and padded ciphertext answers and [AES #11](https://git.erikinkinen.fi/erix/lib-aes/pulls/11). This key-ownership PR is unchanged. Any persisted nonstandard prototype bytes need explicit migration; no cipher-mode fallback is introduced.
fix: Bind filename encryption to the corrected CBC-CS3 format
All checks were successful
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 2s
CI / test (push) Successful in 32s
9354b7e580
Select the corrected public AES provider explicitly and qualify raw and padded filename ciphertext against independent answers. Document the required final-block exchange and explicit migration of any nonstandard prototype bytes; never infer a cipher mode through fallback. Preserve short-buffer preflights and unchanged caller output extents.
feat: Merge filenames to the corrected CBC-CS3 format
All checks were successful
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 2s
CI / test (push) Successful in 41s
d05bacd4c2
Bind filenames to the corrected CBC-CS3 format. Integrate the reviewed feature into feature/owned-filesystem-key-lifetimes while the upstream work retains its own completion requirements.

#8
Author
Owner

Merged the approved downstream work from #8. The upstream PR retains its own remaining scope and completion requirements.

Merged the approved downstream work from #8. The upstream PR retains its own remaining scope and completion requirements.
ci: Declare main and feature provider policy
All checks were successful
CI / test (push) Successful in 42s
CI / markdown (push) Successful in 2s
22d7509327
Pass the provider policy explicitly. Main and tag builds must use main providers; feature builds keep their declared companions. Older helpers that lack this contract must fail before preparing sources.
feat: Merge use shared development dependency selection
All checks were successful
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 3s
CI / test (push) Successful in 48s
a5ef18f917
Integrate the reviewed prepared history into feature/owned-filesystem-key-lifetimes. The feature tree and
original source branch remain unchanged. Upstream work retains its own
completion requirements.

#6
Author
Owner

Merged the approved downstream work from #6, #8. The upstream PR retains its own remaining scope and completion requirements.

Merged the approved downstream work from #6, #8. The upstream PR retains its own remaining scope and completion requirements.
erikinkinen changed target branch from feature/dependency-review-policy to main 2026-11-14 20:48:46 +01:00
erikinkinen manually merged commit 28bccce668 into main 2026-11-14 20:48:47 +01:00
Sign in to join this conversation.
No description provided.