1

I started working on a legacy Drupal 7 site that uses the salesforce_api at version 7.x-2.0-alpha3 (yes, it's ancient). I noticed in the status report page the following warning:

enter image description here

There is a link on the warning that goes to the Salesforce module configuration page, but no real direction what to change to encrypt this properly.

Does anyone know what could be missing from the Salesforce configuration to throw this warning? Is it because the module is so old? That's my suspicion, but after googling around, nothing came up on that warning at all.

1
  • just a guess, as I've never used this module: are you using SSL to submit data to salesforce?
    – user5482
    Mar 4, 2015 at 22:04

1 Answer 1

2

This is most likely related to AES encryption on your Salesforce credential data, not the connection itself. From the relevant doc page:

By default, all Salesforce credentials are stored in the variables table, unencrypted. If this is a problem for you, this module supports encryption via the AES module

When you have the AES module enabled (which it seems like you do), the message you see in your site status report is:

Salesforce encryption is enabled but not configured securely.

And if AES is not enabled, you see this instead:

Encryption is unavailable. Using encryption is recommended in order to better secure your data.

Check out salesforce_api_requirements() and salesforce_api_encryption_available() for more. From the logic in the latter it looks like there was an attempt to return more useful information (specifically about the AES module) along with that generic "salesforce encryption" message, but for whatever reason that text never propagated up to what was printed to the screen.

1
  • This put me on the right track, thanks! The site was storing the credentials in the database, instead of in a file, which is why the warning was happening. Mar 6, 2015 at 16:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.