Last Updated: November 29, 2026
Quick Summary
A credential store is a controlled location where a system keeps login details other programs need, such as usernames, passwords, API keys, access tokens, and certificates, and lets authorized applications retrieve them. It keeps these values out of source code and config files, where they leak easily.
- Keep API keys in a credential store or vault, not in source code, chat, or a wiki.
- Retrieve keys at run time through the store's API or SDK, not baked into images or config files.
- Record a named owner, an expiry date, and a rotation interval for every key.
- Verify after storing, rotating, and revoking that applications still authenticate and old keys are rejected.
Table of Contents
- What is a credential store?
- Secrets manager vs password manager: where a credential store fits
- How to store API keys securely and keep ownership clear
- Frequently Asked Questions
What is a credential store?
A credential store is a controlled location where a system keeps login details other programs need, usernames, passwords, API keys, access tokens, and certificates, and lets authorized applications retrieve them. Without one, teams hard-code these values into source code or config files, where they leak easily. For a look at how expiring tokens fail in practice and what breaks when no one tracks them, see Slack token expiration explained.

Secrets manager vs password manager: where a credential store fits
- Password managers serve people: individual logins, form fill, convenience first.
- Secrets managers serve applications and infrastructure: API keys, tokens, database passwords, and certificates, retrieved programmatically at run time, usually with audit logs and rotation hooks.
- Credential stores is the broader category: any controlled location holding login data for retrieval. A secrets manager is a credential store; a vault is a common implementation pattern; a password manager is a credential store for people.
| Question | Password manager | Secrets manager / vault |
|---|---|---|
| Primary user | Individual people | Applications and services |
| Retrieval | Human-driven, via UI or browser extension | Programmatic, via API or SDK at run time |
| Audit | Login history | Retrieval and access events |
None of these answers a different question: who owns a given credential, when does it expire, and who rotates it. That metadata layer is separate from storage. KeyGuardRail tracks owners, expiry dates, and rotation intervals without holding secret values, so it sits alongside a vault rather than replacing it. Teams that want a separate record of this ownership data can start with our free credential inventory template and set up lifecycle tracking through the getting-started guide.
How to store API keys securely and keep ownership clear
API keys fail predictably: in source code, in a shared note, or in a config file nobody remembers owning.
Store the value in a protected location
Keep the key in a credential store or vault, not source code, chat, or a wiki. The store should encrypt values at rest and in transit, restrict reads to the workloads or people that need them, and log retrieval events. Controls matter more than the product: encryption, scoped access, and an audit trail.
Retrieve at run time, not at build time
Applications should request the key at start or on demand via the store's API or SDK, not bake it into an image or config file. Environment variables and debug logs are a frequent leak path, so redact known secret fields before logging.
Record who owns it
Every key should have a named owner, an expiry date, and a rotation interval. For example, a fictional entry:
- Provider: Example Payments API
- Environment: Production
- Owner: Platform team lead
- Expiry date: Set by the provider's console
- Rotation interval: 90 days, per internal policy
- Last rotated: Recorded when the change is made
The free KeyGuardRail credential inventory template covers this metadata without storing secret values, and CSV import/export moves it between a spreadsheet and a tracking tool. The owner rotates the key in the provider, then records the change.
Plan the end of the key's life
At the rotation interval, the owner rotates in the provider's console, updates the store, and records the new expiry. On offboarding or retirement, the owner revokes the key and marks it inactive. Without a recorded owner, keys outlive the systems and people they were created for.
- Create the key in the provider and note its scope and expiry.
- Store the value in the credential store and confirm the application can retrieve it.
- Record owner, expiry, and rotation interval in the inventory.
- At the rotation interval, rotate in the provider, update the store, and record the change.
- On offboarding or retirement, revoke the key and mark it inactive.
Verify at each step: after storing, confirm the application authenticates; after rotating, confirm the old key is rejected; after revoking, confirm no service still depends on it. These checks catch the common failure where a key is rotated in one place but an old copy remains in use elsewhere.
Frequently Asked Questions
What is an example of a credential?
A credential is any information used to prove identity or grant access. Common examples include a username and password pair, an API key, an OAuth access token, a client certificate and its private key, and a service account password. Each one proves that a user, application or service is allowed to do something. Because each credential grants access, each should have a named owner, a known location, and a defined expiry or rotation schedule. Example values in documentation should always be placeholders such as <API_KEY_PLACEHOLDER>, never real secrets.
What is the difference between a credential store and a password manager?
A password manager is usually built for people. It stores logins for websites and applications and fills them in through a browser or app. A credential store is a protected repository that software and infrastructure use to hold usernames, passwords, keys and certificates. Applications read from it at runtime. Many teams use both: a password manager for shared human logins and a credential store or secrets manager for machine credentials. A lifecycle tracker like KeyGuardRail can sit alongside either one, recording owners and expiry dates without holding the secret values themselves.
