mlabouardy / butler

Export/Import Jenkins jobs & plugins 📤
MIT License
123 stars 34 forks source link

Enhancement Request: User / password secure handling #3

Open mtdeguzis opened 6 years ago

mtdeguzis commented 6 years ago

Description

Ideally there should be a prompt or method to read a file for user/password handling. Having this in my bash history isn't ideal.

Crude hackish workaround

./butler jobs export --server https://udajenkins:8444 --username mtdeguzis --password $(read -s password && echo $password)
icereed commented 6 years ago

This would be solved by #6. When it is merged the username flag may also be provided via environment variable JENKINS_USER and the password via JENKINS_PASSWORD.

digitalfredy commented 4 years ago

I agree the proposed solution by @icereed in #6

@mtdeguzis to do the way you want you can use https://www.passwordstore.org/ then $(pass your-secret-name)