简体   繁体   中英

Is storing FTP credentials in git-ftp settings in repository insecure?

I recently started using git-ftp to make web deployment less tedious. It's man page tells me to store the FTP credentials in the local git repository's config for ease of use. I'm just an ordinary guy with hardly any dangerous nemeses, so storing them locally on my computer in plaintext isn't much of a problem. Putting the FTP credentials in a public repository on Github for everyone to see, however, doesn't seem that smart.

To be clear, this is what I mean with "storing in plaintext":

git config git-ftp.password my_secret_password_in_local_git_repo_config

I am concerned that the (non-global) git configuration might get pushed to the remote repository (which is located on Github as a public repository).

So, my question is: can this happen?

Everything looks as though I have nothing to worry about (eg my directory is still clean after applying some settings), but I'm still a bit weary.

据我所知,这些是本地客户端配置设置,并且不在存储库之间共享。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM