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

Add global handling of -non-interactive #221

Merged
merged 1 commit into from
Mar 25, 2024

Conversation

cipherboy
Copy link
Member

This adds global handling of the -non-interactive flag introduced originally for non-interactive MFA support. Most commands with interactive use of stdin will either get an empty reader (presumably allowing it to err later) or explicitly err about not being passed input that would otherwise be requested via stdin (e.g., operator unseal or login).

Resolves: #220

@cipherboy cipherboy force-pushed the expand-non-interactive branch 2 times, most recently from 0ecb946 to a2db9db Compare March 18, 2024 12:57
@cipherboy cipherboy marked this pull request as draft March 20, 2024 01:30
@cipherboy
Copy link
Member Author

@naphelps looks like this one still fails tests, I'll address that when I get time later. Thought I had fixed that.

@cipherboy cipherboy marked this pull request as ready for review March 22, 2024 11:47
@cipherboy
Copy link
Member Author

@naphelps This should be fixed. Not sure why I added it to unseal, tbh, meant the test to be for init.

This adds global handling of the -non-interactive flag introduced
originally for non-interactive MFA support. Most commands with
interactive use of stdin will either get an empty reader (presumably
allowing it to err later) or explicitly err about not being passed
input that would otherwise be requested via stdin (e.g., operator
unseal or login).

Resolves: openbao#220

Signed-off-by: Alexander Scheel <alexander.m.scheel@gmail.com>
@naphelps naphelps merged commit 9ae23e6 into openbao:main Mar 25, 2024
73 of 74 checks passed
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.

-non-interactive flag still creates interactive command
2 participants