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
NAMEFILEvariable names. -
In Vault. Update the Vault entry that the
NAMENAMEvariable names. -
In an environment variable. Change the
NAMEvariable, 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.