The token that outlived the employee
An employee leaves, the account is deleted — and an API token issued months ago keeps working. How that is seen, and why it is a rule of its own.
Offboarding in a self-built CRM usually means one thing: the account is deleted or switched off. The laptop is handed back, the password stops working, and everyone moves on. What nobody checks is the API token the person created half a year ago for an integration — it was never tied to the sign-in page, so it never noticed.
The token keeps answering. Requests signed with it look like any other integration traffic, the application accepts them, and in many CRMs nothing is written down, because a request with a token is not a sign-in.
This is where the two sources meet. The traffic shows which credential each request carries — as a fingerprint, never the token itself. The database shows which accounts exist and who they belong to. A token still working for an account that is gone triggers id.vanished_account; an account the database has never heard of triggers id.unknown_account.
The alert says what happened in plain words — a token active for a removed employee — with the account, where the requests came from and what they reached. What to do is just as plain: revoke the session and rotate the token.