Expected behavior:
Application audit events should be emitted when a session is created.
Current behavior:
If the cluster is configured with Postgres audit event backend, the app session is not generated because of an UUID parsing error. The most likely culprit is pgevents.Log.EmitAuditEvent, which attempts to parse event's session ID as an UUID, while server.CreateAppSessionFromReq sets it to a session name, which is generated as a random 64-character hex string.
Bug details:
Teleport version: 16.2.0, but also likely impacts older versions
Expected behavior: Application audit events should be emitted when a session is created.
Current behavior: If the cluster is configured with Postgres audit event backend, the app session is not generated because of an UUID parsing error. The most likely culprit is
pgevents.Log.EmitAuditEvent
, which attempts to parse event's session ID as an UUID, whileserver.CreateAppSessionFromReq
sets it to a session name, which is generated as a random 64-character hex string.Bug details: