How to Rotate Proxy Credentials and Verify the Old Login Is Disabled

A replacement credential used by a test client while the old credential is blocked at the proxy gateway

To rotate proxy credentials without losing track of which clients have switched, verify the replacement on one client, move the rest in batches, then revoke the old credential and test that it is rejected. A successful request with the new credential is only half the check: it does not tell you whether the old one still works.

This runbook is for a planned change on a proxy service you administer. If you suspect a credential has leaked, follow your incident process and revoke or disable it promptly. A convenience overlap for a routine change is not appropriate for a suspected compromise.

Confirm whether the service lets both credentials work briefly

Ask the service owner whether you can issue a second credential with equivalent, least-privilege scope or whether changing the password immediately invalidates the old one. With two supported credentials, set a short overlap and a revocation deadline before starting. With an immediate reset, use a maintenance window, pause dependent jobs where practical, and know who can issue a fresh credential if the change fails. Do not assume the old password is available as a rollback.

List the clients that use the proxy: browser configurations, scheduled jobs, worker pools, and any long-running service. Record the owner, endpoint, protocol, credential reference or version identifier, and what must reload for the new value to take effect. Keep the secret itself in the approved secret store. Use your team access policy to confirm who can issue, deploy, and revoke credentials.

Test one client before changing the fleet

  1. Update the secret reference on one test client. Keep the endpoint, protocol, access scope, and authorized test destination unchanged. Do not rotate the exit as part of this test.
  2. Start a fresh client connection so an already authenticated connection cannot hide a failed change. Make one harmless request to the test destination and verify success plus the expected exit or route behavior for that configuration. Use the device and exit route audit if the app response and route evidence disagree.
  3. If the canary succeeds, update the remaining clients in batches. Check each batch for a successful request on a new connection before proceeding. The last client can be a scheduled job that has not run yet; trigger an authorized smoke test or explicitly account for that dependency before revoking.

Revoke the old credential and verify the result

Once the inventoried clients use the replacement, revoke the superseded credential. From an isolated authorized test client, make at most one fresh connection using the old credential, if your policy permits this test. Look for rejection at the proxy, not an error returned by the destination. For HTTP proxies, a 407 Proxy Authentication Required is a typical rejection; other protocols or services may report authentication failure differently. Then confirm the replacement succeeds on another fresh connection. If testing the old credential is prohibited, record the revocation event and use the provider’s access or audit records instead of recovering the secret to run a test.

Fresh-connection resultDecision
New accepted, old rejectedClose the change once the client inventory and revocation event are recorded.
New rejected by the proxyPause rollout. Check the client references the new secret version and that its scope matches the endpoint. Use the proxy authentication checklist to distinguish the credential from an allowlist issue.
Old still works on a fresh connectionDo not close the change. Check the correct credential was revoked and ask the service owner about propagation or other enabled authentication methods.
A connection established before revocation still worksInconclusive for new authentication. Check whether the service terminates existing connections on revocation. If policy requires termination, have the owner close them and verify separately.

Keep enough evidence to hand the change over

In the proxy change record, note the client owner, test time, credential version identifier, endpoint, fresh-connection result, and revocation timestamp. Do not paste authorization headers, passwords, or URLs containing credentials. If requests reach the destination but use an unexpected route, follow the assigned-exit checks separately. Authentication success and correct routing are two different checks.

Similar Posts