Skip to content

Hiding credentials in Pip class does not hide the credentials in the gradle process.exec() logs #185

@insi-eb

Description

@insi-eb

While the default log cleaning removes the credentials from the log of the python command line, the gradle process.exec() log in the line after the cleaned log shows the credentials without any hiding.

[python] python3 -m pip list --format=columns --user --extra-index-url https://insi-eb:*****@...
Starting process 'command 'python3''. Working directory: /workspaces/platform Command: python3 -m pip list --format=columns --user --extra-index-url https://insi-eb:<myToken>@...

I guess the only way to really hide credentials also there would be to set a filtering OutputStream on the GradleEnvironment::exec() call.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions