AI & Agent Dev Bug Sandbox logo
AI & Agent Dev Bug Sandbox
Back to Radar

Auth Audit Log Documentation Incorrectly Lists Ip_address As A Logged Field

The Supabase Auth audit log documentation shows an example entry containing `ip_address`, but actual audit log entries emitted by GoTrue do not include this field. This causes user confusion and can lead to false assumptions about forensic capabilities.

mediumConfidence 75%Supabase AuthStoragesupabase-jspgvector

Origin Analysis

The documentation was likely written with an example payload that includes `ip_address`, but the underlying GoTrue audit event structure and logging pipeline do not extract or forward the client IP address into the audit log. The IP address is stored in the `auth.sessions` table, but that is separate from per-action audit logs.
1. Open https://supabase.com/docs/guides/auth/audit-logs.\n2. Note the example JSON containing an `ip_address` field.\n3. Trigger any authentication action (e.g., login, logout, token refresh) on a Supabase project.\n4. Inspect the resulting audit log entry (e.g., via Logflare or querying `auth.audit_log_entries`).\n5. Observe that no `ip_address` field is present in the payload.

Fixing Code Block

```markdown\n### Example audit log entry\n\n```json\n{\n "actor": {\n "id": "0f3d8a5e-...",\n "email": "user@example.com"\n },\n "action": "login",\n "timestamp": "2026-02-18T18:58:14Z"\n}\n```\n\n> **Note:** The `ip_address` field is not currently included in audit logs. The client IP address for a session is stored in `auth.sessions.ip_address`. If you need IP-level audit tracking, use that table or add edge-level IP capture to your logging pipeline.\n```
This documentation-only hotfix removes the misleading `ip_address` field from the example audit log payload and adds a note directing users to the correct location for IP information. It avoids changing backend behavior or introducing any runtime risk.

Edge Case Audit

This change is documentation-only and carries minimal rollback risk. However, if a future version of Supabase Auth adds IP address logging to audit events, this note will need to be updated to avoid becoming stale. Users who rely on the docs for compliance or security investigations should be aware that IP addresses are not currently available in audit logs and may need to implement additional logging at the edge or use `auth.sessions.ip_address`.

Ecosystem Topology

Agent Frameworks

LangChain, LlamaIndex, and Pydantic

  1. highProperty graph relation keys collide when entity IDs or labels contain underscores
  2. highCodeActAgent drops assistant tool-call metadata during handoff, leaving an orphan tool response
  3. high[Bug]: HierarchicalNodeParser async methods return the documents unsplit
  4. highLLM.predict_and_call fails with ValidationError for non-function-calling models when react_chat_formatter is omitted
  5. highAnthropic streaming server-tool input_json_delta overwrites completed client tool_use arguments due to stale cur_tool_call state