Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Passwords/passphrases in your Distributed Version Control System

by duelafn (Vicar)
on Apr 01, 2019 at 10:27 UTC ( #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

  • Comment on Re: Passwords/passphrases in your Distributed Version Control System
  • Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2021-03-02 08:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favorite kind of desktop background is:











    Results (41 votes). Check out past polls.

    Notices?