Ability to hide pk password from command line
Open
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 1.2k
- Forks
- 467
- PR merge metrics
- No merged PRs in 30d
Description
Currently we can see pliantext of pk password via command line, and --cache-password won't work for caching --pk_password.
Just make:
ovpncli client.ovpn --pk-password $(/etc/openvpn/client.pass)
To:
ovpncli client.ovpn --pk-password-file /etc/openvpn/client.pass
Or:
export OVPN_PK_PASSWORK_FILE=/etc/openvpn/client.pass
ovpncli client.ovpn
Will be fine enough.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the ovpncli argument handling for --pk-password and --cache-password, then trace how private-key passwords are passed to the client. Check how configuration and environment options are defined. Done means supporting --pk-password-file or the proposed environment variable without exposing the password in the command line, with coverage for the new input paths.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- cli, security
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100