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

use stdin to send the password to ansible-vault command #359

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

ltamaster
Copy link
Contributor

use stdin to send the password to ansible-vault command

@ltamaster ltamaster added this to the 5.3.0 milestone Apr 3, 2024
@ltamaster ltamaster changed the title use stdin to send the password to ansible-vault command WIP: use stdin to send the password to ansible-vault command Apr 4, 2024
@ltamaster ltamaster changed the title WIP: use stdin to send the password to ansible-vault command use stdin to send the password to ansible-vault command Apr 4, 2024
@@ -26,19 +27,26 @@ public class AnsibleVault {

public final String ANSIBLE_VAULT_COMMAND = "ansible-vault";

private ProcessExecutor.ProcessExecutorBuilder processExecutorBuilder;
Copy link

@andrecloutier-pd andrecloutier-pd Apr 5, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want this to be re-used across invocations of methods? Perhaps this should be an instance variable in each method? This appears to be an intentional change, just not sure why we need it. :)

Copy link
Contributor Author

@ltamaster ltamaster Apr 5, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just added that to mock it in the test

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.

3 participants