reshke
ed8ca61c0a
Optimize tx pool prepared statement feature. Lazy allocate backend prep stmt ( #581 )
2024-02-28 17:18:11 +05:00
Ovchinnikov Andrew
dc2122ac90
Mdb iamproxy fix core dump ( #578 )
...
* make some functions from mdb_iamproxy.c static
* fix new line symbol missing
* make apply_fmt
* fix warnings during building
* make apply_fmt
* fix issues
* fixes of unclosed io object; fix memory leaks
* make apply_fmt
---------
Co-authored-by: Andrey Ovchinnikov <ch1nn1y@yandex-team.ru>
2024-02-21 11:49:48 +05:00
reshke
4e26ef5941
fix od_address_range_copy ( #577 )
2024-02-19 14:47:11 +05:00
NikitaUnisikhin
f60df91a54
Add addr pool in rule ( #550 )
2024-02-14 14:57:20 +03:00
Ovchinnikov Andrew
7c6b8f42c7
Odyssey fixes ch1nn1y (fix some coverity issues) ( #574 )
...
Assorted fixes
2024-02-14 10:48:45 +03:00
Ilya Shipitsin
b80e5c13ad
sources/hashmap.c: fix memory leak ( #571 )
...
found by cppcheck
2024-02-07 16:19:00 +05:00
Ovchinnikov Andrew
b1d611019f
fix warnings during building ( #567 )
...
* make some functions from mdb_iamproxy.c static
* fix new line symbol missing
* make apply_fmt
* fix warnings during building
* make apply_fmt
* fix issues
---------
Co-authored-by: Andrey Ovchinnikov <ch1nn1y@yandex-team.ru>
2024-02-07 15:43:13 +05:00
Ilya Shipitsin
91e28d1769
sources/storage.c" fix memory leak ( #570 )
2024-02-07 00:41:32 +05:00
Ilya Shipitsin
811cf3d4e0
cleanup: remove unused travis-ci badge ( #572 )
2024-02-07 00:41:22 +05:00
Ovchinnikov Andrew
e1997930a1
mdb_iamproxy default socket_path rework (+ include bug fix with socket_path) ( #569 )
...
* fix iamproxy bug
* dafault socket path rework
---------
Co-authored-by: Andrey Ovchinnikov <ch1nn1y@yandex-team.ru>
2024-02-06 19:03:04 +05:00
Ilya Shipitsin
1c72f0d75e
sources/config.c: fix memory leak ( #557 )
...
found by cppcheck
2024-02-06 15:39:02 +05:00
Ilya Shipitsin
72c54698c0
sources/counter.c: fix memory leak ( #558 )
...
found by cppcheck
2024-02-06 15:38:45 +05:00
Ovchinnikov Andrew
4b9793b6e1
mdb_iamproxy fix ( #566 )
...
* make some functions from mdb_iamproxy.c static
* fix new line symbol missing
* make apply_fmt
---------
Co-authored-by: Andrey Ovchinnikov <ch1nn1y@yandex-team.ru>
2024-02-05 18:00:23 +05:00
Ovchinnikov Andrew
0e44d13290
mdb iamproxy auth support ( #561 )
2024-02-05 15:25:50 +05:00
reshke
ccd4dbf6e3
Close backend connections for logical/phys replication on detach ( #563 )
...
* Close backend connections for logical/phys replication on detach
* fmt
2024-01-31 16:35:49 +05:00
NikitaUnisikhin
806aebdd36
Fix bug during copy when in the config the value of pool_reserve_prepared_statement is equal to yes ( #562 )
...
* fixed
* fmt
* fix
2024-01-28 21:25:18 +05:00
Ilya Shipitsin
999672b466
sources/auth_query.c: handle malloc failure ( #555 )
2024-01-19 14:50:11 +05:00
Ilya Shipitsin
360f52d487
sources/scram.c: handle malloc failure ( #553 )
2024-01-13 00:04:55 +05:00
Ilya Shipitsin
20b4981550
CI: make coverity scan run on schedule ( #501 )
2024-01-08 08:33:03 +05:00
Andrey Borodin
cbdd76c522
Pool wait test ( #548 )
...
* Add pool wait test
* Fix
* Cleanup test conf
* Harder consts
2023-11-23 14:49:18 +04:00
reshke
b2485694da
Auth fix ( #547 )
...
* Fix caching password for auth query
* Logging fix
2023-11-23 10:20:50 +05:00
NikitaUnisikhin
7420b6a7a4
test fix ( #546 )
...
* lagpolling fixed, there were problems with odySignalTestSet
* done
* fix testCount in cores test
2023-11-22 00:08:43 +05:00
NikitaUnisikhin
8dd494a8fc
OD sigterm race condition fix ( #544 )
2023-11-20 14:02:35 +05:00
Andrey Borodin
be08883bea
Yield timeslice when waiting for auth_query ( #545 )
...
* Yield timeslice when waiting for auth_query
* Formatting
2023-11-20 12:39:44 +05:00
reshke
e2e3ee6ac4
Fix segfault on empty password ( #542 )
2023-11-13 16:25:49 +05:00
NikitaUnisikhin
9a423940b9
Added config testing (odyssey --test) ( #537 )
...
* added configuration testing (odyssey --test)
* fixes
* fix names
* fix names
* apply fmt
* start create tests
* rebuild
* tests done
* --test no longer forks the process
* config without rules is no longer valid
* fix tests
* fix storage_type tests
* fix storage_tls tests
* fix config-examples/odyssey-aq.conf
* change .gitignore
* rm .DS_Store
2023-11-10 14:57:22 +05:00
Ivelok
5f4e64d110
Fix server_pool_idle metric name ( #540 )
...
Co-authored-by: Anton Peretrukhin <anton.peretrukhin@flant.com>
2023-11-09 14:08:06 +05:00
reshke
5faba9bcb0
Fix auth query password caching segfault ( #536 )
2023-10-26 13:51:38 +05:00
reshke
d95e8650bc
Fix sccram compile with pg >= 16 ( #535 )
2023-10-16 14:30:34 +05:00
reshke
abf4e369f5
Add makefile and CMakeFiles code to use custom openssl in build ( #529 )
...
* Add makefile and CMakeFiles code to use custom openssl in build
* APlyy fmt and rebase
2023-08-31 13:25:58 +05:00
reshke
286802ca55
Do not offer scram-256-plus over non-SSL connection ( #528 )
2023-08-30 18:27:29 +05:00
Andrey Borodin
daac7d5371
Eleminate server IO leak on Cancel request ( #527 )
...
* Eleminate server IO leak on Cancel request
* Some more fixes
* Apply fmt
---------
Co-authored-by: Andrey M. Borodin <x4mmm@172.25.72.199-ekb.dhcp.yndx.net>
2023-08-30 16:50:20 +05:00
reshke
7dee99da16
Update router.c ( #525 )
2023-08-17 16:52:42 +05:00
reshke
d0638f309b
Cache auth info for auth query for 10 sec. ( #523 )
...
* Cache auth info for auth query for 10 sec.
* Invalidate auth cache on reload
2023-08-01 15:21:47 +05:00
Andrey Borodin
18daaa9fc0
Prevent reuse of logical replication connections ( #518 )
...
Currently walsender cannot continue to sync tables if has synced one. So we have to open new walsender connection for each client.
2023-07-27 14:31:50 +05:00
reshke
8a435dcfec
Fix compile ( #521 )
2023-07-27 14:29:49 +05:00
reshke
8ad4666682
Add extended logging to ldap routines and internals ( #520 )
2023-07-27 14:23:50 +05:00
reshke
b403369020
Auto-generate default internal pool (for `auth-query` etc) if none specified. ( #519 )
...
* Auto-generatew default internal pool if none specified.
Added auto-generation logic to create internal rule for aurh-query
when none "pool_internal" rules was specified, but auth query is in use.
* Add sample config for auth-query autogen and fix bugs
* Fix
* Fix2
* rules.c edited online with Bitbucket
---------
Co-authored-by: Kirill Reshke <reshke@yandex-team.ru>
2023-07-27 14:21:21 +05:00
reshke
db2d60100c
Log return code of basedn simple bind only on error ( #512 )
...
* Update ldap.c
* Apply fmrt
* Apply fmt again
2023-07-18 13:24:14 +05:00
Denis Volkov
be548431aa
change loglevel message ( #517 )
2023-07-18 12:43:06 +05:00
Denis Volkov
76ef113f26
small ldap documentation fix ( #516 )
2023-07-18 11:39:24 +05:00
Andrey Borodin
de02985941
Inverse priorities of new connections ( #506 )
...
* Inverse priorities of new connections
* Apply formatting
---------
Co-authored-by: root <root@odyssey-test2.ru-central1.internal>
2023-07-12 13:22:33 +05:00
reshke
6ea14ee8bf
Properly count number of copy-proto related msgs ( #503 )
...
* Properly count number of copy-proto related msgs
* Check backen copy failed status in frontend.c, drop connection in this
case.
2023-07-10 14:05:31 +03:00
reshke
39d0c3aeb3
Channel binding for SCRAM auth method ( #490 )
...
* Channel binding for SCRAM auth method
* Apply fmt
2023-07-10 14:04:48 +03:00
reshke
d9d18b2c20
Reject connection initiating in replication lag too high. ( #481 )
...
* Reject connection initiating in replication lag too high.
In replication lag polling feature, check replication lag on connection
startuy (before auth), and reject connection if replication lag is too high.
* Apply fmt
2023-07-10 13:51:14 +03:00
Ovchinnikov Andrew
a2962aa5ba
Fix ch1nn1y odyssey null logger 0 ( #510 )
...
* fixed null logger dereference
* fixed null logger dereference
* error printf message fix
* "'make apply_fmt' - do"
2023-07-10 12:35:50 +05:00
reshke
1cc42b1043
configure mandatory startup parameters for backend connections ( #491 )
2023-07-10 12:19:50 +05:00
Ilya Shipitsin
c846f3737e
CI: remove dedicated "clang-format" workflow in flavour of "cmake" ( #504 )
...
"cmake" workflow already performs format check. also, "clang-format"
is broken
2023-06-26 21:22:33 +05:00
Andrey Borodin
ed6c55436b
Emit warning when routing queue is full ( #505 )
...
Co-authored-by: root <root@odyssey-test2.ru-central1.internal>
2023-06-14 16:00:55 +05:00
Ilya Shipitsin
bd4ddd69e9
sources/hashmap.c: handle malloc failure ( #502 )
2023-06-06 10:41:28 +05:00