Add option to read password from file#431
Conversation
|
Welcome @zhouhaibing089! |
6d44c3a to
cd036b7
Compare
thockin
left a comment
There was a problem hiding this comment.
Really small not, then LGTM. Thanks.
A new flag `--password-file` is added. This allows git-sync to read password from file and this is considered as safer than reading from env or flag directly. Few more checks are added as well: 1. `--password` and `--password-file` can't be specified at the same time. 1. If `--username` is specified, then one of `--password` or `--password-file` must be specified.
cd036b7 to
6076daf
Compare
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: thockin, zhouhaibing089 The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
I will port to the dev branch |
This is a port of kubernetes#431. A new flag `--password-file` is added. This allows git-sync to read password from file and this is considered as safer than reading from env or flag directly. Few more checks are added as well: 1. `--password` and `--password-file` can't be specified at the same time. 2. If `--username` is specified, then one of `--password` or `--password-file` must be specified.
Small nits I found with password-file while porting #431
This is a port of kubernetes#431. A new flag `--password-file` is added. This allows git-sync to read password from file and this is considered as safer than reading from env or flag directly. Few more checks are added as well: 1. `--password` and `--password-file` can't be specified at the same time. 2. If `--username` is specified, then one of `--password` or `--password-file` must be specified.
A new flag
--password-fileis added. This allows git-sync to readpassword from file and this is considered as safer than reading from
env or flag directly.
Few more checks are added as well:
--passwordand--password-filecan't be specified at the sametime.
--usernameis specified, then one of--passwordor--password-filemust be specified.Fixes #429