Skip to content

Activity says how the call was made, and never reads an unrecorded start as a person - #2858

Closed
davidmckayv wants to merge 3 commits into
mainfrom
david/g1d-identity
Closed

davidmckayv wants to merge 3 commits into
mainfrom
david/g1d-identity

Conversation

@davidmckayv

@davidmckayv davidmckayv commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

What

Activity and the audit API say how a person reached OpenBot to do each thing, and a row nothing recorded a start for no longer reads as a person.

  • credentialKind and credentialId on every audit event (optional, nullable): session, api-key or app-token, and which key (its id) or which app (its client id). Never a key or a token. The CSV export adds both as its last two columns, so a reader taking the existing columns by position reads them as before.
  • initiatorKind gains unknown and directory. unknown is a row whose writer named no initiator outside any request a person signed in: shown as "Not recorded", never "A person". directory is a company's directory (SCIM). Both are in the Started by filter.
  • A credentialKind filter on listing and exporting audit events, in the filters Ask the trail answers with, and a Signed in with chip on Activity.
  • Activity shows "with an API key" or "in OpenBot Desktop" after who started a row, and finds rows by it in search.
  • Words for the new events: API key created and deleted, an OpenBot app let in, turned down, signed in and signed out, a session ended, a way to sign in added or removed, an identity provider changed, and a person's groups changed by the directory.
  • docs/architecture.md ("What started a run", "How the call was made").

API

Additive only. oasdiff breaking against main: no breaking changes. api:lint clean, api:generate committed with the sources.

Changelog

Activity.

  • Activity says how a person reached OpenBot. Every event records whether the person's own sign-in, an API key or one of OpenBot's apps (Desktop, the CLI, the phone app) made the call, and which key or app. A row a key made reads "with an API key"; one an app made, "in OpenBot Desktop". Events from before this release have none.
  • Creating and deleting an API key, letting one of OpenBot's apps sign in (or turning it down), the app receiving its sign-in, signing out of it, ending a session, adding or removing a way to sign in, changing an identity provider, a directory moving somebody between groups, and deleting one of your own Always allow rules each write an event.
  • An event nothing recorded a start for reads "Not recorded", where it used to read as started by a person. A directory's changes read as the directory's. The Started by filter has both.

API.

  • Audit events gain credentialKind and credentialId, and the CSV export adds them as its last two columns. initiatorKind may now be unknown or directory.
  • Listing and exporting audit events take an optional credentialKind filter, and AuditFilters carries it.

Checks

format, lint, api:lint, app typecheck, api/openapi-audit.test.ts. The server side and its regression tests are in the matching backend PR.

…art as a person

Audit events gain credentialKind and credentialId: whether a person's sign-in, an API key or one of OpenBot's apps made the call, and which key or app. Activity shows "with an API key" or "in OpenBot Desktop" after who started a row, the CSV export adds both as its last two columns, and the search box finds rows by them.

initiatorKind gains unknown (nothing recorded what started it, shown as Not recorded) and directory (a company's directory, by SCIM), each in the Started by filter. Words for the new events: API keys created and deleted, OpenBot apps let in, turned down, signed in and signed out, sessions ended, ways to sign in added and removed, identity providers changed, and a person's groups changed by the directory.
The audit list and export take credentialKind (session, api-key, app-token), the filters Ask the trail answers with carry it, and Activity has a Signed in with filter.
@davidmckayv

Copy link
Copy Markdown
Contributor Author

Landed in #2869, which fused every G1 slice.

@davidmckayv davidmckayv closed this Dec 3, 2026
@davidmckayv
davidmckayv deleted the david/g1d-identity branch December 3, 2026 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant