Rotate secrets

You can replace the value of a secret that P4 Server retrieves from a source that you control. When the new value takes effect depends on the secret and on how you supply it.

Rotate a secret

How you rotate a secret depends on how you supply the secret:

  • In a file. Replace the contents of the file that the NAMEFILE variable names.

  • In Vault. Update the Vault entry that the NAMENAME variable names.

  • In an environment variable. Change the NAME variable, and then restart the p4d service. The p4d process reads its environment when it starts.

P4 Server reads the OIDC client secret and the signing key from their source each time that it uses them. After you replace a file or update a Vault entry for one of these secrets, the new value takes effect on the next request, without a restart.