renovate[bot] and Wolfgang Walther
893e0061a3
chore(deps): update actions/checkout digest to 71cf226
2025-11-03 20:47:50 +00:00
Taimoor Zaeem and Steve Chavez
58efc2680e
fix: server-host !6 incorrectly binds to IPv4 address
...
Updates streaming-commons to version 0.2.3.1. This resolves #3202 .
Signed-off-by: Taimoor Zaeem <taimoorzaeem@gmail.com >
2025-11-02 12:24:14 -05:00
Taimoor Zaeem and Wolfgang Walther
8180905890
chore(changelog): fix typo in changelog entry
...
Signed-off-by: Taimoor Zaeem <taimoorzaeem@gmail.com >
2025-11-01 09:00:31 +00:00
Taimoor Zaeem and Steve Chavez
db2be093b5
refactor: move dumpQi to Config.hs and clarify quoteQi
...
The `dumpQi` function is only used in the `Config.hs` module, so
it is moved there. This also adds a doctest for `quoteQi` and
clarifies its usage.
Signed-off-by: Taimoor Zaeem <taimoorzaeem@gmail.com >
2025-10-30 12:26:29 -05:00
Taimoor Zaeem and Steve Chavez
a688878236
fix: db-pre-config function failing with pg reserved words
...
When db-pre-config is accidentally set to a pg reserved word
like "true", it fails with a confusing error. The function
names should be properly quoted to avoid such errors. This commit
resolves this by quoting the pre-config function name.
Signed-off-by: Taimoor Zaeem <taimoorzaeem@gmail.com >
2025-10-29 16:54:24 -05:00
Michał Kłeczek and Steve Chavez
75d4131aa6
chore: Add commit structuring guidelines to CONTRIBUTING.md
2025-10-28 10:02:56 -05:00
Taimoor Zaeem and Steve Chavez
66f84c5903
refactor: move escapeIdent function to Identifiers.hs
...
Moves the functions `escapeIdent` and `trimNullChars` to
SchemaCache/Identifiers.hs module.
Signed-off-by: Taimoor Zaeem <taimoorzaeem@gmail.com >
2025-10-28 09:47:37 -05:00
Taimoor Zaeem and Steve Chavez
5d9b169380
refactor: sort exports of Identifiers.hs and SqlFragments.hs
...
Signed-off-by: Taimoor Zaeem <taimoorzaeem@gmail.com >
2025-10-28 09:47:37 -05:00
Taimoor Zaeem and Steve Chavez
eb908c696f
chore(changelog): update versioning scheme description
...
The changelog description mentioned that we follow semantic
versioning but from now on we don't. Hence updated the description
to reflect new versioning policy.
Signed-off-by: Taimoor Zaeem <taimoorzaeem@gmail.com >
2025-10-27 10:00:40 -05:00
renovate[bot] and Wolfgang Walther
21edcc86ce
chore(deps): update github artifact actions
2025-10-25 08:23:40 +00:00
Wolfgang Walther
6f46233ad7
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:20:32 +02:00
steve-chavez
018803473c
bump version to 15
2025-10-24 17:39:04 -05: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