Conversation
|
|
|
View your CI Pipeline Execution ↗ for commit 42f41e4
☁️ Nx Cloud last updated this comment at |
There was a problem hiding this comment.
Pull request overview
Security-focused change to support moving Payload CMS tables out of Supabase public schema by making the DB schema configurable via an environment variable.
Changes:
- Added
DATABASE_SCHEMAto the CMS environment schema. - Passed
DATABASE_SCHEMAthrough to Payload’s Postgres adapter viaschemaName.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| libs/app-cms/util/env-schema/src/lib/env.schema.ts | Introduces DATABASE_SCHEMA env var for selecting the schema for Payload tables. |
| apps/cms/src/payload.config.ts | Configures Payload’s Postgres adapter to use schemaName from DATABASE_SCHEMA. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
✨ Your pull request projects are ready for preview
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #413 +/- ##
============================================
+ Coverage 72.77% 100.00% +27.22%
============================================
Files 84 5 -79
Lines 3816 26 -3790
Branches 406 5 -401
============================================
- Hits 2777 26 -2751
+ Misses 1034 0 -1034
+ Partials 5 0 -5 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
48d380f to
42f41e4
Compare
Summary
Security improvement — moves all Payload CMS tables out of the Supabase
publicschema so they are no longer exposed via PostgREST. Schema name is now environment-driven viaDATABASE_SCHEMAin Infisical.Closes COD-374
🤖 Generated with Claude Code