Mask git password in module download #3902
Labels
contributions-requested
Requesting contributions from the community
enhancement
New feature or request
preserved
Preserved issues never go stale
Describe the enhancement
Consider the case where a module is being sourced from a private git repository:
The logs produced by terragrunt show the password in plaintext.
I'd propose that the password component should be redacted.
This already matches the behavior of
git
logs:Additional context
Obviously the issue could be avoided by using ssh keys or a credential helper rather than specifying the password directly as above. However, we are using Terragrunt in an environment where these solutions are not feasible (e.g., ssh is blocked and we do not have have the ability to specify a global git credential helper).
PoC (Proof of Concept)
Not that this is very helpful, but here is the bash wrapper around terragrunt that we are using temporarily to mask the values. Obviously you can see it is a bit of an ugly hack to preserve the streams and exit code.
RFC Not Needed
The text was updated successfully, but these errors were encountered: