Make mask-password
the Default Behaviour
#495
Labels
feature-request
A feature should be added or improved.
mask-password
the Default Behaviour
#495
Is your feature request related to a problem? Please describe.
When running the amazon-ecr-login action with
mask-password
set to falsecredentials can be leaked to std-out via either explicitly printing them or running
the action in DEBUG mode. This is a security concern as it means that users are
able to obtain access to users (often privileged ones) that have access to push
to ECR registries, potentially implanting malicious code if the registry does not use
immutable tags.
Describe the solution you'd like
I would like to introduce a breaking change that switches
mask-password
totrue
as it is the more secure option. I would like to go one step further and remove the
ability not to mask the password at all if the maintainers will allow it.
Describe alternatives you've considered
N/A - it is considered a security best practise to mask secrets from logs for obvious
reasons.
Additional context
Implementing this change is breaking as there are a number of users who depend on
the ability to share the docker password between jobs as evidenced by previous
attempts to implement this feature. Masking the password prevents this behaviour
so this change should be considered breaking.
The text was updated successfully, but these errors were encountered: