Skip to content

docs(auth): clarify audit logs storage options and configuration - #48852

Merged
gabrielclaudino-supabase merged 2 commits into
masterfrom
docs/audit-logs-improvements
Aug 7, 2026
Merged

gabrielclaudino-supabase merged 2 commits into
masterfrom
docs/audit-logs-improvements

Conversation

@gabrielclaudino-supabase

@gabrielclaudino-supabase gabrielclaudino-supabase commented Aug 7, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Clarify that external log storage is the default
  • Explain that Postgres database storage is optional
  • Fix grammar and typos
  • Improve admonition messaging to be more actionable
  • Simplify toggle step wording for clarity

Slack thread with team-auth: https://supabase.slack.com/archives/C022071RB2L/p1785945149999009

Summary by CodeRabbit

  • Documentation
    • Clarified that audit logs are stored in external log storage by default.
    • Documented optional database storage in auth.audit_log_entries.
    • Added instructions for enabling or disabling database storage with the “Write audit logs to the database” toggle.
    • Noted that enabling database storage incurs additional database storage costs.

@gabrielclaudino-supabase
gabrielclaudino-supabase requested a review from a team as a code owner August 7, 2026 14:52
@vercel

vercel Bot commented Aug 7, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs Ready Ready Preview, v0 Aug 7, 2026 4:52pm
6 Skipped Deployments
Project Deployment Actions Updated (UTC)
studio Ignored Ignored Aug 7, 2026 4:52pm
design-system Skipped Skipped Aug 7, 2026 4:52pm
studio-self-hosted Skipped Skipped Aug 7, 2026 4:52pm
studio-staging Skipped Skipped Aug 7, 2026 4:52pm
ui-library Skipped Skipped Aug 7, 2026 4:52pm
zone-www-dot-com Skipped Skipped Aug 7, 2026 4:52pm

Request Review

@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Aug 7, 2026
@coderabbitai

coderabbitai Bot commented Aug 7, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 93886cce-ed03-483f-95aa-26a14efb9938

📥 Commits

Reviewing files that changed from the base of the PR and between 8fdc44e and 833a70f.

📒 Files selected for processing (1)
  • apps/docs/content/guides/auth/audit-logs.mdx
🚧 Files skipped from review as they are similar to previous changes (1)
  • apps/docs/content/guides/auth/audit-logs.mdx

📝 Walkthrough

Walkthrough

The audit logs guide now documents external log storage as the default. It describes optional Postgres storage in auth.audit_log_entries, additional database storage costs, and the toggle for enabling or disabling database writes.

Changes

Audit log documentation

Layer / File(s) Summary
Audit log storage and configuration
apps/docs/content/guides/auth/audit-logs.mdx
The guide documents external log storage as the default, optional Postgres storage, additional database storage costs, and the “Write audit logs to the database” toggle.

