Security experts, I have a question: if a database server just allow connections from a white list (trusted IP's), exposing database passwords on a GIT repository is still a problem?
It's not clear from your question if this hopefully hypothetical database server is exposed to the internet or if it's on a private network, but: Yes, it's still a problem, because then you have to depend on the whitelist staying valid and never having an admin accidentally turn it off. And you also have to depend on none of the machines on the trusted IPs being compromised either. And you have to depend on many othe…
WordPress base configuration files on GitHub
81–90 of 90 posts
Re: WordPress base configuration files on GitHub
#82At what point do developers get criticized/held responsible for using public repositories for private websites? I get it, people like github but when you can get a private repo on bitbucket for free there's no excuse for this.
Re: WordPress base configuration files on GitHub
#83150,000,000+ database passwords, of which 99.9999%+ are from local development servers.
Re: WordPress base configuration files on GitHub
#84It's a good case for private repos, but an even better case for not committing passwords to a repository in the first place.
Re: WordPress base configuration files on GitHub
#85Hmm. If you alter the search to "filename:wp-config.php FTP_PASS" you start getting some that look like ... legit. For those who don't know, WordPress has some level of access to hosting server via FTP, for upgrades and plugin installs. Pertinent config globals are FTP_BASE, FTP_CONTENT_DIR, FTP_PLUGIN_DIR, FTP_PUBKEY, FTP_PRIKEY, and of course, FTP_USER, FTP_PASS, FTP_HOST.
Re: WordPress base configuration files on GitHub
#86Earlier quoted context omitted.
Github does have a wider set of services that integrate with it. That said, if you have to go Github, private repos aren't that expensive. (And more services seem to be recognizing that Bitbucket is an increasingly popular options)
They are if you have to manage a lot of them. I love GH, but I only use it for my public projects. Limiting private repos ($200 for 125?) seems insane to me, and it will drive people to make public items that shouldn't be. For any private projects, or ones involving clients, I use BitBucket and make all repos private. It's a difference of $190 for me (I use the $10/mth plan with BB and host well over 125 private repo…
But that's not really github's fault for people having public repos. For $20/month I can setup a VPS with my own source code hosting service (full management like gitlab) and host all the repos I want. I get people love the features of github - but they never really use them.
I would say people use public repos on github because they are lazy. And when people get nailed for uploading their Amazon AWS keys - they should really think about an alternative solution for their git repo needs.
Re: WordPress base configuration files on GitHub
#87Earlier quoted context omitted.
How would you go about making a repeatable, automated deployment if you don't store configuration information in source control to load into the environment variables?
Consul and Vault go a long way to achieving that. https://consul.io/ https://vault.io
Re: WordPress base configuration files on GitHub
#88Earlier quoted context omitted.
How would you go about making a repeatable, automated deployment if you don't store configuration information in source control to load into the environment variables?
Depends on what you're using for your deployments, for example if you were using Puppet you might use something like https://github.com/TomPoulton/hiera-eyaml
Re: WordPress base configuration files on GitHub
#89I found this search more interesting than someone pushing their wp-config to a repo; also warning, some are nsfw https://github.com/search?p=100&q=filename%3Atits.jpg+&ref=s...
That link is a great example to demonstrate how much Github search sucks now. You've explicitly searched for filenames of "tits.jpg", but it's showing you a complete mishmash of different files.