Jo
9f5a8bf926
AuthInfo: Revert #81013 . Fix cache invalidation ( #81050 )
...
* Revert "Auth: Revert "Auth: Cache Auth Info" (#81013 )"
This reverts commit ce84f7c540
.
* fix cache invalidation during user takeover
* fix incomplete test
2024-01-23 15:26:38 +01:00
Misi
ce84f7c540
Auth: Revert "Auth: Cache Auth Info" ( #81013 )
...
Revert "Auth: Cache Auth Info"
2024-01-22 21:25:24 +02:00
Jo
c767481dee
Auth: Cache Auth Info ( #80620 )
...
* leverage cache for auth info
* fix tests and integration
* fix panic
* fix panic
2024-01-18 15:22:19 +01:00
Carl Bergquist
eb507dca89
Remotecache: rename setbytearray/getbytearray to set/get and remove codec ( #64470 )
...
Signed-off-by: bergquist <carl.bergquist@gmail.com>
2023-03-10 13:57:29 +01:00
Jo
ff78103a24
Authn: Anon session service ( #63052 )
...
* add anon sessions package
* add usage stat fn
* implement count for cache
* add anonservice to authn broker
* lint
* add tests for remote cache count
* move anon service to services
* wrap tagging in goroutine
* make func used
2023-02-21 16:21:18 +01:00
Selene
5fe3548691
RemoteCache: Fix null pointer exception in redis cache ( #63094 )
...
Fix null pointer exception in redis cache
2023-02-08 17:08:56 +01:00
Carl Bergquist
791b1001af
remote cache: new function to get/set cache items as byte arrays ( #62916 )
...
Signed-off-by: bergquist <carl.bergquist@gmail.com>
2023-02-06 13:08:03 +01:00
Serge Zaitsev
f531074d89
Chore: Fix goimports grouping in pkg/infra ( #62421 )
...
* fix goimports
* fix goimports order
2023-01-30 08:32:25 +00:00
Serge Zaitsev
f1fb202284
Chore: Add encryption codec to the remote cache ( #59871 )
...
* add encryption codec to the remote cache
* change config files too
* fix test constructor
* pass codec into the test cache
2022-12-06 15:12:27 +01:00
Kat Yang
3c3039f5b3
Chore: Remove Wrap ( #50048 )
...
* Chore: Remove Wrap and Wrapf
* Fix: Add error check
2022-06-03 09:24:24 +02:00
idafurjes
b8852ef6a3
Chore: Remove context.TODO() ( #43409 )
...
* Remove context.TODO() from services
* Fix live test
* Remove context.TODO
2021-12-22 11:02:42 +01:00
Todd Treece
1781c8ec7d
Chore: Add go-redis v8 dependency ( #39442 )
...
* adds redis v8 client dependency
* remove go-redis v5 dependency
2021-09-20 22:21:59 +02:00
Serge Zaitsev
da13f88862
Redact sensitive values before logging them ( #33829 )
...
* use a common way to redact sensitive values before logging them
* fix panic on missing testCase.err, simplify require checks
* fix a silly typo
* combine readConfig and buildConnectionString methods, as they are closely related
2021-05-10 17:03:10 +02:00
Kyle Brandt
f689b60426
remotecache: support SSL with redis ( #18511 )
...
* update go-redis lib from v2 -> v5
* add ssl option to the redis connection string
fixes #18498
2019-08-13 06:51:13 -04:00
Markus Blaschke
31547597d3
remote_cache: Fix redis connstr parsing ( #18204 )
...
* Fix redis connstr parsing
* Don’t log the password
2019-07-23 16:45:04 +03:00
Kyle Brandt
c09fe3c3b4
remote_cache: Fix redis ( #17483 )
...
* wip: fix remote cache for redis
connstr parsing and non-negative expires for #17377
TODO: finish parse, check zero case, find out why negative duration in the first place
* finish parse.
Still TODO, find out negative value, and decide if would be better to make database specific entries in the .ini file
* update ini files
* remove accidental uncomment in defaults.ini
* auth_proxy: expiration non-negative so expiration is not in the past
* fix test, revert neg in redis
* review: use errutil
2019-06-10 15:27:08 +02:00
Mario Trangoni
87760d4fde
Codestyle: Fix govet issues ( #17178 )
...
ref #10381
Signed-off-by: Mario Trangoni <mjtrangoni@gmail.com>
2019-06-04 22:00:05 +02:00
bergquist
6d42d43b22
use constants for cache type
2019-03-14 15:48:20 +01:00
bergquist
c001cfe1d9
dont allow inifinite expiration
2019-03-14 09:22:03 +01:00
bergquist
7e7427637c
renames distcache -> remotecache
2019-03-11 10:49:55 +01:00