Repository navigation
feat(cli): standalone binary with self-update and checksum verification - #23
Merged
Merged
Conversation
Add standalone binary self-update mechanism that downloads the latest release from GitHub and verifies SHA256 checksums before replacing the binary. Release workflow now builds PyInstaller binaries for linux-amd64, macos-amd64, and macos-arm64 with checksums.
…ms, downgrade protection - Add sys.frozen check to prevent pip users from overwriting their Python interpreter - Make SHA256 checksum verification mandatory (no silent skip) - Add semantic version comparison to prevent downgrades - Create __main__.py entry point for PyInstaller - Add hidden imports to PyInstaller build (yaml, importlib.metadata) - Preserve original binary permissions instead of hardcoded 755 - Add packaging dependency for version comparison
…etection When init finds an existing vault file, it now enters import mode: scans all keys, generates a vault-keys.yml metadata skeleton, and runs local heuristic type detection. No secrets leave the process.
…omplexity check Update ruff (0.8.4→0.15.5), bandit (1.8.0→1.9.4), commitizen (4.9.1→4.13.9) to match actual installed versions. Add radon cyclomatic complexity hook that warns on CC grade D or worse. Update CI to show complexity analysis inline.
Extract apply logic into detection_ops.py, confidence filter into detect.py, key import into keys.py, and value resolution + output formatters into separate functions in cli.py. detect_types: CC 23 (D) → 12 (C) _import_existing_vault: CC 15 (C) → 13 (C) set: CC 14 (C) → below threshold No Grade D functions remain. Radon hook now blocks on CC > 20.
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.
Summary
vaultctl self-updatecommand that downloads the latest release from GitHubCloses #23
Test plan