Skip to content

Conversation

@rhafer
Copy link

@rhafer rhafer commented Mar 19, 2025

This backend stores the apptoken in a JSON file per user using the metabackend. By default passwords are generated using the "diceware" algorithm (based on https://xkcd.com/936/). It can be switched to generate "normal" random password. Passwords are hashed using the argon2id algorithm.
Note: There is no form of caching for now. I.e. the json file is loaded upon every single authentication request so there is lot of room for improvement here. To limit the amount of write operations the Utime (time of last usage of the password) is however only updated with a granularity of 5 minutes.

opencloud-eu/opencloud#207

@rhafer rhafer requested a review from aduffeck March 19, 2025 10:31
@rhafer rhafer self-assigned this Mar 19, 2025
rhafer and others added 2 commits March 20, 2025 08:22
This backend stores the apptoken in a JSON file per user using the
metabackend. By default passwords are generated using the "diceware"
algorithm (based on https://xkcd.com/936/). It can be switched to
generate "normal" random password. Passwords are hashed using the
argon2id algorithm.
Note: There is no form of caching for now. I.e. the json file is loaded
upon every single authentication request so there is lot of room for
improvement here. To limit the amount of write operations the Utime
(time of last usage of the password) is however only updated with a
granularity of 5 minutes.

opencloud-eu/opencloud#207
@rhafer rhafer merged commit 9ac9961 into opencloud-eu:main Mar 20, 2025
2 checks passed
@openclouders openclouders mentioned this pull request Mar 20, 2025
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants