Skip to content

Credentials vault

Customers can store logins and passwords on a ticket so an agent can fix something (see Working a ticket). They are encrypted. Privacy & Security → Security → Credentials is where you check that the encryption is sound and see who has read what.

Who can read, add, edit and delete credentials is set by the View Credentials, Add Credentials, Edit Credentials and Delete Credentials permissions.

The Credentials screen: Where the key is, with Stored, On the old format, Not on the current key and Key generation counts, the Rotate the key and Destroy what has expired buttons, then Proof, rather than a promise.

The heading names where the encryption key comes from. The help desk uses the first of these it finds:

  1. A constant in wp-config.php: JSST_PRIVATE_CREDENTIALS_KEY.
  2. An environment variable of the same name.
  3. WordPress’s own LOGGED_IN_KEY salt, from wp-config.php.
  4. A key generated and kept in this site’s own database.

The first three keep the key out of the database, so a copy of your database is not a copy of your customers’ passwords. The fourth protects nothing against someone with a database copy; while it is in use, the Credentials menu item shows a badge and the screen shows a line you can paste.

  1. Take a database backup.

  2. Get the line to add. While the database key is in use, the screen shows a ready-made one with a freshly generated value (it changes each time the page opens and isn’t stored). Otherwise write it yourself with a long random value:

    define( 'JSST_PRIVATE_CREDENTIALS_KEY', 'a long random value' );

    Keep a copy of the value somewhere safe: if you lose it, credentials encrypted under it are gone.

  3. Add it to wp-config.php, above the line /* That's all, stop editing! */.

Count Means
Stored Credentials held.
On the old format Stored by the old Private Credentials add-on. Still readable; rotating moves them to the current format.
Not on the current key Rows not yet re-encrypted under the current key generation.
Key generation How many times the key has been rotated, starting at 1.

Rotating derives a new key from the same secret and re-encrypts every credential under it. You don’t edit wp-config.php to rotate.

  1. Take a database backup.
  2. Click Rotate the key and confirm.
  3. Rows are moved fifty at a time and stay readable throughout. While some remain, the button reads Move the next batch; click it until Not on the current key is 0.

A row that won’t decrypt is left exactly as it is and counted.

Three checks run every time the page opens, each answering yes or NO:

  • A stored credential encrypts and decrypts back to itself
  • Ciphertext is stripped out of anything leaving this site
  • A rendered credential is stripped out of e-mail, exports and AI prompts

Any NO means something is wrong; don’t store credentials until it is fixed.

Setting What it does Default
Destroy after (days) Credentials are deleted this many days after they were stored. 0 means never. Applies to credentials stored after you set it. 0
New credentials are readable once After the first agent opens one, nobody can open it again, including them. Applies only to credentials stored after you switch it on. Off
Destroy a ticket’s credentials when it closes See the note below. On

Click Save. Expired credentials are deleted by an hourly job; Destroy what has expired does it now. Deleted means removed from the database, not hidden.

Every time someone reads, reveals, deletes or is refused a credential, or one is destroyed on expiry, it is logged here with When, Who, What (read, revealed once, deleted, destroyed on expiry or refused) and the Ticket. The value itself is never logged, not even its length.

There is no back door. If you changed wp-config.php, put the old JSST_PRIVATE_CREDENTIALS_KEY or LOGGED_IN_KEY back exactly and everything becomes readable again. If the old key is truly gone, the stored credentials are lost: delete them, tell the customers affected, ask for new ones, and treat the old ones as compromised.