35 Commits

Author SHA1 Message Date
Kishore Nallan
fe4a81d2da Wrap embedded param filter with () for better exclusivity. 2022-10-30 15:37:51 +05:30
Kishore Nallan
d05c51c536 Handle bad regexp in allowed collection API key. 2022-07-07 09:53:50 +05:30
Kishore Nallan
5401e378e9 When present, use preset config for collection auth. 2022-04-17 18:17:01 +05:30
Kishore Nallan
0341e693d1 Fix scoped API searching on prefix-sharing keys. 2022-03-05 20:13:29 +05:30
Kishore Nallan
95c60db1a2 Fix embedded params vec being empty. 2022-03-01 10:34:21 +05:30
Kishore Nallan
31c8a030c7 Handle per-search API key for multi search. 2022-02-25 21:19:24 +05:30
Kishore Nallan
bf475ad55f Support presets on GET search endpoint as well. 2022-02-19 19:11:20 +05:30
Kishore Nallan
7602df1877 Disallow primary key value being created as a custom key. 2021-06-17 14:03:40 +05:30
Kishore Nallan
9e43a5b0e5 Validate API key description during creation. 2021-05-20 15:00:51 +05:30
Kishore Nallan
a0da8929cd When key not found during deletion, return 404 and not 500. 2021-05-20 14:53:07 +05:30
Kishore Nallan
47a35935d6 Support resource:* API key permission. 2021-05-10 07:53:53 +05:30
Kishore Nallan
37b78072fa Allow long custom API keys. 2021-04-12 19:36:03 +05:30
kishorenc
a11befe42b Fix embedded params on multi_search end-point. 2021-04-07 15:00:04 +05:30
kishorenc
ddf54cbd6e Allow API key value to specified. 2021-04-05 16:08:40 +05:30
kishorenc
a978db9252 Merge branch '0.19.0.post' into 0.20.0-rc 2021-02-19 15:10:36 +05:30
kishorenc
e5c3cddfcc Log hash of key also when logging key prefix. 2021-02-19 13:11:35 +05:30
kishorenc
5dc7df793c Merge branch '0.18.0-patches' into 0.20.0-rc
# Conflicts:
#	include/auth_manager.h
#	include/collection_manager.h
#	include/http_server.h
#	src/auth_manager.cpp
#	src/collection_manager.cpp
#	src/http_server.cpp
2021-02-16 12:54:42 +05:30
kishorenc
09530e3415 Fix race condition in condition variable notify/wait. 2021-02-15 18:23:42 +05:30
kishorenc
0175ac0df4 Support auth against multiple collections.
# Conflicts:
#	include/auth_manager.h
#	include/collection_manager.h
#	include/http_server.h
#	src/auth_manager.cpp
#	src/collection_manager.cpp
2021-02-11 19:17:18 +05:30
kishorenc
17fbbd0838 Refactor concurrency model. 2021-02-06 20:17:18 +05:30
Jason Bosco
047ad37991 Minor refactor of build scripts 2021-01-24 19:26:15 -08:00
Jason Bosco
c8b4d5fbed Address multi search quirks 2021-01-24 08:04:23 -08:00
Jason Bosco
eed5d61c15 Validate override configuration during creation 2021-01-23 07:45:35 -08:00
Jason Bosco
1e1f7371f2 Handle malformed scoped API key better 2021-01-22 16:49:20 -08:00
kishorenc
c97ded0458 Support expiry of API keys.
Both parent and scoped keys are supported, but the expiry time of parent key takes precedence. Default is a date far into the future.
2020-12-28 19:19:59 +05:30
kishorenc
ec9da2ccf3 Support regexp of collection names in API key. 2020-12-28 19:19:59 +05:30
Kishore Nallan
9adbdd1576 Fixed a bug with hlighlighting in upsert import. 2020-10-17 11:55:42 +05:30
kishorenc
0577df5e91 Throttle collection loading to prevent CPU saturation. 2020-09-12 18:46:40 +05:30
kishorenc
9091df57c0 Don't trigger snapshots for small unapplied logs.
Required upgrading braft to HEAD version.
2020-09-10 16:04:43 +05:30
kishorenc
1f726d747a Add logging for auth key handling. 2020-08-29 08:08:37 +05:30
kishorenc
9f83d9e0c2 Fix edge case in initialization of auth manager.
Must be initialized only when CollectionManager is ready to be loaded.
2020-08-23 12:37:07 +05:30
kishorenc
6e77a9792e Refactor http req handler: prepare for deferred request body access. 2020-08-12 21:42:23 +05:30
kishorenc
59131d1333 Fix API response for key creation. 2020-05-27 19:18:05 +05:30
kishorenc
1395d74d48 Manage scoped search API keys. 2020-04-30 14:21:39 +05:30
kishorenc
29b4225461 API Key management. 2020-04-27 21:43:24 +05:30