Wolfgang Walther
c894b543b0
bump version to 9.0.0.20220130
2022-01-30 16:15:27 +01:00
Wolfgang Walther and Wolfgang Walther
91f1580f95
Fix warning when using docker host network
...
Resolves #491
Signed-off-by: Wolfgang Walther <walther@technowledgy.de >
2022-01-30 14:24:51 +01:00
Wolfgang Walther and Wolfgang Walther
a4db05aeba
Improve docker install examples
...
Removes the PGRST_DB_SCHEMA variable which is public by default now.
Removes the PGRST_DB_ANON_ROLE variable, because using the authenticator role or even a superuser is very bad practice.
Replaces the postgres superuser with app_user, because using a superuser to connect to postgres is very bad practice.
Signed-off-by: Wolfgang Walther <walther@technowledgy.de >
2022-01-30 14:24:51 +01:00
Wolfgang Walther and Wolfgang Walther
a85dfe9558
chore: Move *.rst files to docs/ folder
...
Signed-off-by: Wolfgang Walther <walther@technowledgy.de >
2022-01-30 13:35:55 +01:00
Wolfgang Walther and Wolfgang Walther
0ae86b7e74
Fix references to full documents instead of first section
...
Resolves #492
Signed-off-by: Wolfgang Walther <walther@technowledgy.de >
2022-01-30 13:31:20 +01:00
Wolfgang Walther and Wolfgang Walther
58f76f3d6d
fix: Return 405 Method Not Allowed for unsupported verbs
...
Signed-off-by: Wolfgang Walther <walther@technowledgy.de >
2022-01-28 19:26:33 +01:00
Wolfgang Walther and Wolfgang Walther
8980b09419
refactor: Sort error types
...
Signed-off-by: Wolfgang Walther <walther@technowledgy.de >
2022-01-28 19:26:33 +01:00
Wolfgang Walther and Wolfgang Walther
927ff6f1e5
test: Split spec tests into multiple subfolders
...
Signed-off-by: Wolfgang Walther <walther@technowledgy.de >
2022-01-28 19:26:33 +01:00
Wolfgang Walther and Wolfgang Walther
8a722e2cfe
refactor: Replace elem with pattern matching to highlight missing code coverage
...
Signed-off-by: Wolfgang Walther <walther@technowledgy.de >
2022-01-28 19:26:33 +01:00
Wolfgang Walther and Wolfgang Walther
271c329677
nix: Fix postgrest-git-hooks causing merge conflicts when staging files partially
...
Signed-off-by: Wolfgang Walther <walther@technowledgy.de >
2022-01-28 19:26:33 +01:00
Wolfgang Walther and Wolfgang Walther
c63420f0e7
nix: Fix postgrest-git-hooks disable not working
...
Signed-off-by: Wolfgang Walther <walther@technowledgy.de >
2022-01-28 19:26:33 +01:00
Wolfgang Walther and Wolfgang Walther
2fe2c9104b
ci: Fix weeder not stopping CI on error
...
Removes dead code that was unnoticed
Signed-off-by: Wolfgang Walther <walther@technowledgy.de >
2022-01-28 17:12:32 +01:00
Wolfgang Walther and Wolfgang Walther
0ea36fc039
ci: Fix windows build failing because of outdated keyring
...
Signed-off-by: Wolfgang Walther <walther@technowledgy.de >
2022-01-28 17:12:32 +01:00
Wolfgang Walther and Wolfgang Walther
fc7113e52e
fix: Remove trigger functions from schema cache and OpenAPI output
...
Trigger functions can't be called directly from SQL and can't be called
via the /rpc prefix either - it makes no sense to expose them in the
OpenAPI output. And we don't need to cache them in the schema cache
either.
Best practice would be to keep the trigger functions in a non-exposed
schema anyway.
2022-01-28 16:45:36 +01:00
Nilesh and GitHub
49ca91cc3c
Improving docs for setting response headers like content-type ( #494 )
2022-01-27 19:27:19 -05:00
Steve Chavez and GitHub
c7cadcd776
Fix embedded filter silently getting ignored ( #2133 )
...
When the embedded resource is not included in the request
2022-01-24 17:52:27 -05:00
Wolfgang Walther and Wolfgang Walther
fae1e168a7
Fix memory tests timing out after c3ade07
2022-01-24 14:56:06 +01:00
Wolfgang Walther and Wolfgang Walther
d2791ea0e5
Sort example config alphabetically
2022-01-24 14:56:06 +01:00
Wolfgang Walther and Wolfgang Walther
f4637c64c9
Remove db-root-spec from example config file
...
We are not going to support this officially right now.
2022-01-24 14:56:06 +01:00
Wolfgang Walther and Wolfgang Walther
1b9a30cff4
Make db-uri, db-schemas and db-anon-role optional in example config file
2022-01-24 14:56:06 +01:00
Wolfgang Walther and Wolfgang Walther
5a627e76b2
format comments in example config consistently
2022-01-24 14:56:06 +01:00
Wolfgang Walther and Wolfgang Walther
0824139069
Add order of precedence for config parameters
2022-01-24 10:24:39 +01:00
Wolfgang Walther and Wolfgang Walther
5f938dbe1a
Run PostgREST with zero config. Related to https://github.com/PostgREST/postgrest/pull/2112
2022-01-24 10:24:39 +01:00
Wolfgang Walther and Wolfgang Walther
5187eadd0b
Restructure configuration reloading section
2022-01-24 10:24:39 +01:00
Wolfgang Walther
d9e016be8b
feat: Allow running postgrest without configuration
...
Resolves #1823
2022-01-22 15:59:26 +01:00
Wolfgang Walther
c3ade07ad6
feat: Make db-anon-role optional
...
Without db-anon-role, PostgREST will block any anonymous access without hitting the database.
Resolves #1689 , Ref #1823
2022-01-22 15:59:26 +01:00
Wolfgang Walther
05b5ecd23b
Reformatting of some test-cases and removal of superfluous comments.
2022-01-22 15:13:21 +01:00
Wolfgang Walther
dbbde6aae1
feat: Make db-schemas optional
...
Resolves #1769 , Ref #1823
2022-01-22 15:13:21 +01:00
Wolfgang Walther
9ed30c0ba4
feat: Make db-uri optional
...
The default is now "postgresql://" which falls back to LIBPQ environment variables.
Resolves #1991 , Ref #1823
2022-01-22 15:13:19 +01:00
Wolfgang Walther
ec09b87940
test: Make io tests use environment variables instead of config files where possible.
...
Load jwt secret from file instead of stdin in tests, because stdin is not supported when reloading the config. Resolves #2126 .
2022-01-22 15:10:25 +01:00
Steve Chavez and GitHub
9d23cfde9d
Add finer-grained event trigger ( #489 )
2022-01-12 12:52:34 -05:00
Wolfgang Walther and Wolfgang Walther
6b5370f145
ci: Add -with-rtsopts=-KxK option to prevent introducing space leaks
...
Resolves #387
2022-01-10 22:09:32 +01:00
Wolfgang Walther and Wolfgang Walther
a25ad42644
Align columns in postgrest.cabal
2022-01-10 22:09:32 +01:00
Wolfgang Walther and Wolfgang Walther
995215c6a5
fix: Read database configuration properly when = is present in value
...
Resolves #2120
2022-01-10 09:24:49 +01:00
Wolfgang Walther and Wolfgang Walther
4b841dba61
refactor: Reformat db-config query
2022-01-10 09:24:49 +01:00
Wolfgang Walther and Wolfgang Walther
737ad76dfd
Clarify in-database configuration example regarding IN DATABASE
2022-01-08 22:25:31 +01:00
Wolfgang Walther and Wolfgang Walther
4bd090ba13
add user to logging example
2022-01-08 11:31:41 +01:00
Wolfgang Walther and Wolfgang Walther
540ef4ad9f
Update configuration page
2022-01-08 11:29:20 +01:00
Wolfgang Walther and Wolfgang Walther
62726ddcfd
force colored output in build and linkcheck tools
2022-01-08 10:50:48 +01:00
Wolfgang Walther and Wolfgang Walther
6c382c5985
replace permanently redirected URIs
2022-01-08 10:50:48 +01:00
Wolfgang Walther and Wolfgang Walther
0187410882
remove dead link to v5 docs
2022-01-07 20:33:06 +01:00
Wolfgang Walther and Wolfgang Walther
9639cd5751
feat: Add current user to apache-style request logging.
2022-01-07 20:26:33 +01:00
3c17f97c87
refactor: Make JWT authorization a middleware
...
This follows the style of wai-middleware-auth package and
makes the JWT parsing a middleware.
Co-authored-by: Wolfgang Walther <walther@technowledgy.de >
2022-01-07 20:26:33 +01:00
Wolfgang Walther and Wolfgang Walther
d97bf3b864
refactor: Move each Wai Middleware to a separate file
2022-01-07 20:26:33 +01:00
Steve Chavez and GitHub
65f27653dc
cov: empty coverage overlay ( #2119 )
...
The overlay depended on the version number, which caused errors when upgrading.
Also update cabal description.
2022-01-07 13:06:03 -05:00
steve-chavez
a134d8a493
pre-release: Bump to 9.0.0.20220107
...
Previous pre-release had a wrong date
2022-01-07 11:06:03 -05:00
steve-chavez
3ded567f6d
pre-release: Bump to 9.0.0.20210107
2022-01-07 11:01:59 -05:00
Wolfgang Walther and Wolfgang Walther
8b63d928ae
test: Reorganize test/ folder into one subdirectory for each test type
2022-01-07 13:10:36 +01:00
Wolfgang Walther and Wolfgang Walther
8060fe3559
Remove unused dependencies from postgrest.cabal
2022-01-07 12:07:48 +01:00
Wolfgang Walther and Wolfgang Walther
df5d9400fe
test: Make io tests use admin/ready to wait for startup
2022-01-07 12:07:09 +01:00