Rotate a supplier API token with separate host access
In this hypothetical warehouse integration, two Linux workers send orders to a supplier API. During a planned token rotation, the release pipeline delivers the replacement to both workers using its deploy identity. The second worker needs a manual restart. The on-call engineer needs a way to restart that one service on that one host. The pipeline handles the token.
Use one change record for the rollout and the restart. Give the deploy identity permission to fetch the named secret. Give the engineer a named maintenance account with a temporary grant for the second host. Record who approved each grant, what it allows and when temporary access ends.
Scope the restart on the host
Give the maintenance account an administrator-controlled way to restart only the integration service, with a fixed action and service name. Make sure the account cannot change the service definition, any overrides, the code it runs or its credential configuration. Check that the account cannot read the token from the service's files, process environment or logs.
With SSH public-key authentication, the client signs authentication data with its private key. The server checks that the key is acceptable for the requested account and verifies the signature. For certificate-based login, check that the host trusts the signing CA and accepts a principal from the certificate for the requested account. Review forwarding rules separately. Configure the account's file permissions and restart privileges on the host. RFC 4252, section 7 and OpenSSH server configuration.
OpenSSH checks certificate validity at authentication. An authenticated connection can stay open after expiry and can carry new channels if the server permits them. If the maintenance window has a hard cutoff, close the connection through an approved procedure and verify that it ended. Check that a fresh connection using the expired credential is denied. If the cutoff also applies to work started during the session, verify that those processes have ended. OpenSSH certificate validity and RFC 4254, section 5.
Check what each worker is using
List every consumer before the change. If the supplier allows both tokens to be active briefly, deploy the replacement, then reload or restart the service as needed. Run a fresh, approved request through each worker's running service. Choose a test that exercises the required permissions without placing a live or duplicate order.
A successful request while both tokens are active shows that the worker could authenticate with an accepted token. To identify which one it used, match each worker's test request ID to a supplier record that names the credential used, if the supplier exposes that information. A runtime signal can also help if it identifies the credential the process actually loaded. A pipeline record that shows which version was delivered establishes only delivery. Keep the credential value out of the change record and logs.
Agree on the cutover and recovery steps before disabling the old token. If the supplier supports reversible deactivation, disable the old token and retest each worker before permanently revoking it. If the supplier only supports permanent revocation, confirm the recovery path first, including whether you would need to issue another token. Retest each worker after revocation. In either case, confirm the old token's status with the supplier. Where an approved test path exists, verify that a fresh request using the old token gets the expected authentication rejection and keep the value out of logs. If the supplier supports only one active token, plan the change window and recovery steps before requesting the replacement. AWS documents reversible deactivation as one example.
Close the change record
Record each worker's identity, the time and result of its test, any non-secret credential identifier you can verify, and the supplier's revocation confirmation. On the host side, close the temporary grant, record the result of the access check and use the maintenance and service logs to confirm the restart. An SSH login event shows that the account was admitted. The service log shows whether the restart happened.
CertLocker provides secret version history, scoped host access through host tokens and filtered audit views. A secret fetch event can show retrieval. The release pipeline handles delivery in this example, the target host enforces the restart permission, and the supplier controls token issuance and revocation. Use the worker and supplier checks above to verify the cutover. CertLocker platform features.
For your next planned rotation, name the identity that needs the secret and the person who might need the host. Put both in the change record alongside the evidence you'll collect before closing it.