Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document stdin behaviour for getting raw key #417

Merged
merged 1 commit into from
Dec 3, 2024

Conversation

betelgeuse
Copy link
Contributor

Document the logic described in makeRawKey.

Document the logic described in makeRawKey.
@betelgeuse
Copy link
Contributor Author

Here's the source code logic for reference

fscrypt/cmd/fscrypt/keys.go

Lines 110 to 113 in 068b9f8

func makeRawKey(info actions.ProtectorInfo) (*crypto.Key, error) {
// When running non-interactively and no key was provided,
// try to read it from stdin
if keyFileFlag.Value == "" && !term.IsTerminal(stdinFd) {

@ebiggers ebiggers merged commit 094d62b into google:master Dec 3, 2024
8 checks passed
@ebiggers
Copy link
Collaborator

ebiggers commented Dec 3, 2024

Merged, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants