Make WordPress Core

Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#30519 closed defect (bug) (invalid)

Ignore wp-config.php in core.svn/core.git repos

Reported by: netweb's profile netweb Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Build/Test Tools Keywords: close
Focuses: Cc:

Description

Currently wp-config.php is not ignored in both core.git.wordpress.org and core.svn.wordpress.org repo's.

Including this would ensure wp-config.php is not accidentally committed to anyone's SVN checkout, Git clone of git://core.git.wordpress.org/ or GitHub forks of the mirror https://github.com/wordpress/wordpress mimicking the existing behaviour for the "develop" repo's.

To patch:

  1. Add svn:ignore property wp-config.php to the SVN core.svn.wordpress.org repo
  2. Add a new .gitignore file to the /src folder of the develop repo https://core.trac.wordpress.org/browser/trunk/src

File contents of new .gitignore file:

# gitignore file for WordPress Build

# Configuration files with possibly sensitive information
wp-config.php

Consideration: Should we also ignore .htaccess and other .gitignore files? See develop src here?

ToDo Note (Separate from any patch on this ticket): When bundling ZIP packages for releases the .gitignore file should not be included in any ZIP package.

See also: Slack discussion https://wordpress.slack.com/archives/core/p1417048473004442

Change History (5)

This ticket was mentioned in Slack in #core by netweb. View the logs.


10 years ago

#2 @johnbillion
10 years ago

  • Version trunk deleted

#3 @boonebgorges
10 years ago

My inclination is to say that anyone smart enough to run their WP installation from a checkout of core.svn or core.git should be assumed to be smart enough not to check sensitive files into their repos.

There are also valid setups that involve tracking wp-config.php under version control. On most of my client sites, wp-config.php is a tracked file, which includes an untracked, environment-specific file with passwords, etc. I generally don't use these build repos to populate client sites, but if I did, I'd have to come up with clunky workarounds if we went with this proposal (*super* clunky workarounds in the case of .gitignore).

#4 @netweb
10 years ago

  • Keywords close added

Fair points Boone, it started simple then escalated quickly, got real and maybe out of hand :P

Punt to Future Release, Close with wontfix, worksforme, invalid, either/or as it will remain in Trac for historical perpetuity.

Last edited 10 years ago by netweb (previous) (diff)

#5 @jorbin
10 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

As Boone pointed out, there is a legit use case for not ignoring wp-config.php that would be hard to work around.

Note: See TracTickets for help on using tickets.