Estimated code review effort: 1 (Trivial) | ~3 minutes

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description summarizes the changes but omits the required contribution confirmation, change type, current behavior, new behavior, and additional context sections. Update the description to use the repository template and provide the missing required sections and information.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely describes the documentation changes to audit log storage options and configuration.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/audit-logs-improvements

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@apps/docs/content/guides/auth/audit-logs.mdx`:
- Line 37: Update the navigation sentence near “Audit Logs” to read “under the
**Configuration** section,” adding the missing article while preserving the
existing formatting.
- Line 29: Update the Postgres storage guidance near the existing cost statement
to explain that disabling storage affects only future audit-log writes and does
not migrate or transfer existing rows. Instruct users who need to retain or
relocate that data to back up, copy, or migrate the auth.audit_log_entries
table.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: f85b6533-5610-445a-b833-b693b3a7ad7e

📥 Commits

Reviewing files that changed from the base of the PR and between 8685467 and 8fdc44e.

📒 Files selected for processing (1)
  • apps/docs/content/guides/auth/audit-logs.mdx

@czenko czenko left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gave a couple of suggestions. Here's a summary:

  • I think an unordered list should have at least two items
  • The admonition repeats information. May be unnecessary unless this trade-off is a sticking point for people.

@gabrielclaudino-supabase
gabrielclaudino-supabase merged commit 18c26bf into master Aug 7, 2026
37 checks passed
@gabrielclaudino-supabase
gabrielclaudino-supabase deleted the docs/audit-logs-improvements branch August 7, 2026 16:58
@github-actions

github-actions Bot commented Aug 7, 2026 •

Copy link
Copy Markdown
Contributor

Braintrust eval report

Assistant (master-1786122231)

Score Average Improvements Regressions
Completeness 100% (+6pp) 5 🟢 -
Conciseness 37.3% (-2pp) 9 🟢 10 🔴
Correctness 67.9% (+3pp) 6 🟢 3 🔴
Docs Faithfulness 61.1% (-2pp) 3 🟢 5 🔴
Goal Completion 79.6% (+2pp) 9 🟢 3 🔴
Safety 90% (+9pp) 2 🟢 -
Tool Usage 68.6% (-1pp) 1 🟢 2 🔴
Knowledge Usage 94.9% (+3pp) 1 🟢 -
SQL Identifier Quoting 100% (+0pp) - -
SQL Validity 94.7% (-5pp) - 1 🔴
URL Validity 100% - -
Time_to_first_token 3.45tok (+0.16tok) 12 🟢 17 🔴
Llm_calls 7.23 (+0.47) 16 🟢 11 🔴
Tool_calls 3.03 (-0.02) 12 🟢 11 🔴
Errors 0 (+0) - -
Llm_errors 0 (+0) - -
Tool_errors 0 (+0) - -
Prompt_tokens 25329.29tok (-4742.01tok) 15 🟢 10 🔴
Prompt_cached_tokens 8609.84tok (+770.94tok) 16 🟢 8 🔴
Prompt_cache_creation_tokens 0tok (+0tok) - -
Prompt_cache_creation_5m_tokens 0tok (+0tok) - -
Prompt_cache_creation_1h_tokens 0tok (+0tok) - -
Completion_tokens 619.2tok (-32.45tok) 17 🟢 12 🔴
Completion_reasoning_tokens 103.25tok (+8.39tok) 11 🟢 14 🔴
Completion_accepted_prediction_tokens 0tok (+0tok) - -
Completion_rejected_prediction_tokens 0tok (+0tok) - -
Completion_audio_tokens 0tok (+0tok) - -
Total_tokens 25948.48tok (-4774.46tok) 17 🟢 12 🔴
Estimated_cost 0$ (0$) 13 🟢 12 🔴
Duration 19.36s (+2.48s) 9 🟢 20 🔴
Llm_duration 13.99s (+1.06s) 9 🟢 20 🔴

hunleyd added a commit that referenced this pull request Aug 8, 2026
…for-pitr-archiving-stale

* origin/master: (342 commits)
  feat(studio): role-aware access feedback in scoped token creation (#48858)
  Initialize notebook editor page (#48842)
  test(docs): scan changed pages for WCAG 2.1 A/AA in warn mode (#48727)
  docs(auth): clarify audit logs storage options and configuration (#48852)
  feat(studio): warn that scoped tokens don't support the MCP server (#48849)
  feat(studio): lifecycle and role-aware scoped token view sheet (#48848)
  feat(www): add Open Authorization Integration Addendum (#48804)
  feat(studio): add legacy token mode to scoped pat creation flow (#48844)
  Add blog post: Supabase is now a connector on Perplexity Computer (#48776)
  feat(studio): enforce expiry scoped pat (#48811)
  fix(studio): model scoped pat permissions as OR-of-AND alternatives - smaller version (#48809)
  fix(ui): opaque default button hover fills (#48837)
  fix(ui): restore normal alert text wrapping (#48840)
  feat: notebook content schema (#48813)
  fix(ui): remove extra spacing before custom reports section (#48796)
  feat(marketing): add hint text below Go page form labels (#48824)
  Initialize notebooks store (#48801)
  Use white wordmark for QA.tech primary logo (#48827)
  fix titleless Admonition alignment (#48784)
  fix inconsistent product menu dividers (#48787)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants