cryptomator / cryptomator/cli

Do not log `Enter value for --password:stdin` if password is already provided via stdin

Open
#75 0 comments 1 reaction 0 assignees View on GitHub
bug
Dominant language
Java
Stars
427
Forks
52
Avg merge
20h 37m
Merged PRs (30d)
2

Description

### Please agree to the following

- [X] I have searched [existing issues](https://github.com/cryptomator/cli/issues?q=) for duplicates
- [X] I agree to follow this project's [Code of Conduct](https://github.com/cryptomator/cli/blob/develop/.github/CODE_OF_CONDUCT.md)

### Summary

Show this log entry `Enter value for --password:stdin` ony if password is not provided via stdin

### What software is involved?

- Operating System: Not relevant
- Cryptomator CLI: 0.6.0

### Volume Type

None

### Steps to Reproduce

1. Execute `echo "foo" | cryptomator-cli unlock /home/foo/vault/ --mountPoint=/home/foo/mounted --mounter=org.cryptomator.frontend.fuse.mount.LinuxFuseMountProvider --password:stdin`

### Expected Behavior

`[main] INFO o.c.cli.Unlock - Unlocked and mounted vault successfully to file:///home/foo/mounted/` is logged

### Actual Behavior

```
Enter value for --password:stdin (Passphrase, read from STDIN):
```
is additional logged

### Reproducibility

Always

### Relevant Log Output

```shell
echo "foo" | cryptomator-cli unlock /home/foo/vault/ --mountPoint=/home/foo/mounted --mounter=org.cryptomator.frontend.fuse.mount.LinuxFuseMountProvider --password:stdin
Enter value for --password:stdin (Passphrase, read from STDIN):

[main] INFO o.c.cli.Unlock - Unlocked and mounted vault successfully to file:///home/foo/mounted/
```

### Anything else?

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.