Permalink
Browse files

Revert "More secure default wp-config.php"

Reverting this because we realized it might be a problem with scaled applications, who do not share a common OPENSHIFT_DATA_DIR.
So if an application was scaled, each server would have different tokens and it would definitely wreak havoc.

We've come up with another solution that will be deployed shortly, but wanted to remove this to limit the number of applications using it.

This reverts commit 9ffc8ab.
  • Loading branch information...
1 parent 2f2e6af commit 11bb029e174720e8a775a504630fb136580ed345 Fotios Lindiakos committed Jun 8, 2012
Showing with 8 additions and 38 deletions.
  1. +8 −38 php/wp-config.php
View
@@ -42,44 +42,14 @@
*
* @since 2.6.0
*/
-
-if (file_exists($_ENV['OPENSHIFT_DATA_DIR'] . "/secrets.php")) {
-
- require_once($_ENV['OPENSHIFT_DATA_DIR'] . "/secrets.php");
-
-} else {
-
- $SecretSALT = "<?php \n";
- $SecretSALT .= file_get_contents("https://api.wordpress.org/secret-key/1.1/salt");
- $SecretSALT .= "?>";
-
- file_put_contents($_ENV['OPENSHIFT_DATA_DIR'] . "/secrets.php", $SecretSALT);
-
- if (file_exists($_ENV['OPENSHIFT_DATA_DIR'] . "/secrets.php")) {
-
- require_once($_ENV['OPENSHIFT_DATA_DIR'] . "/secrets.php");
-
- } else {
-
- error_log("OPENSHIFT WARNING: Using default WordPress salts, please change manually in wp-config.php", 0);
-
- /**
-
- If you see the ^above^ error in rhc-tail-files then you need to change the keys below.
-
- **/
- define('AUTH_KEY', ' w*lE&r=t-;!|rhdx5}vlF+b=+D>a)R:nTY1Kdrw[~1,xDQS]L&PA%uyZ2:w6#ec');
- define('SECURE_AUTH_KEY', '}Sd%ePgS5R[KwDxdBt56(DM:0m1^4)-k6_p8}|C:[-ei:&qA)j!X`:7d-krLZM*5');
- define('LOGGED_IN_KEY', '$l^J?o)!zhp6s[-x^ckF}|BjU4d+(g1as)n/Q^s+k|,ZZc@E^h%Rx@VTm|0|?]6R');
- define('NONCE_KEY', '#f^JM8d^!sVsq]~|4flCZHdaTy.-I.f+1tc[!h?%-+]U}|_8qc K=k;]mXePl-4v');
- define('AUTH_SALT', 'I_wL2t!|mSw_z_ zyIY:q6{IHw:R1yTPAO^%!5,*bF5^VX`5aO4]D=mtu~6]d}K?');
- define('SECURE_AUTH_SALT', '&%j?6!d<3IR%L[@iz=^OH!oHRXs4W|D,VCD7w%TC.uUa`NpOH_XXpGtL$A]{+pv9');
- define('LOGGED_IN_SALT', 'N<mft[~OZp0&Sn#t(IK2px0{KloRcjvIJ1+]:,Ye]>tb*_aM8P&2-bU~_Z>L/n(k');
- define('NONCE_SALT', 'u E-DQw%[k7l8SX=fsAVT@|_U/~_CUZesq{v(=y2}#X&lTRL{uOVzw6b!]`frTQ|');
-
- }
-
-}
+define('AUTH_KEY', ' w*lE&r=t-;!|rhdx5}vlF+b=+D>a)R:nTY1Kdrw[~1,xDQS]L&PA%uyZ2:w6#ec');
+define('SECURE_AUTH_KEY', '}Sd%ePgS5R[KwDxdBt56(DM:0m1^4)-k6_p8}|C:[-ei:&qA)j!X`:7d-krLZM*5');
+define('LOGGED_IN_KEY', '$l^J?o)!zhp6s[-x^ckF}|BjU4d+(g1as)n/Q^s+k|,ZZc@E^h%Rx@VTm|0|?]6R');
+define('NONCE_KEY', '#f^JM8d^!sVsq]~|4flCZHdaTy.-I.f+1tc[!h?%-+]U}|_8qc K=k;]mXePl-4v');
+define('AUTH_SALT', 'I_wL2t!|mSw_z_ zyIY:q6{IHw:R1yTPAO^%!5,*bF5^VX`5aO4]D=mtu~6]d}K?');
+define('SECURE_AUTH_SALT', '&%j?6!d<3IR%L[@iz=^OH!oHRXs4W|D,VCD7w%TC.uUa`NpOH_XXpGtL$A]{+pv9');
+define('LOGGED_IN_SALT', 'N<mft[~OZp0&Sn#t(IK2px0{KloRcjvIJ1+]:,Ye]>tb*_aM8P&2-bU~_Z>L/n(k');
+define('NONCE_SALT', 'u E-DQw%[k7l8SX=fsAVT@|_U/~_CUZesq{v(=y2}#X&lTRL{uOVzw6b!]`frTQ|');
/**#@-*/

2 comments on commit 11bb029

Contributor

linickx replied Jun 9, 2012

Hello,

As a heads up... if scaled apps are not going to share a common OPENSHIFT_DATA_DIR then your new solution will also need to fix the upload directory.

I hope that helps,
Kind Regards,
Nick

Contributor

gshipley replied Jun 9, 2012

Please sign in to comment.