Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Passwords/passphrases in your Distributed Version Control System

by duelafn (Parson)
on Apr 01, 2019 at 10:27 UTC ( [id://1231940]=note: print w/replies, xml ) Need Help??


in reply to Passwords/passphrases in your Distributed Version Control System

I personally have only kept passwords in separate files which aren't under version control. However, you should be able to use git filters to automatically mask passwords for you. Something like:

# In global or local git/config (extra backslashes needed for git) [filter "hide-password"] clean = /usr/bin/perl -pe 's/^password\\s*=\\s*\\K.*/PASSWORD/' # In repo/.gitattributes settings.conf filter=hide-password # settings.conf password=3zhGERnFhzaUVs foo=bar ...

Now the repo will store "password=PASSWORD" regardless of what you set the password to locally.

Good Day,
    Dean

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1231940]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (9)
As of 2024-03-28 09:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found