Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

PlainText credentials in "ps" linux command when run the module #1682

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
devsecops-pe opened this issue Sep 28, 2023 · 0 comments
Closed

PlainText credentials in "ps" linux command when run the module #1682

devsecops-pe opened this issue Sep 28, 2023 · 0 comments

Comments

@devsecops-pe
Copy link

Hi all,
When I use the module to clone the repo, I can see the URL with username and password using the "ps -fe" command.
#################
def git_password_url_escaped(self):
return urllib.parse.quote(self._git_password, safe='')
#################
if not self._git_username:
setattr(self, '_git_username', input('Insert git username: '))
if not self._git_password:
setattr(self, '_git_password', getpass.getpass(prompt='Insert git password: '))
self._git_port = port
self.git_base_url = (f"https://{self._git_username}:{self.git_password_url_escaped}"
f"@{self._git_host}:{self._git_port}/")
#################
This is the code that I'm using.
Thanks

@gitpython-developers gitpython-developers locked and limited conversation to collaborators Sep 29, 2023
@Byron Byron converted this issue into discussion #1683 Sep 29, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Development

No branches or pull requests

1 participant