Laurence Isla
bf90f95443
fix: logging the Haskell type instead of the listener error message directly
...
Previously: Just "connection error..."
Now: connection error...
2025-08-22 19:27:38 +00:00
Taimoor Zaeem and Steve Chavez
dfe5ba3863
fix(admin): metrics endpoint not responding with Content-Type header
...
The prometheus metrics text format requires `Content-Type` header
for correct scraping which fails otherwise. Closes #4271 .
Signed-off-by: Taimoor Zaeem <taimoorzaeem@gmail.com >
2025-08-20 16:13:55 -05:00
renovate[bot] and Wolfgang Walther
7657607ca5
chore(deps): update codecov/codecov-action action to v5.5.0
2025-08-20 18:11:02 +00:00
steve-chavez
f01d5bfeb3
docs: reorder computed relationships for clarity
...
Ensure the function inlining is mentioned first
2025-08-19 12:24:47 -05:00
Taimoor Zaeem and Steve Chavez
0ae1cdfc66
refactor(query): make fromJsonBodyF function more readable
...
The `fromJsonBodyF` function was very unreadable and making
changes were difficult. This commit improves the readability
for easier future changes and improvements.
Signed-off-by: Taimoor Zaeem <taimoorzaeem@gmail.com >
2025-08-19 11:58:19 -05:00
steve-chavez
1dce4a9321
Revert "fix: geojson invalid query on unavailable PostGIS"
...
This reverts commit 0f1ca8faac .
Reverting for now as it adds one more query to the schema cache and
there's no clear way forward on how to integrate the fix with the
current schema cache queries.
See discussion on
https://github.com/PostgREST/postgrest/pull/4246#pullrequestreview-3093174224 .
2025-08-13 14:54:53 -05:00
renovate[bot] and Wolfgang Walther
c9272b0088
chore(deps): update ubuntu:noble docker digest to 7c06e91
2025-08-13 07:19:30 +00:00
renovate[bot] and Wolfgang Walther
1cd8934bb7
chore(deps): update actions/checkout action to v5
2025-08-11 15:15:57 +00:00
renovate[bot] and Wolfgang Walther
b915968f30
chore(deps): update actions/cache action to v4.2.4
2025-08-07 14:24:41 +00:00
steve-chavez
0f1ca8faac
fix: geojson invalid query on unavailable PostGIS
...
Closes https://github.com/PostgREST/postgrest/issues/4245 .
It adds a query on schema cache construction, but doesn't add a new
attribute to the SchemaCache type. We only need the information to be
passed to the `initialMediaHandlers` function to build the builtin media
handlers.
2025-08-06 10:20:01 -05:00
renovate[bot] and Wolfgang Walther
7870add603
chore(deps): update actions/download-artifact action to v5
2025-08-06 07:45:01 +00:00
renovate[bot] and Wolfgang Walther
a2da255931
chore(deps): update docker/login-action action to v3.5.0
2025-08-04 17:05:52 +00:00
renovate[bot] and Wolfgang Walther
26bc13b57f
chore(deps): update haskell-actions/setup action to v2.8.1
2025-08-03 16:27:13 +00:00
steve-chavez
fa09e4af0d
docs: add redirects for broken hashes on auth.rst
2025-07-30 05:28:00 -05:00
steve-chavez
fd127f449c
docs: correct order of jwt claims sections
2025-07-30 05:14:43 -05:00
steve-chavez
ad25479185
chore: put bounded jwt cache as addition
2025-07-30 04:53:22 -05:00
Taimoor Zaeem and Steve Chavez
6a37e1c37b
chore: correct recent change log entry
...
Signed-off-by: Taimoor Zaeem <taimoorzaeem@gmail.com >
2025-07-30 02:46:01 -05:00
Michal Kleczek and GitHub
77ff11de95
feat: JWT cache implementation based on sieve algorithm ( #4084 )
...
Changes:
1. Refactoring and some cleanup of JWT handling code:
* Instead of caching AuthResult cache decoded claims (which signature was verified). Validating claims and determining role is done after cache lookup
* Cleaned up API so that usage of it is simplified: lookupJwtCache cache key >>= parseClaims configJwtAud time
* Handling of JwtCacheState initialization and updates of configuration is encapsulated in Auth.JwtCache module
2. Generic high performance (hopefully) scalable, dynamically resizeable cache implementation based on stm, stm-hamt and sieve algorithm. It also integrates with PostgREST measurements infrastructure providing usage stats (ie. hit ratio, evictions count)
2025-07-29 18:51:41 -05:00
steve-chavez
ac155a9391
docs: clarify auth page
...
Reorganizes the auth page and clarifies some links
2025-07-28 15:43:38 -05:00
Taimoor Zaeem and Steve Chavez
96571aa0f4
refactor: move request body to a Payload.hs module
2025-07-26 08:50:56 +02:00
steve-chavez
aa58e37f03
refactor: add PreQuery module
...
Small step towards solving #3934 .
Adds a module that builds SQL snippets for the transaction variables
and the pre-request function.
2025-07-23 10:06:32 +02:00
Taimoor Zaeem and GitHub
5e0da40ac4
chore: update README.md and CONTRIBUTING.md ( #4218 )
...
- Moved the CONTRIBUTING.md file to project root.
- Fixed broken nightly release link.
- Update README.md
2025-07-22 13:50:00 +00:00
renovate[bot] and Wolfgang Walther
2b065553a0
chore(config): migrate config .github/renovate.json
2025-07-21 20:04:54 +00:00
renovate[bot] and Wolfgang Walther
cd04360a43
chore(deps): update ubuntu:noble docker digest to a08e551
2025-07-19 12:16:42 +00:00
Taimoor Zaeem and Wolfgang Walther
96bbbe35e1
test: adjust jwt claims error test to avoid failure
...
The JWT claims IO test fails too often. This breaks our
workflows. This commit adjusts the edge cases in test to
prevent flakiness.
2025-07-19 12:16:29 +00:00
steve-chavez
161f37f1f1
test: remove jwt decoding from mixed loadtest
...
We now have dedicated JWT loadtests, so it's no longer necessary
to conflate JWT here.
2025-07-18 07:25:53 -05:00
Wolfgang Walther and Steve Chavez
25e56f32e4
nix: avoid updating cabal on every run
...
Resolves #4206
2025-07-17 11:47:44 -05:00
Laurence Isla
66caaffbe3
chore: update sponsor
2025-07-16 19:54:53 -05:00
steve-chavez
2d4967c4b4
nix: reduce loadtest result verbosity
2025-07-16 17:38:33 -05:00
Wolfgang Walther
d013a1fd77
docs: adjust some redirects
...
Those were reported in the weekly linkcheck.
2025-07-16 11:03:50 +02:00
renovate[bot] and Wolfgang Walther
b91e241b9a
chore(deps): update ubuntu:noble docker digest to c4570d2
2025-07-16 09:00:23 +00:00
renovate[bot] and Wolfgang Walther
84564b9e3e
chore(deps): update ubuntu:noble docker digest to a328b84
2025-07-16 08:51:25 +00:00
Taimoor Zaeem and Steve Chavez
d4caa0f5f5
fix: empty spread embeddings return unexpected SQL error
...
Fixes the SQL error from postgres when an empty spread embeddings
like `...table()` is requested.
2025-07-13 14:16:27 -05:00
Wolfgang Walther
d31c873cd5
chore(changelog): add removal of PostgreSQL 12
2025-07-11 19:21:40 +02:00
Wolfgang Walther
f32a8861c5
nix: add system argument to postgrest-push-cachix
...
This allows building aarch64-darwin derivations on a remote builder and
then pushing them to cachix before triggering CI.
2025-07-11 15:53:06 +00:00
Wolfgang Walther
18932b7a4a
nix: use upstream GHC for static build
...
This way we benefit from NixOS' binary cache to deliver GHC for us and
don't need to cache it ourselves.
This will become relevant once we do that for more platforms.
2025-07-11 15:53:06 +00:00
Wolfgang Walther
067c181bb8
nix: remove libpq overlay
...
We have fixed the static build of PostgreSQL upstream, so we don't need
our separate overlay anymore. One more step towards building a static
executable on other platforms.
2025-07-11 15:53:06 +00:00
Wolfgang Walther
83c533e557
nix: refactor derivation tests for static package
...
Instead of rolling our own, we can use some tooling from nix / nixpkgs.
We drop the "statically linked" check, because our goal is to compile
mostly-static executables to darwin, too. However, those will never be
fully static, because they always link to the platform's libc.
2025-07-11 15:53:06 +00:00
Wolfgang Walther
55eafdf352
chore(deps): update nixpkgs to 25.05
2025-07-11 15:53:06 +00:00
Wolfgang Walther
70f449654f
nix: fix some darwin sandbox issues
2025-07-11 15:53:06 +00:00
Wolfgang Walther
bd61cf9b60
nix: re-introduce postgrest-nixpkgs-upgrade
...
Resolves #4161
2025-07-11 15:53:06 +00:00
Wolfgang Walther
6bf2cb09a6
remove: drop support for PostgreSQL 12
...
This has been EOL since November and has been dropped from nixpkgs.
2025-07-11 15:53:06 +00:00
renovate[bot] and Wolfgang Walther
fbb243ee0c
chore(deps): update docker/setup-buildx-action action to v3.11.1
2025-07-08 20:06:24 +00:00
renovate[bot] and Wolfgang Walther
7ce2b3c4e9
chore(deps): update ubuntu:noble docker digest to 440dcf6
2025-07-08 20:05:31 +00:00
Wolfgang Walther
7e2f06d217
chore: bump some hackage dependencies
...
All of these were tested via stackage 23.27 which required allow-newer
for them.
2025-07-08 20:01:40 +00:00
Wolfgang Walther
cedb8d9cd9
chore: fix stack's nix integration
...
The pkgconfig package has been renamed to pkg-config in... February
2019. So this has not been working for quite some time.
2025-07-08 20:28:47 +02:00
Wolfgang Walther
39e2a154f0
chore: remove left-over comment for Ubuntu (arm)
...
We have been building with GHC 9.6 on that platform for a while.
2025-07-08 17:55:24 +00:00
Wolfgang Walther
a4ab4ce2f3
chore: build with GHC 9.8.4 for cabal
2025-07-08 17:55:24 +00:00
Wolfgang Walther
cfabbe67b8
chore: update hackage index-state
2025-07-08 17:55:24 +00:00
Wolfgang Walther
a91a222613
chore: stackage 22.41 -> 22.44
...
Updates stackage to 22.44, which is also supported on FreeBSD, where GHC
9.6.7 is available again.
2025-07-08 17:55:24 +00:00