diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-11-02 11:50:18 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-11-03 08:21:10 +0000 |
| commit | bd98ef572df3ed89e9aa0c414a0c622b58659b64 (patch) | |
| tree | afb7a805a95f4b0418ea87eb294d66088aeb8f3c /bitbake/lib/bb/fetch2/git.py | |
| parent | 41ea50dcc87dc62f55f42d31fdb1afe281f5b387 (diff) | |
| download | poky-bd98ef572df3ed89e9aa0c414a0c622b58659b64.tar.gz | |
bitbake: fetch2/git: Document that we won't support passwords in git urls
This keeps coming up, document why we don't do this and the alternatives.
(Bitbake rev: aded964eed4ce5a725ed1ab477efabc86b1aa481)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/fetch2/git.py')
| -rw-r--r-- | bitbake/lib/bb/fetch2/git.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py index b97967b487..490d57fbbf 100644 --- a/bitbake/lib/bb/fetch2/git.py +++ b/bitbake/lib/bb/fetch2/git.py | |||
| @@ -595,6 +595,11 @@ class Git(FetchMethod): | |||
| 595 | """ | 595 | """ |
| 596 | Return the repository URL | 596 | Return the repository URL |
| 597 | """ | 597 | """ |
| 598 | # Note that we do not support passwords directly in the git urls. There are several | ||
| 599 | # reasons. SRC_URI can be written out to things like buildhistory and people don't | ||
| 600 | # want to leak passwords like that. Its also all too easy to share metadata without | ||
| 601 | # removing the password. ssh keys, ~/.netrc and ~/.ssh/config files can be used as | ||
| 602 | # alternatives so we will not take patches adding password support here. | ||
| 598 | if ud.user: | 603 | if ud.user: |
| 599 | username = ud.user + '@' | 604 | username = ud.user + '@' |
| 600 | else: | 605 | else: |
