-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
add: log error when db-schemas config contain restricted schemas #4517
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add: log error when db-schemas config contain restricted schemas #4517
Conversation
|
Where should we document this? I am thinking in schemas.html#restricted-schemas or maybe in the config page? |
Hm, I'm thinking it should be more noticeable, maybe at the begging of https://docs.postgrest.org/en/v14/references/api/schemas.html, likely with an important or warning note. |
f8db730 to
7c1fdda
Compare
7c1fdda to
64c3af3
Compare
steve-chavez
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Was about to merge but noticed this is marked as draft.
Yeah, I wanted to rebase this on top of #4531 to avoid any conflicts in changelog. Opened now. |
We don't allow accessing schemas "pg_catalog" and "information_schema". Instead of silently failing requests on these schemas, this now adds logging an error on startup when these schemas are found in `db-schemas` config. Signed-off-by: Taimoor Zaeem <taimoorzaeem@gmail.com>
64c3af3 to
e4ea40b
Compare
We don't allow accessing schemas "pg_catalog" and "information_schema". Instead of silently failing requests on these schemas, this now adds logging an error on startup when these schemas are found in
db-schemasconfig.Closes #4359.