Record a Studio sign-in
Studio's server records that a browser signed in (studio.signed_in): on its loopback address, with a login token, or through a sign-in proxy (forwarded), and the person's subject when there is one. Only Studio's key (principal studio, derived from the admin key) may call it; any other management key is 403.
managementKeyAuthorizationBearer <token>A management key of the Tenant (role management): it reaches the Management API (/v1/tenant/*) and /v1/me, as itself, never for a subject. Issued only on the Tenant's machine (nylorun-operate keys put <id> --role management) or from NYLORUN_MANAGEMENT_KEY_FILE. Never accepted from a browser (Origin).
Nylorun-Protocol*stringThe protocol version, 18
application/json- body
method*string"loopback""token""forwarded"subject?string1 <= length <= 200The event recorded
application/json- response
schema*"nylorun.tenant-event/1""nylorun.tenant-event/1"seq*integer0 <= valuetime*stringtype*string"key.created""key.revoked""signing_key.rotated""signing_key.revoked""policy.changed""settings.changed""credential.created""credential.rotated""credential.deleted""credential.used""studio.signed_in"source*string"api""operate""runtime""studio"principal*stringpayload*curl -X POST "https://example.com/v1/tenant/audit/studio-sign-in" \ -H "Nylorun-Protocol: string" \ -H "Content-Type: application/json" \ -d '{ "method": "loopback" }'{ "schema": "nylorun.tenant-event/1", "seq": 0, "time": "string", "type": "key.created", "source": "api", "principal": "string", "payload": { "property1": null, "property2": null }}Read the Tenant's audit GET
The Tenant's stream, newest first: `key.created`, `key.revoked`, `signing_key.rotated`, `signing_key.revoked`, `policy.changed`, `settings.changed`, `credential.created`, `credential.rotated`, `credential.deleted`, `credential.used`, `studio.signed_in`. Each event names who acted (`principal`, from the credential of the request that made the change: a key's name, `<key>:<subject>`, `<issuer>:<subject>`, `operate`, or `host` for the Runtime itself) and what wrote it (`source`), and never holds a secret value. A page holds `limit` events (default 50); `nextCursor` reads older ones with the same filters. Host feature `tenant-audit`.
List the Tenant's keys GET
Every key of the Tenant by name, with its role (`application`, `management` or `studio`) and when it was issued. Keys themselves are never shown again.