Update storage module: version 1.1, create_crypto(), get_project_info()#8
Draft
ropeadope62 with Copilot wants to merge 3 commits into
Draft
Update storage module: version 1.1, create_crypto(), get_project_info()#8ropeadope62 with Copilot wants to merge 3 commits into
ropeadope62 with Copilot wants to merge 3 commits into
Conversation
Agent-Logs-Url: https://github.com/ropeadope62/zeroenv/sessions/c319246f-d5ac-46d1-80f1-bdf699234d1c Co-authored-by: ropeadope62 <26491441+ropeadope62@users.noreply.github.com>
… to SecretsStorage Agent-Logs-Url: https://github.com/ropeadope62/zeroenv/sessions/c319246f-d5ac-46d1-80f1-bdf699234d1c Co-authored-by: ropeadope62 <26491441+ropeadope62@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update storage module to persist security tier and salt
Update storage module: version 1.1, create_crypto(), get_project_info()
Apr 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Extends
SecretsStoragewith missing convenience methods needed by theinfoCLI command and as a cleaner API for callers that need a ready-to-use crypto instance.storage.py"1.0"→"1.1"ininitialize()create_crypto()— wrapsload_encryption_key()into a single call; returns aZeroEnvCryptoinstance wired to the stored tier/saltget_project_info()— returns a flat dict (version,created_at,security_tier,secrets_count,directory) for use by theinfocommand; gracefully defaults for legacy v1.0 filestests/test_storage.pytest_initializeto assert version"1.1"TestCreateCrypto— covers all three tiers, determinism across calls, and round-trip encrypt/decryptTestGetProjectInfo— covers all returned fields, tier variants, secrets count, directory, and backward compatibility with v1.0 files