Skip to content

Admin auth, one source of truth โ€‹

What is this? โ€‹

Admin authorization has two sources of truth, so a partial demotion fails open. โ€‹

  • The two are the role claim on the token and the admin field on the users document, and different services trust different ones.
  • The consequence: the claim says user, the document still says admin, and six services grant on the document alone.

The scope is already decided, and it is option A. โ€‹

  • Convert the 12 either-or and doc-only sites to one shared predicate where a present claim is authoritative and the users document is consulted only when the claim is absent.

What is the current state? โ€‹

The census is done and landed. The fix has not started. โ€‹

Do not write to uid 4eLDbNWJ. โ€‹

  • It is the one live half-demoted admin on dev: made admin in January, demoted, and the demotion died after its first write. No audit row, no sign-in since 30 January, and nothing denies it.
  • Any test that writes to that account destroys the evidence an audit would read. What happens to it is the operator's call and it is still open.

Built with VitePress