gitea/modules
zeripath e0853d4a21
Add API Token Cache (#16547)
One of the issues holding back performance of the API is the problem of hashing.
Whilst banning BASIC authentication with passwords will help, the API Token scheme
still requires a PBKDF2 hash - which means that heavy API use (using Tokens) can
still cause enormous numbers of hash computations.

A slight solution to this whilst we consider moving to using JWT based tokens and/or
a session orientated solution is to simply cache the successful tokens. This has some
security issues but this should be balanced by the security issues of load from
hashing.

Related #14668

Signed-off-by: Andrew Thornton <art27@cantab.net>

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2021-08-17 14:30:42 -04:00
..
analyze
auth
avatar
base
cache
charset
context [API] generalize list header (#16551) 2021-08-12 14:43:08 +02:00
convert Add agit flow support in gitea (#14295) 2021-07-28 17:42:56 +08:00
cron
csv Fixes #16557 - duplicate csv import (#16631) 2021-08-05 17:56:11 +01:00
doctor
emoji
eventsource
generate
git [API] generalize list header (#16551) 2021-08-12 14:43:08 +02:00
gitgraph
graceful
hcaptcha
highlight Ensure empty lines are copiable and final new line too (#16678) 2021-08-14 01:16:56 +02:00
httpcache
httplib
indexer
json
lfs
log
markup Fix NPE in fuzzer (#16680) 2021-08-13 00:22:05 +02:00
matchlist
metrics Separate open and closed issue in metrics (#16637) 2021-08-07 12:43:50 +03:00
migrations Update issue_index to finish migration (#16685) 2021-08-13 21:06:18 +08:00
nosql
notification
options
password
pprof
private Fix spelling of HookProcReceiveResult (#16690) 2021-08-14 13:17:10 +02:00
process
public
queue
recaptcha
references
repofiles
repository Replace list.List with slices (#16311) 2021-08-09 14:08:51 -04:00
secret
session
setting Add API Token Cache (#16547) 2021-08-17 14:30:42 -04:00
ssh
storage
structs Add an api endpoint to fetch git notes (#15373) (#16649) 2021-08-11 03:01:40 +02:00
svg
sync
task
templates Replace list.List with slices (#16311) 2021-08-09 14:08:51 -04:00
test
timeutil
translation
typesniffer
upload
uri
user
util
validation
web