mirror of
https://github.com/ansible/ansible.git
synced 2026-08-05 16:13:06 +02:00
git: Document security risk involved in embedding user creds (#84963)
* Provide warning to user about the potential risk involved in embedding username and password in git URL while checking out the source. Fixes: #84557 Signed-off-by: Abhijeet Kasurde <Akasurde@redhat.com>
This commit is contained in:
@@ -21,6 +21,10 @@ options:
|
|||||||
repo:
|
repo:
|
||||||
description:
|
description:
|
||||||
- git, SSH, or HTTP(S) protocol address of the git repository.
|
- git, SSH, or HTTP(S) protocol address of the git repository.
|
||||||
|
- Avoid embedding usernames and passwords within Git repository URLs.
|
||||||
|
This practice is insecure and can lead to unauthorized access to your repositories.
|
||||||
|
For secure authentication, configure SSH keys (recommended) or use a credential helper.
|
||||||
|
See Git documentation on SSH keys/credential helpers for instructions.
|
||||||
type: str
|
type: str
|
||||||
required: true
|
required: true
|
||||||
aliases: [ name ]
|
aliases: [ name ]
|
||||||
|
|||||||
Reference in New Issue
Block a user