feat: Make db-anon-role optional
Without db-anon-role, PostgREST will block any anonymous access without hitting the database. Resolves #1689, Ref #1823
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
db-anon-role = "required"
|
||||
|
||||
db-schema = "provided_through_alias"
|
||||
max-rows = 1000
|
||||
pre-request = "check_alias"
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
db-anon-role = "required"
|
||||
|
||||
db-channel-enabled = "1"
|
||||
db-prepared-statements = "0"
|
||||
jwt-secret-is-base64 = "2"
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
db-anon-role = "required"
|
||||
|
||||
db-channel-enabled = "true"
|
||||
db-prepared-statements = "FALSE"
|
||||
jwt-secret-is-base64 = "\"true\""
|
||||
|
||||
@@ -1,3 +1,2 @@
|
||||
db-anon-role = "required"
|
||||
# Not the default, but only works with PG* variables, which are not set
|
||||
db-config = false
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
db-anon-role = "required"
|
||||
db-anon-role = ""
|
||||
db-channel = "pgrst"
|
||||
db-channel-enabled = true
|
||||
db-extra-search-path = "public"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
db-anon-role = "required"
|
||||
db-anon-role = ""
|
||||
db-channel = "pgrst"
|
||||
db-channel-enabled = true
|
||||
db-extra-search-path = "public"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
db-anon-role = "required"
|
||||
db-anon-role = ""
|
||||
db-channel = "pgrst"
|
||||
db-channel-enabled = true
|
||||
db-extra-search-path = "public"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
db-anon-role = "required"
|
||||
db-anon-role = ""
|
||||
db-channel = "pgrst"
|
||||
db-channel-enabled = true
|
||||
db-extra-search-path = "public"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
db-anon-role = "postgrest_test_anonymous"
|
||||
db-anon-role = "other"
|
||||
db-channel = "postgrest"
|
||||
db-channel-enabled = false
|
||||
db-extra-search-path = "public,extensions,other"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
db-anon-role = "postgrest_test_anonymous"
|
||||
db-anon-role = "anonymous"
|
||||
db-channel = "postgrest"
|
||||
db-channel-enabled = false
|
||||
db-extra-search-path = "public,extensions,private"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
db-anon-role = "required"
|
||||
db-anon-role = ""
|
||||
db-channel = "pgrst"
|
||||
db-channel-enabled = true
|
||||
db-extra-search-path = "public"
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
# tests how config options fall back with invalid types
|
||||
db-anon-role = "required"
|
||||
|
||||
# expects string
|
||||
app.settings.test = false
|
||||
|
||||
Reference in New Issue
Block a user