Insights / Tag
#ci/cd
DevOps · Illustrative scenario
npm ci fails: reproduce the resolver configuration
Reproduce the resolver that created the lockfile before deciding whether the dependency graph should change.
DevOps · Illustrative scenario
Git force-with-lease: bind both commit IDs
Know exactly which old remote commit may be replaced and which reviewed candidate will replace it.
DevOps · Illustrative scenario
Git revert merge: verify the tree before reintroduction
Choose the mainline from actual parents, then carry an unrelated mainline change through rollback and reintroduction; inspect final file content as well as ancestry.
DevOps · Illustrative scenario
Terraform saved plans: bind approval to the artifact
Treat code revision, state target, binary plan digest and approval as one record; regeneration creates a new approval decision.
Security · Illustrative scenario
Docker build secrets: keep tokens out of image layers
A temporary BuildKit mount solves credential transport. A disposable dummy-token probe shows what it does, what cache hides and what your build can still leak.
DevOps
GitHub Actions queues: stop stale deployments
A deployment queue preserves waiting work. It still needs a release contract that rejects an older artifact after a newer one is active.
DevOps
GitHub Actions AWS OIDC: match the actual subject
An environment changes the deployment identity. A renamed repository can change it again. Diagnose the token before changing the role.
DevOps
GitHub Actions cache misses: trace keys, paths and scope
A green workflow does not prove a cache was saved, and a restored cache does not prove the primary key matched.
DevOps
Docker multi-stage builds: shrink the runtime boundary
A small image is useful only if the application still starts correctly and the build has not copied its secrets into the release artifact.
Security
Hardening GitHub Actions against supply-chain attacks
The tj-actions incident showed what a compromised action can read. Here is how to limit the damage and fix the cause.