Repository navigation
Conversation
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.
Existing Bash credential files currently need to be copied into an OS store before hush can inject their values. This adds opt-in
HUSH_BACKEND=filewithHUSH_FILE(default~/.secrets) solist,run,pipe, manifests, file-only consumers, and explicit sync can use an existing source. The default OS backend stays unchanged.The adapter rejects store mutations before prompting or sourcing, isolates unselected variables and shell state, preserves empty values and trailing newlines, handles colliding variable names, and refuses failed or early-exiting source files. Relative files are sourced from the validated path rather than a same-named PATH entry. README, skill, and CLI help describe the contract.
The source is a trusted Bash assignment file, not dotenv data: fetching executes its shell code. This does not encrypt the source or contain its side effects. File names are Bash identifiers, and the file is a flat store independent of
HUSH_NS.Validation:
node test/file-backend.mjs: 92 checks pass with a temporary HOME, fake credentials, and mocked OS tools. Includes injection, manifests, file export, mocked sync, write refusal, output/trace suppression, name collisions, trailing newlines, relative-path shadowing, and failure handling.test/test.sh: zero failures in an isolated HOME with a fake Linux credential store; existing sync, scheduler, adoption, and maintenance fixtures also pass. No real vault or scheduler mutations.git diff --checkpass.Draft for review of the Bash-file trust model and interface. No automatic PR checks are configured in the current upstream workflows.