Taimoor Zaeem and Steve Chavez
6150d53592
refactor: sort exports of Identifiers.hs and SqlFragments.hs
...
Signed-off-by: Taimoor Zaeem <taimoorzaeem@gmail.com >
(cherry picked from commit 5d9b169380 )
2025-10-30 12:24:49 -05:00
Wolfgang Walther
d245e07df5
ci: fix tag job with new release workflow
...
A single component version is the development version, everything with
more components is not. Thus, we only need to check for a single dot.
2025-10-25 10:21:51 +02:00
renovate[bot] and Wolfgang Walther
e913efb8cb
chore(deps): update all dependencies
2025-10-25 08:12:30 +00:00
steve-chavez
23750e644f
bump version to 14.0
v14.0
2025-10-24 17:39:04 -05:00
steve-chavez
4dff3550b3
docs: new two-part versioning in releases section
...
Also add entry to the changelog
2025-10-24 17:23:57 -05:00
steve-chavez
3085cc81ec
docs: link external auth on architecture page
...
Partly addresses https://github.com/PostgREST/postgrest/issues/4110
2025-10-24 14:56:24 -05:00
steve-chavez
4ea983163a
chore: add changelog for v13.0.8
2025-10-24 14:12:02 -05:00
steve-chavez
1d2350188c
chore(changelog): put additions at the top
2025-10-24 13:19:21 -05:00
steve-chavez
b20d369176
docs: elaborate on Docker tag
...
Also link to installation from README.md
Closes https://github.com/PostgREST/postgrest/issues/4385 .
2025-10-23 18:57:41 -05:00
steve-chavez
7968b918ec
nix: fix postgrest-loadtest command
...
Uses python for sending SIGNIT cross-platform
2025-10-23 16:05:15 -05:00
renovate[bot] and Wolfgang Walther
82981a1a29
chore(deps): update actions/checkout digest to ff7abcd
2025-10-23 10:57:37 +00:00
Wolfgang Walther
41def2f0eb
ci: fix vars reference
2025-10-23 12:56:28 +02:00
Taimoor Zaeem and Wolfgang Walther
6aa5a09c18
ci: automate backports using backport action
...
Creates a workflow using https://github.com/korthout/backport-action .
This allows creating a backport PR by labeling the merged PR with a
`backport <version>` label.
Signed-off-by: Taimoor Zaeem <taimoorzaeem@gmail.com >
2025-10-23 10:54:03 +00:00
Michał Kłeczek and Laurence Isla
66161104bf
refactor: Remove redundant VANull constructor in Auth.JWT module
2025-10-22 00:40:30 +00:00
Michał Kłeczek and Laurence Isla
5a4e2e4dec
refactor: Encapsulate aud config
...
This change is an initial step to change JWT aud configuration to regular expression.
Exporting function
audMatchesCfg :: AppConfig -> Text -> Bool
from Config module allows changing the way how JWT aud is configured to be isolated and not affect code in Auth.JWT
2025-10-22 00:40:30 +00:00
steve-chavez
0f7ac1bc39
test: schema cache load max duration
...
Test to ensure no regression happens after https://github.com/PostgREST/postgrest/pull/4396
2025-10-21 14:10:14 -05:00
Laurence Isla
1ada6e6f84
chore(changelog): add missing devs from changelog entries
2025-10-21 16:16:42 +00:00
Michal Kleczek and GitHub
be9a0ab467
perf: Index various lists in SchemaCache to change complexity from O(n*n) to O(n) ( #4396 )
2025-10-20 21:17:50 -05:00
Laurence Isla
ea5db2a09a
fix: reloading the Schema Cache unnecessarily on a PGRST002 error
...
When 503 errors happen if the Schema Cache is empty,
it should not retrigger the connection worker since
there's no Schema Cache loaded yet.
2025-10-20 18:42:56 +00:00
Laurence Isla
c88ddfe18d
fix: not logging the JSON message on a PGRST002 error
...
It happens right after the configuration is loaded and before
the schema cache is queried.
2025-10-20 18:42:56 +00:00
Andrei Dziahel and Steve Chavez
b7ad217cd3
fix: unbreaks postgrest-profiled-run
...
* replaces v2-build -> v2-run (which should be v2-exec)
with one-shot v2-run
* fixes empty postgrest.prof file by sending SIGINT to the profiled
postgrest process to trigger writing it explicitly
2025-10-17 15:43:41 -05:00
Michał Kłeczek and Steve Chavez
c08b87749b
test: Separated query and loading internal sleep configs
...
To make schema cache loading wait tests robust it is necessary to provide three separate internal config variables:
* "internal-schema-cache-query-sleep" - introduces delay in schema queries execution
* "internal-schema-cache-load-sleep" - introduces delay between schema queries execution and processing their results
* "internal-schema-cache-relationship-load-sleep" - introduces delay in processing relationship query results
Thanks to these changes it is now possible to test various schema loading scenarios with the right granularity robustly (eg. make sure requests wait for schema loading but not for relationship loading).
2025-10-17 13:42:35 -05:00
Taimoor Zaeem and Steve Chavez
07681d1b5b
fix: loading utf-8 config files with ascii locale set
...
Updates configurator-pg to version 0.2.11. This resolves #4386 .
Signed-off-by: Taimoor Zaeem <taimoorzaeem@gmail.com >
2025-10-14 09:05:34 -05:00
Taimoor Zaeem and Wolfgang Walther
7ba5e32bcc
chore: update pull request template according to commitlint
...
Updates pull request template to avoid inconsistencies.
Signed-off-by: Taimoor Zaeem <taimoorzaeem@gmail.com >
2025-10-14 09:28:53 +00:00
renovate[bot] and Wolfgang Walther
3885c643ec
chore(deps): update ubuntu:noble docker digest to 66460d5
2025-10-13 10:21:47 +00:00
Taimoor Zaeem and Steve Chavez
66a8d04610
nix: setup linter to lint python files
...
This sets up the `ruff` linter for python code linting.
Signed-off-by: Taimoor Zaeem <taimoorzaeem@gmail.com >
2025-10-11 23:38:00 -05:00
Wolfgang Walther and Steve Chavez
8e35d543bd
nix: adjust release tool to new versioning scheme
...
Resolves #4166
2025-10-10 18:19:33 -05:00
Jens Troeger and Steve Chavez
041d4f8ed2
test(pytest): remove unused variables and clean other minor lint to please ruff
2025-10-10 13:23:05 -05:00
renovate[bot] and Wolfgang Walther
4d764500b1
chore(deps): update ubuntu:noble docker digest to 59a458b
2025-10-10 07:33:58 +00:00
Taimoor Zaeem and Steve Chavez
7b85333b88
chore: correct value of log-query in example config file
...
Signed-off-by: Taimoor Zaeem <taimoorzaeem@gmail.com >
2025-10-09 12:17:07 -05:00
Taimoor Zaeem and Steve Chavez
af6edc575d
refactor: move example config file to Config.hs
...
We usually miss adding or changing the example config
file when we do changes to our configurations. Moving
the example config file from CLI module to Config module
would make it less easy to miss doing the associated
changes to the example config file.
Signed-off-by: Taimoor Zaeem <taimoorzaeem@gmail.com >
2025-10-09 12:17:07 -05:00
Jens Troeger and Wolfgang Walther
4ce859bf46
test(pytest): remove star imports to please ruff linter
2025-10-09 10:10:40 +00:00
Wolfgang Walther
32eb6ebf19
nix: revert to build shared libs in development mode
...
This was disabled to reduce rebuilds for local development slightly.
However it caused random other errors, so reverting.
2025-10-09 11:59:49 +02:00
Wolfgang Walther
e4bdc3bc4c
chore: fix repo warning on build
2025-10-09 11:57:16 +02:00
c1d9728dc8
test(pytest): move pytest fixtures to conftest.py
...
There are a few benefits for this:
- All fixtures in one module, so single source of truth.
- The fixtures are automatically imported and injected by pytest
so no explicit imports needed for these.
- Linters won't complain about redefinition of outer scope objects.
Co-authored-by: Jens Troeger <jens.troeger@light-speed.de >
Signed-off-by: Taimoor Zaeem <taimoorzaeem@gmail.com >
2025-10-08 13:54:32 -05:00
steve-chavez and Wolfgang Walther
322216c810
chore: remove split-sections
...
It's a problem for macos on x86_64 and it's no longer needed as mentioned on
https://github.com/PostgREST/postgrest/discussions/4384#discussioncomment-14614110
2025-10-08 06:29:12 +00:00
Laurence Isla
6d8a95f607
chore: fix broken logo URL in Docker Hub README
2025-10-08 02:40:58 +00:00
renovate[bot] and Wolfgang Walther
ea2c64da54
chore(deps): update ubuntu:noble docker digest to 728785b
2025-10-05 08:36:50 +00:00
steve-chavez
09b088d8ff
change: change log-query string value to bool
...
BREAKING CHANGE
As discussed on https://github.com/PostgREST/postgrest/issues/3934#issuecomment-3362806777 ,
this changes log-query to use a bool value, this:
- Simplifies config for users.
- Reduces effort in testing the different combinations.
Closes #3934
2025-10-03 12:17:12 -05:00
steve-chavez
e4458abd33
chore(changelog): adjust jwt sieve change
2025-10-03 12:17:12 -05:00
renovate[bot] and Wolfgang Walther
8abc1559c7
chore(deps): update peter-evans/dockerhub-description action to v5
2025-10-02 10:03:53 +00:00
renovate[bot] and Wolfgang Walther
b6ac0279a5
chore(deps): update ubuntu:noble docker digest to fdb6c9c
2025-10-02 10:03:22 +00:00
renovate[bot] and Wolfgang Walther
36ac916c72
chore(deps): update dependency macos to v15
2025-10-02 09:25:21 +00:00
renovate[bot] and Wolfgang Walther
253453d8a6
chore(deps): update docker/login-action action to v3.6.0
2025-10-02 09:25:07 +00:00
Taimoor Zaeem and Steve Chavez
a9a1763328
add: --ready flag for postgrest healthcheck
...
The `--ready` flag is a wrapper around the admin server
`/ready` request. This is done through using an http client
library in postgrest.
Signed-off-by: Taimoor Zaeem <taimoorzaeem@gmail.com >
2025-09-28 18:01:10 -05:00
Taimoor Zaeem and Steve Chavez
ab2cd766c2
docs: document config file parameter on CLI page
...
The CLI page had the config file parameter missing. This commit
adds that. Also adds the CLI usage output which shows all
available options. Closes #4300 .
Signed-off-by: Taimoor Zaeem <taimoorzaeem@gmail.com >
2025-09-26 19:26:47 -05:00
Wolfgang Walther
0478e6bbfe
ci: allow manually running linkcheck workflow
2025-09-25 10:28:37 +02:00
Wolfgang Walther
f2d13c242e
chore: ignore failing linkcheck
2025-09-25 10:27:13 +02:00
renovate[bot] and Wolfgang Walther
bc01687d7c
chore(deps): update actions/cache action to v4.3.0
2025-09-25 08:22:10 +00:00
renovate[bot] and Wolfgang Walther
f894901ad1
chore(deps): update nixbuild/nix-quick-install-action action to v34
2025-09-25 08:18:28 +00:00