This is a question that was asked in #966140: On upgrade $drupal_hash_salt in the settings.php is never created. but never really answered. In the default.settings.php file, in the description of the $drupal_hash_salt variable, it says

Note that this variable must have the same value on every web server.

What does that mean? Not what it literally says, as surely there are web servers in the world that have different values for that variable.

From #870772: drupal_valid_test_ua() / drupal_generate_test_ua() in bootstrap.inc causes problems with loadbalancers during simpletest runs. I have the impression that maybe it means every web server that is accessing the same database needs to use the same value for $drupal_hash_salt. Is that the idea?

Are there any problems if multiple installations on the same machine accessing separate databases are using the same value for $drupal_hash_salt?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jhodgdon’s picture

Version: 7.7 » 8.x-dev
Category: support » bug
Issue tags: +Needs backport to D7

Sounds like a documentation bug to me. Thanks for reporting it!

nmudgal’s picture

Status: Active » Needs review
FileSize
917 bytes
brad.bulger’s picture

that's a bit more clear, but it still doesn't really address the "why?". maybe the comments aren't the right place for that, but i couldn't find any other documentation. that's why i initially posted this as a support request, i thought maybe i just wasn't looking in the right places.

jhodgdon’s picture

brad.bulger: If you want support, this isn't the best place to seek it. Although you can create issues in Drupal Core and mark the category as "support request", we don't really handle support requests in the Drupal Core issue queue as a regular practice (that option is mostly there for filing support issues for contributed modules and themes).

There are several support options listed if you click on "Support" at the top of Drupal.org, which will take you to: http://drupal.org/support

Regarding this patch, I think it clears up the documentation issue reasonably well... I don't think we want to have a large discourse on this setting, beyond what's here, in the settings.php file... I would appreciate someone who knows more about this reviewing it for accuracy though.

David_Rothstein’s picture

I think that's accurate, although "in a cluster" could still be kind of vague when used that way. I would probably have said it more like this:

"Note that if your site is deployed on a cluster of web servers, you must ensure that this variable has the same value on each server."

jhodgdon’s picture

Status: Needs review » Needs work

Thanks for the accuracy review David. I think that wording (or something similar) is preferable... can someone roll it into a new patch?

nmudgal’s picture

Status: Needs work » Needs review
FileSize
1.09 KB

Attached as per #5

jhodgdon’s picture

Status: Needs review » Fixed

Thanks! Committed to 8.x/7.x.

nmudgal’s picture

Thanks :-)

Automatically closed -- issue fixed for 2 weeks with no activity.