CYBER LIBRARY
Explore the bootcamp
Security essentialsIntermediate

Secrets management

Manage credential ownership, distribution, rotation, revocation, and leaked copies across source history, deployment artifacts, logs, and runtime consumers.

3 min readUpdated 12 Oct 20266 connections
Markdown

What it means

Secrets management controls the creation, storage, delivery, use, rotation, and revocation of credentials such as API keys. A central store can help, but access policies and application behavior still determine exposure. Secret values should not spread into source history, logs, build outputs, or unnecessary services.

A practical example

A deployment retrieves a narrowly scoped service credential through an approved mechanism rather than embedding it in source. The team records an owner, tests rotation, and knows which consumers must stop using the value when it is revoked.

What to check

Inventory secret owners and consumers, limit access, audit retrieval where appropriate, and test rotation and revocation. Inspect logs and artifacts for unintended copies and prefer shorter-lived credentials when supported.

A common pitfall

Deleting a leaked value from the latest source file does not revoke it or erase existing copies. Treat disclosure as a credential incident and address every affected consumer.

Think it through

What comes before celebrating removal of a leaked API key from Git?

Answer: Revoke or rotate the exposed credential and investigate where it was used or copied.

Follow a secret through its consumers

Imagine a fictional academy's schedule integration uses an API key. The key can appear in deployment configuration, process memory, diagnostic output, and accidental developer copies. A central store helps distribution, but it does not automatically prevent those downstream exposures.

Record who owns the credential, which systems need it, what authority it grants, and how replacement reaches every consumer. A secret without a current owner becomes difficult to rotate during an incident.

Rotation is an operational change

Suppose the provider issues a replacement key. Updating one deployment may leave an old worker or scheduled task using the earlier value. Plan the supported overlap, validation, and revocation behavior according to the service's actual capabilities.

Short-lived credentials can reduce the duration of some exposure, but they still require controlled issuance and appropriate scope. A briefly valid administrator credential can cause durable effects while it is usable.

A leak needs more than source cleanup

Deleting the key from a current file does not invalidate copies in history, artifacts, or someone else's checkout. Treat the credential as exposed, replace or revoke it, and investigate its relevant usage with the appropriate records.

For a safe exercise, draw a mock key's path from issuance to two application consumers. Simulate rotation using invented values and verify that both consumers switch before the old value is retired. Add a fictitious log leak and state the response sequence. This tests credential lifecycle and recovery without placing real secrets in a tutorial, issue, screenshot, or repository.

GO TO THE SOURCE

References & further reading

Original explanations, with primary references for deeper study.

OWASP: Secrets Management
EXPLORE THIS IDEA’S CONNECTIONS

A small part of a bigger picture.

7 notes · 7 connections
100%
Secrets management · depth 1
Drag to pan · Pinch or use +/− to zoom · Click to preview · Double-click to read
Browse notes as a list (7)
FOLLOW ANOTHER THREADExplore the rest of the library
Start with a concept. Follow its connections.
Detection & responseAbuse Elevation Control MechanismElevation-control abuse bypasses or misuses mechanisms governing privileged execution.Making change happenAcceptance criteriaDefine observable conditions for a deliverable to be accepted.Security essentialsAccess controlUnderstand subjects, resources, permissions, and enforcement through a shared-drive example, including how access changes over time.Detection & responseAccess Token ManipulationAccess token manipulation changes or adopts operating-system security contexts.Risk & resilienceAccount Access RemovalAccount access removal disrupts legitimate users by changing, deleting, or restricting their identities.Evidence & investigationAccount DiscoveryAccount discovery enumerates identities available in a system or environment.Detection & responseAccount ManipulationAccount manipulation changes identity settings to preserve or expand access.Adversarial thinkingAcquire InfrastructureInfrastructure acquisition obtains domains, servers, or other resources used to support operations.Adversarial thinkingActive ScanningActive scanning probes target infrastructure to learn reachable services or weaknesses.Security essentialsAdversary in the middleAn intermediary may observe or alter a communication path.Security essentialsAESA symmetric block cipher whose safe use depends on its mode and implementation.Making change happenAgile deliveryUse short feedback cycles to adapt toward a useful outcome.