Case review: credentials were rotated, so why could a service still fail?
A real operations investigation found that some database consumers still held old connection settings after rotation, while a local test path did not verify the password at all. This review follows the symptom, investigation, root cause, fix, and checklist to avoid a misleading “it connects” result.
The symptom
After a credential rotation, the primary application and standby instance could start with the new configuration, and health checks looked normal. Yet those signals alone could not prove that every consumer had switched. During the investigation, one local connection path even accepted a connection with an incorrect password. That made it appear that the old credential might still work, but the test had not exercised the intended authentication path.
This anonymized review is based on a recent real SalpX operations event. Internal addresses, ports, people, credentials, and deployment identifiers have been removed. It is not a general database configuration guide; it is a post-rotation path check. A healthy service does not prove every consumer uses the new credential, and an established connection does not prove the password was checked. SalpX's public API documentation also uses Bearer-key authentication; the case details below come only from internal operations records.1
Investigation
Start with a consumer inventory
The operators listed every process using the database account, not just the primary application container. They also checked independent background services and adapters. Credential storage and lifecycle can differ: the main application may read environment configuration, a system service may load a separate environment file, and a long-running process may keep a connection pool created before the rotation.
For each consumer, the inventory recorded four items: where configuration is read, the connection target, what starts the process, and how it can be safely reloaded. The list contained paths and service roles, not passwords. Checking only the main application would have made “the primary instance was updated” look like “all clients were updated.”
Verify through a real authentication path
The operators then used a client over the actual TCP connection path and tested that the new credential succeeded while the old one was rejected. They checked the server's authentication result—not whether a local socket accepted a connection or whether an application process was alive.
This distinction matters. A local loopback route, proxy authentication, connection-pool reuse, or a particular trust configuration can make a connection test bypass password verification. A diagnostic must establish which network path it used, which authentication rule the server applied, and whether the response came from the intended database.
Check reloads and instance switching
After confirming the new credential, the operators updated each consumer and reloaded background services and application instances in the planned order. Each rebuilt instance was checked separately for process state, health, and authentication results in its logs. The standby path was verified too, so an old configuration would not remain hidden until a failover.
Root cause
The cause was not simply “the password was not changed.” It had two parts. First, multiple independent processes shared the database account, so a rotation limited to the primary application would leave old consumers behind. Second, a local connection check used earlier did not enforce password authentication and therefore could not establish whether the old credential still worked.
Credential rotation is a change across all consumers, not a one-file replacement. A health check proves only that the particular path it tested was available at that moment. It does not necessarily prove that the path used the new credential, and it says nothing about untested services.
Fix
- Back up the configuration and authentication material that must change, and restrict access to the backup. Do not restore an exposed or expired credential to production.
- Inventory every consumer of the account, including application containers, system services, scheduled jobs, standby nodes, and adapters.
- Verify the new credential succeeds and the old one fails using a client path that explicitly performs password authentication. Do not substitute a socket-connectivity test.
- Update each consumer and reload it so connection pools and long-running processes actually reread the configuration.
- Check health and authentication results per instance, then confirm the old credential is invalid.
- Keep only the minimum audit record needed. Do not print passwords, full connection strings, or sensitive environment variables into terminals or shared logs.
The incident's database-account rotation ultimately covered primary and standby applications plus independent service consumers. A separate cache service was rotated later with its own restricted ACL and credential file, and its new-success/old-failure behavior was verified independently. Each service's credentials were accepted on their own evidence rather than inferred from another system.
Checklist
- [ ] Every consumer of the account is listed, not just the primary service.
- [ ] Configuration backups are controlled, and exposed old credentials are not restored.
- [ ] The new credential succeeds and the old one fails through a real password-authentication path.
- [ ] Loopback, proxy, or connection-pool behavior is not masking authentication.
- [ ] All long-running processes have reloaded and no pool keeps an old connection.
- [ ] Primary, standby, and independent services are checked separately.
- [ ] Logs and handoff notes contain no secret values.
The reusable lesson
Do not declare a credential rotation complete from a file timestamp, container status, or a local connection test. Use the consumer inventory as the scope and a real authentication path as evidence; then verify new and old credentials and reload each process. The evidence must show both that the old credential no longer works and that every real consumer now uses the new one.
Sources & attribution
This article references the public materials listed below. Analysis and wording are SalpX's own; quoted material remains the property of its original authors and publishers.
- SalpX API Reference — SalpX · accessed 2026-11-28Note:SalpX's public API documentation provides authentication context. This anonymized case is based on real internal operations logs from November 25 and 27, 2026, with credentials, addresses, ports, and personal names omitted.
One key for Claude, GPT and 50+ models
The SalpX gateway is OpenAI-SDK compatible. Point base_url at https://www.salpx.com/v1 and you are done.