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

User Names and Passwords exposed in Logs #362

Open
sgu07ght opened this issue Feb 22, 2023 · 1 comment · Fixed by sam2kb/sftp#3 or TaridaGeorge/sftp#2 · May be fixed by #367
Open

User Names and Passwords exposed in Logs #362

sgu07ght opened this issue Feb 22, 2023 · 1 comment · Fixed by sam2kb/sftp#3 or TaridaGeorge/sftp#2 · May be fixed by #367

Comments

@sgu07ght
Copy link

Problem:
During bootup while reading users.conf from a secret / configmaps whole line gets dumped into logs that includes the credentials.

Observation/Solution:
We may need to tweak the 'log' function inside the create-sftp-user.
Planning to submit a PR on this matter.

Proof, snap:

image

@vkg23
Copy link

vkg23 commented Feb 23, 2023

PR submitted on this matter. #363

kimdre added a commit to kimdre/sftp that referenced this issue Mar 14, 2023
Replace password in log output with asterisks
Fixes atmoz#362

## Results:
Before: `[bash] Parsing user data: "user:abc!123:3000:4000:/user/home"`
After: `[bash] Parsing user data: "user:******:3000:4000:/user/home"`
@kimdre kimdre linked a pull request Mar 14, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants