Skip to content
12. Identity from the OIDC subject

12. Identity from the OIDC subject

  • Status: Accepted
  • Date: 2026-05

Context

Users were first identified by their e-mail address. E-mail addresses can be changed and, depending on the identity provider’s configuration, are not guaranteed to be unique, so a user could take over another’s volumes that way.

Decision

A user is identified by the sub claim of their OIDC token (the OwnerID), validated at login. Volumes, workspace ownership and labels use it. The username is display-only, stored on workspaces as the code.kornercloud.dev/owner-name annotation.

Consequences

  • Renaming a user or changing their e-mail keeps their workspaces and data.
  • If the identity provider is rebuilt and users get new subjects, their existing volumes become orphaned: identity provider data must persist.