WIP: feat: Use redis as a data storage for auth data #40

Closed
inex wants to merge 0 commits from redis/connection-pool into master
There is no content yet.
inex added 67 commits 2023-06-14 14:01:46 +03:00
cee0419a52 test(tokens-repo): remove test tokens.json files
except for one which will temporarily remain
gitkeeps are to prevent shared_datadir from erroring out in a freshly
cloned repo. for now huey database and jobs fixtures use shared_datadir
243f9be225 test(tokens-repo): delete standalone get new device test
At rest api level, we can only check the existence of new device token
by using it, and this test already exists.
e9934a2567 test(tokens-repo): delete get new device key standalone test
we can only see if device key is valid by using it or deleting it.
another test does it
c624529670 refactor(tokens-repo): switch token backend to redis
And use timezone-aware comparisons for expiry checks
inex force-pushed redis/connection-pool from 22135a4638 to c77191864e 2023-06-14 14:03:48 +03:00 Compare
inex requested review from houkime 2023-06-14 14:04:14 +03:00
Poster
Owner

Token name hashing right now is broken: yields different hashes on different runs.

Token name hashing right now is broken: yields different hashes on different runs.
inex changed title from feat: Use redis as a data storage for auth data to WIP: feat: Use redis as a data storage for auth data 2023-06-14 14:33:14 +03:00
houkime added 1 commit 2023-06-21 15:19:31 +03:00
Collaborator

LGTM if it deploys. We will still need to keep json code around for the purposes of migration, but maybe there will be some official deprecation date.
Also note that merging this will create merge conflict with mutation groups. But hopefully this design makes for less shotgun surgery when doing this.

LGTM if it deploys. We will still need to keep json code around for the purposes of migration, but maybe there will be some official deprecation date. Also note that merging this will create merge conflict with mutation groups. But hopefully this design makes for less shotgun surgery when doing this.
houkime refused to review 2023-06-21 15:34:10 +03:00
Poster
Owner

replaced by #68

replaced by #68
inex closed this pull request 2023-11-01 18:52:57 +02:00

Pull request closed

Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: SelfPrivacy/selfprivacy-rest-api#40
There is no content yet.