renovate[bot] and Wolfgang Walther
a17a73e17b
chore(deps): update codecov/codecov-action action to v5.4.2
2025-04-20 09:15:26 +00:00
renovate[bot] and Wolfgang Walther
cbc2bcfcff
chore(deps): update ubuntu:noble docker digest to 1e622c5
2025-04-20 09:15:09 +00:00
steve-chavez
c732591f37
chore: add changelog for 12.2.10
2025-04-18 21:30:22 -05:00
steve-chavez
b740fcb1ff
changelog: add missing entry jwt cache purge fix
2025-04-18 20:46:25 -05:00
Michal Kleczek and GitHub
4d8502371d
fix: purge JWT cache asynchronously in a separate thread
...
Otherwise performance was reduced unnecessarily.
2025-04-18 17:50:32 -05:00
steve-chavez
58b5dff188
Revert "nix: add loadtest with unique JWTs"
2025-04-18 17:43:10 -05:00
steve-chavez
51743016fd
ci: github report for jwt loadtest
2025-04-18 13:05:14 -05:00
steve-chavez
9c3816218a
ci: adjust upper bound of PATCH memory test
2025-04-17 23:11:33 -05:00
steve-chavez
608f7ca45a
nix: add loadtest with unique JWTs
...
This loadtests the jwt decoding logic. For this it adds an optional
`-k`(kind) parameter to `postgrest-loadtest` and
`postgrest-loadtest-against`.
Old kind (default):
```
postgrest-loadtest -k mixed
postgrest-loadtest-against -k mixed
```
New kind:
```
postgrest-loadtest -k jwt
postgrest-loadtest-against -k jwt
```
Internally it uses a dynamically generated targets file using python
which looks like:
```
GET http://postgrest/authors_only
Authorization: Bearer <jwt>
GET http://postgrest/authors_only
Authorization: Bearer <another-jwt>
...
```
Then this is used to run vegeta with the `-lazy` option.
2025-04-17 23:11:33 -05:00
Wolfgang Walther
a37ec1e1a5
chore: add changelog for 12.2.9
2025-04-16 20:41:04 +02:00
Taimoor Zaeem and GitHub
bc5ec43300
fix: invalid JWTs after jwt-secret is changed in a config reload ( #4015 )
2025-04-16 09:40:36 -05:00
Taimoor Zaeem and GitHub
feb5b7d494
fix: regression that replaces an unknown media type with */* ( #4013 )
2025-04-14 09:57:54 -05:00
Taimoor Zaeem and GitHub
a1009d1bae
refactor: separate SchemaCacheError from ApiRequestError ( #4010 )
2025-04-13 10:34:17 -05:00
Taimoor Zaeem and GitHub
a6e81a5241
fix: parsing of the for parameter of plan media type ( #4005 )
2025-04-12 06:10:25 -05:00
Thilo Hohlt and GitHub
6b4648d2e4
docs: add archtika to example apps section on ecosystem page ( #4007 )
2025-04-10 14:25:31 -05:00
Taimoor Zaeem and GitHub
61a3c7b9e8
docs: add note that ordering of columns is not enforced ( #3999 )
2025-04-09 16:40:52 -05:00
Taimoor Zaeem and GitHub
f7f87b42ca
feat: add Proxy-Status header for better error response
2025-04-05 13:43:39 -05:00
renovate[bot] and Wolfgang Walther
2811d6f997
chore(deps): update peter-evans/dockerhub-description action to v4.0.2
2025-04-03 12:09:22 +00:00
Taimoor Zaeem and Steve Chavez
2e3dc2d41e
refactor: create error body with ErrorBody typeclass
...
The old error design didn't allow us to reuse error `code`,
`message` etc. With this refactor, these parts of the error body
can be reused for other potential features.
This also removes the `ErrorCode` type and replace the types
with Text codes.
2025-04-02 15:29:39 -05:00
steve-chavez
d89e7a2173
docs: redirect from broken #bulk-insert-default
2025-04-02 13:05:12 -05:00
Taimoor Zaeem and Steve Chavez
c7da7fab3a
docs: mention that updates also supports specifying columns and missing pref
2025-04-02 12:59:18 -05:00
Taimoor Zaeem and Steve Chavez
ddd7d98652
docs: explain missing preference header
2025-04-02 12:59:18 -05:00
renovate[bot] and Wolfgang Walther
20f1fdd35c
chore(deps): update peter-evans/dockerhub-description action to v4.0.1
2025-04-01 19:50:34 +00:00
Wolfgang Walther
95e36fdad9
nix: avoid rebuilding memory tests when entering nix-shell
...
The memory tests are now run in the same way as the regular tests.
2025-03-30 18:57:39 +00:00
Wolfgang Walther
001835eddc
nix: reduce number of rebuilds for local development slightly
2025-03-30 18:57:39 +00:00
Taimoor Zaeem and Steve Chavez
3c0baecec5
refactor: add pg error and custom error to ErrorCode
...
Our current ErrorCode type wasn't giving us a full picture
of how many different types of errors we are handling. This
PR makes this explicit by including the error code type for
all types of errors.
2025-03-28 11:27:59 -05:00
Wolfgang Walther
1b57774bdf
nix: make nix expressions forward-compatible with newer nixpkgs
...
When consuming PostgREST via flake, nixpkgs can be pinned to a newer
version, to which we might not be compatible, yet.
2025-03-28 09:22:34 +00:00
Wolfgang Walther
149be6bc33
nix: expose nixpkgs input on flake
...
This also moves the pin for nixpkgs into flake.lock instead of our
custom file. Even for the classic interface via default.nix, the pin
will be loaded from flake.lock, thus everything stays in-sync.
2025-03-28 09:22:34 +00:00
Wolfgang Walther
144b0c46ca
nix: add basic flake.nix
...
This just exposes the PostgREST package, not more.
The goal is to avoid duplication, so we're re-using only exports from
default.nix.
Resolves #3026
Supersedes #3105
2025-03-28 09:22:34 +00:00
Wolfgang Walther
139acb4251
chore: add .editorconfig file
2025-03-28 09:22:34 +00:00
renovate[bot] and Wolfgang Walther
fc01a72f4e
chore(deps): update cachix/cachix-action action to v16
2025-03-26 18:02:59 +00:00
Taimoor Zaeem and Steve Chavez
f91f47ff57
docs: mention log-level setting in the logs section
2025-03-26 11:25:57 -05:00
Wolfgang Walther
aeb246b673
docs: Remove broken link
2025-03-26 17:00:11 +01:00
renovate[bot] and Wolfgang Walther
02590f2e55
chore(deps): update docker/setup-buildx-action action to v3.10.0
2025-03-25 18:55:39 +00:00
renovate[bot] and Wolfgang Walther
ab2d9945fa
chore(deps): update docker/login-action action to v3.4.0
2025-03-25 18:20:14 +00:00
renovate[bot] and Wolfgang Walther
67573f4f10
chore(deps): update codecov/codecov-action action to v5.4.0
2025-03-25 17:50:47 +00:00
renovate[bot] and Wolfgang Walther
d284e9acea
chore(deps): update actions/download-artifact action to v4.2.1
2025-03-24 16:27:45 +00:00
renovate[bot] and Wolfgang Walther
62150aaf53
chore(deps): update nixbuild/nix-quick-install-action action to v30
2025-03-24 16:24:24 +00:00
renovate[bot] and Wolfgang Walther
48f4b6d77d
chore(deps): update haskell-actions/setup action to v2.7.10
2025-03-24 16:13:17 +00:00
Laurence Isla and GitHub
0b618d0bef
feat: allow spreading one-to-many and many-to-many embedded resources
...
* Note: Aggregates are not implemented
2025-03-24 14:45:56 +00:00
renovate[bot] and Wolfgang Walther
09ba7c0d28
chore(deps): update actions/upload-artifact action to v4.6.2
2025-03-24 11:36:06 +00:00
renovate[bot] and Wolfgang Walther
1887c9b5b2
chore(deps): update actions/cache action to v4.2.3
2025-03-24 08:34:34 +00:00
Wolfgang Walther
2b91df8004
nix: Disable building profiled or dynamic libraries by default
...
We never need dynamic haskell libraries, because even the dynamic builds
only dynamically link non-haskell dependencies, but always link haskell
dependencies statically.
Profiled libraries are only required when running the memory test, so
explicitly enable them for the profiled package.
This also means, that we don't need to hide the memory test behind a
feature flag anymore. The reason always was assumed to be the big number
of rebuilds required for it. I assume ever since we moved off of
static-haskell-nix and back to nixpkgs-based builds, we have been
building profiled libraries for all our dependencies anway.
2025-03-22 19:37:03 +00:00
Wolfgang Walther
57d11c7914
chore: Update nix/README's command list
...
We had added the release tools by default a while ago.. and by now have
many more tools available.
2025-03-22 19:37:03 +00:00
Taimoor Zaeem and GitHub
fdc26d52fc
fix: empty error messages for disabled openapi and /invalid/nested/paths
2025-03-21 11:51:40 -05:00
Taimoor Zaeem and Steve Chavez
a1c0a8ce6d
docs: add missing max-affected violation error
2025-03-21 08:40:52 -05:00
Taimoor Zaeem and Steve Chavez
fc35d6d0f8
fix: Fix ordering with mutation queries
2025-03-17 14:13:34 +01:00
Wolfgang Walther
5ff51de36f
docs: remove broken link
2025-03-14 23:21:26 +01:00
Taimoor Zaeem and Steve Chavez
dd29e74150
test: fix config value in io test
2025-03-13 10:19:29 +01:00
Taimoor Zaeem and Steve Chavez
e3041fc4a0
test: correct jwt parse time test
2025-03-13 10:19:29 +01:00