Skip to content

Update storage module to persist security tier and salt #3

@ropeadope62

Description

@ropeadope62

Implements part of #1 (configurable security tiers)

Changes to storage.py

  • Update initialize() to accept tier parameter
  • Generate and store salt for non-standard tiers
  • Bump .secrets version to 1.1
  • Add get_security_tier() method
  • Add get_salt() method
  • Add create_crypto() convenience method that builds ZeroEnvCrypto with correct tier/salt
  • Add get_project_info() method for the info command

Testing

  1. Standard tier does not store salt
  2. Enhanced/paranoid tiers store salt
  3. create_crypto() returns correctly configured instance
  4. Backward compatible with v1.0 files (defaults to standard tier)

Metadata

Metadata

Labels

enhancementNew feature or requestsecuritykeeping software secure

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions