---
title: "Postmortem: Nine Days to Learn What a Departing Engineer Could Still Access"
lang: "en"
author: "Mohammad Abu Mattar"
canonical: https://mkabumattar.com/incidents/post/vault-departure-nine-day-access-audit
---

[Home](/)›[Incidents](/incidents)›[All Categories](/incidents/categories)›[Security](/incidents/categories/security)

Incidents

[Prev in SecurityThe Admission Gate Denied an Image Built from a Fork](/incidents/post/slsa-admission-gate-fork-built-image)

[Security](/incidents/categories/security)

# A Resignation, and Nine Days to Answer One Question

[Mohammad Abu Mattar](/authors/mohammad-abu-mattar)Published: 28 Oct 2026Updated: 09 Nov 202603 Mins read

[Markdown for AI(opens in a new tab)](/incidents/post/vault-departure-nine-day-access-audit/index.md "Open the plain-Markdown version of this page, for pasting into an AI tool")

### A Resignation, and Nine Days to Answer One Question

Contents

[Summary](#summary)[Impact](#impact)[Timeline](#timeline)[Root cause](#root-cause)[Contributing factors](#contributing-factors)[What changed](#what-changed)[Did it hold](#did-it-hold)[What I would do differently](#what-i-would-do-differently)

## [Summary](#summary)

This incident did not start with a security review. It started with a resignation.

A senior engineer gave notice, and someone asked the reasonable question of what they could still log into after their last day. Disabling the SSO account was easy. Answering the rest took nine days, because the honest answer was that we did not know. Database passwords lived in environment variables. A few lived in Parameter Store. One lived in a CI variable that predated the current CI system. At least two lived in a Kubernetes Secret that had been committed to a repository, force-pushed away, and then quietly re-added because a deploy broke without it.

## [Impact](#impact)

No breach, which is why this is a sev3 and not a career event. The impact was what the nine days revealed:

-   **No inventory.** “What does this person have access to” could not be answered without grepping every repo and asking three teams.
-   **No expiry.** A credential leaked in 2023 was still valid in 2026. Nothing about the system noticed or cared.
-   **No attribution.** The database saw one user called `api_prod` doing everything. Forty pods shared it, so a bad query had forty suspects.
-   **Rotation meant an outage.** Changing a password meant editing a manifest and doing a rolling restart, in the right order, at the same time. We rotated roughly never.

## [Timeline](#timeline)

No day-by-day clock for the nine days; the question was asked, three teams were involved, and the answer arrived nine days later. The migration that followed has a full phase timeline in the case study: inventory, shadow, dual-read, dynamic-only, eleven weeks end to end.

One near-miss from the shadow phase deserves its own line. A daily diff across every migrated pod found exactly one mismatch in 214 pods: the app started faster than the Vault sidecar agent, so the pod read an empty file at second zero and the env var won. That race is normal, and we would have shipped the crash it caused straight into production had we skipped the shadow phase.

## [Root cause](#root-cause)

Rotation was risky because of the deployment design, not because anyone was careless: because rotation meant an outage, we avoided it, and because we avoided it, every credential had years of exposure behind it. The scattering across four homes was accumulation with no inventory to push back against it.

## [Contributing factors](#contributing-factors)

**The committed Secret came back.** It was removed properly, by force-push, and then quietly re-added because a deploy broke without it. Deletion that breaks something gets reverted; that is why deletion needs a plan and not just a push.

**One shared database user.** `api_prod` doing everything meant access questions could not be answered per workload even in principle.

## [What changed](#what-changed)

The full migration is the case study: everything to Vault, dynamic database credentials per pod, and audit as a first-class output.

1.  **Credential lifetimes with a ceiling.** Indefinite before; 8h dynamic credentials with a 24h ceiling after. The initial one-hour TTL was revised: it generated enough renewal traffic to make the audit log hard to read and turned every restart storm into a small load test.
2.  **One database user per pod**, measured via `pg_stat_activity` sampling, from one shared user per service.
3.  **Static secrets in Git: 14 to 0**, by a gitleaks scan of the full history at week 11.

## [Did it hold](#did-it-hold)

We tested this against a real departure in week nine and had a complete answer in under a minute, against nine days for the same question in January. The accepted trade-off is now explicit: once a pod cannot start without Vault, Vault’s availability is your availability, so Vault runs three nodes across zones with Raft, auto-unseal, and quarterly unseal tests.

## [What I would do differently](#what-i-would-do-differently)

Treat “we cannot answer who has access to what” as an incident before a resignation makes it one. The nine days were not a bad week; they were the first time anyone had asked the system a question it was never able to answer.

The full migration, including the shadow-phase race and the tier-zero trade-off, is written up in [A Secrets Migration to Vault](/case-studies/post/secrets-migration-to-vault).

Was this useful?

## Tags

[#Postmortem](/incidents/tags/postmortem)[#Vault](/incidents/tags/vault)[#Secrets](/incidents/tags/secrets)[#Kubernetes](/incidents/tags/kubernetes)[#Access Control](/incidents/tags/access-control)

## Share

[Facebook](https://facebook.com/sharer/sharer.php?u=https%3A%2F%2Fmkabumattar.com%2Fincidents%2Fpost%2Fvault-departure-nine-day-access-audit "Share on Facebook")[Twitter](https://twitter.com/intent/tweet/?text=A%20Resignation%2C%20and%20Nine%20Days%20to%20Answer%20One%20Question&url=https%3A%2F%2Fmkabumattar.com%2Fincidents%2Fpost%2Fvault-departure-nine-day-access-audit "Share on Twitter")[LinkedIn](https://www.linkedin.com/shareArticle?mini=true&url=https%3A%2F%2Fmkabumattar.com%2Fincidents%2Fpost%2Fvault-departure-nine-day-access-audit&title=A%20Resignation%2C%20and%20Nine%20Days%20to%20Answer%20One%20Question&summary=A%20senior%20engineer%20gave%20notice%2C%20and%20answering%20what%20they%20could%20still%20log%20into%20took%20nine%20days.%20Secrets%20lived%20in%20env%20vars%2C%20Parameter%20Store%2C%20a%20CI%20variable%20older%20than%20the%20CI%20system%2C%20and%20a%20Kubernetes%20Secret%20committed%2C%20force-pushed%20away%2C%20and%20quietly%20re-added.&source=https://mkabumattar.com "Share on LinkedIn")[WhatsApp](https://wa.me/?text=A%20Resignation%2C%20and%20Nine%20Days%20to%20Answer%20One%20Question%20https%3A%2F%2Fmkabumattar.com%2Fincidents%2Fpost%2Fvault-departure-nine-day-access-audit "Share on WhatsApp")[Telegram](https://t.me/share/url?url=https%3A%2F%2Fmkabumattar.com%2Fincidents%2Fpost%2Fvault-departure-nine-day-access-audit&text=A%20Resignation%2C%20and%20Nine%20Days%20to%20Answer%20One%20Question "Share on Telegram")[Reddit](https://www.reddit.com/submit?url=https%3A%2F%2Fmkabumattar.com%2Fincidents%2Fpost%2Fvault-departure-nine-day-access-audit&title=A%20Resignation%2C%20and%20Nine%20Days%20to%20Answer%20One%20Question "Share on Reddit")[Hacker News](http://news.ycombinator.com/submitlink?u=https%3A%2F%2Fmkabumattar.com%2Fincidents%2Fpost%2Fvault-departure-nine-day-access-audit&t=A%20Resignation%2C%20and%20Nine%20Days%20to%20Answer%20One%20Question "Share on Hacker News")[Pinterest](https://pinterest.com/pin/create/button/?url=https%3A%2F%2Fmkabumattar.com%2Fincidents%2Fpost%2Fvault-departure-nine-day-access-audit&media=&description=A%20senior%20engineer%20gave%20notice%2C%20and%20answering%20what%20they%20could%20still%20log%20into%20took%20nine%20days.%20Secrets%20lived%20in%20env%20vars%2C%20Parameter%20Store%2C%20a%20CI%20variable%20older%20than%20the%20CI%20system%2C%20and%20a%20Kubernetes%20Secret%20committed%2C%20force-pushed%20away%2C%20and%20quietly%20re-added. "Share on Pinterest")[Email](<mailto:?subject=A%20Resignation%2C%20and%20Nine%20Days%20to%20Answer%20One%20Question&body=Check out this article: https%3A%2F%2Fmkabumattar.com%2Fincidents%2Fpost%2Fvault-departure-nine-day-access-audit>)

## Comments

## Continue on this topic

The same subject, covered a different way from the article above.

-   [
    
    ![](/_astro/hero.Bc29mHMy_WUPms.webp)
    
    Case Study
    
    ### Secrets Management Migration to Vault Without an Outage
    
    How 41 services moved from scattered environment variables and parameter stores to Vault with dynamic, short-lived credentials, using a four-phase dual-read rollout that never made Vault a hard startup dependency until the very last step.
    
    
    
    ](/case-studies/post/secrets-migration-to-vault)
-   [
    
    ![](/_astro/hero.Cutky8ud_Z1T52KI.webp)
    
    Article
    
    ### Securing Kubernetes Workloads: Pod Security Admission, OPA Gatekeeper, and Kyverno Compared
    
    The same three security policies written in Pod Security Admission, OPA Gatekeeper and Kyverno, plus where each one runs in the admission pipeline, what failurePolicy really costs you, and why ValidatingAdmissionPolicy changes the decision.
    
    
    
    ](/blog/post/kubernetes-workload-security-psa-opa-kyverno)
-   [
    
    ![](/_astro/hero.DShusAJ-_ZrHGG8.webp)
    
    Quiz
    
    ### HashiCorp Vault: Secrets Management Fundamentals
    
    Master secrets management with this quiz on HashiCorp Vault engines, dynamic secrets, and the seal/unseal process.
    
    
    
    ](/quizzes/post/vault-secrets-management-quiz)
-   [
    
    Cheatsheet
    
    ### OpenSSL
    
    A practical OpenSSL reference for TLS and certificate work. Generating keys and CSRs, self-signed certs, inspecting certificates, verifying chains, testing live handshakes with s\_client, converting between PEM, DER, PKCS#12 and JKS, and checking that a key matches its certificate.
    
    
    
    ](/cheatsheets/openssl)

## You might also enjoy

More posts on similar topics

## [The Admission Gate Denied an Image Built from a Fork](/incidents/post/slsa-admission-gate-fork-built-image)

-   [Mohammad Abu Mattar](/authors/mohammad-abu-mattar)
-   Security
-   CI/CD

Summary The enforcement phase of a supply-chain hardening program denied 23 pods in its first six weeks. Most were rollout tail: twenty stale base images, two images built by hand on a developer l

#Postmortem#SLSA#Supply Chain+3 tags

[read more](/incidents/post/slsa-admission-gate-fork-built-image)

## [Five Minutes of 500s, Caused by Someone Being Careful](/incidents/post/all-at-once-deploy-five-minute-outage)

-   [Mohammad Abu Mattar](/authors/mohammad-abu-mattar)
-   Reliability
-   CI/CD

Summary The incident that started this was not caused by carelessness. It was caused by someone being careful. A release went out at 14:20 on a Tuesday. Error rate climbed within ninety seconds.

#Postmortem#Progressive Delivery#Argo Rollouts+2 tags

[read more](/incidents/post/all-at-once-deploy-five-minute-outage)

## [A Regional Control-Plane Failure Took a Payments API Offline](/incidents/post/single-region-payments-api-regional-outage)

-   [Mohammad Abu Mattar](/authors/mohammad-abu-mattar)
-   Reliability
-   Architecture

Summary A payments API that moves real money had run in a single AWS region for years. A regional control-plane incident took the whole service offline for a few hours. There was no second region

#Postmortem#AWS#Multi Region+3 tags

[read more](/incidents/post/single-region-payments-api-regional-outage)

## [Three Dashboards Reported Zero Revenue, and Every Job Exited 0](/incidents/post/cron-silent-zero-revenue-failure)

-   [Mohammad Abu Mattar](/authors/mohammad-abu-mattar)
-   Reliability
-   Data Engineering

Summary The failure mode that finally forced the pipeline rewrite was mundane. A vendor changed an SFTP filename. One job silently produced a zero-row file, six downstream jobs consumed that file

#Postmortem#Cron#SQS+3 tags

[read more](/incidents/post/cron-silent-zero-revenue-failure)

## [Two Outages Where We Told Envoy Something We Did Not Mean](/incidents/post/mesh-config-ordering-outages)

-   [Mohammad Abu Mattar](/authors/mohammad-abu-mattar)
-   Reliability
-   Kubernetes

Summary Did the sidecars cause outages? Two, both self-inflicted, and both configuration rather than software. One was a DestinationRule ordering mistake. The other was a PeerAuthentication sc

#Postmortem#Service Mesh#Istio+2 tags

[read more](/incidents/post/mesh-config-ordering-outages)

## [Three Weeks of "Sometimes Doesn't Load", While p50 Stayed Green](/incidents/post/p99-tail-latency-three-week-blind-spot)

-   [Mohammad Abu Mattar](/authors/mohammad-abu-mattar)
-   Performance
-   Observability

Summary The complaint that started this was not about speed. It was a support ticket saying the dashboard "sometimes doesn't load", from a customer whose account was roughly forty times larger tha

#Postmortem#Latency#Caching+3 tags

[read more](/incidents/post/p99-tail-latency-three-week-blind-spot)

6 related posts
