-
Notifications
You must be signed in to change notification settings - Fork 352
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove username and password in remote url for cache directory name
Currently, module remote url has some characters replaced to with - so it can be used as cache directory name on disk. However, when Puppetfile has module urls with authentication data in format of protocol://username:password@host, password will be leaked in cache directory name. Added replace action for username or username and password parts for the cache directory name to avoid leaking credentials on filesystem. Using regex as some popular urls from eg. gitlab are not parsable with URI.parse.
- Loading branch information
Showing
3 changed files
with
16 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters