1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-11-24 08:57:03 -05:00
forgejo/services/doctor
Gusted 1ce33aa38d
fix: extend forgejo_auth_token table
- Add a `purpose` column, this allows the `forgejo_auth_token` table to
be used by other parts of Forgejo, while still enjoying the
no-compromise architecture.
- Remove the 'roll your own crypto' time limited code functions and
migrate them to the `forgejo_auth_token` table. This migration ensures
generated codes can only be used for their purpose and ensure they are
invalidated after their usage by deleting it from the database, this
also should help making auditing of the security code easier, as we're
no longer trying to stuff a lot of data into a HMAC construction.
-Helper functions are rewritten to ensure a safe-by-design approach to
these tokens.
- Add the `forgejo_auth_token` to dbconsistency doctor and add it to the
`deleteUser` function.
- TODO: Add cron job to delete expired authorization tokens.
- Unit and integration tests added.
2024-11-15 10:59:36 +01:00
..
authorizedkeys.go fix: correct doctor commands and rename to forgejo 2024-08-27 02:40:55 +02:00
breaking.go fix: use ValidateEmail as binding across web forms 2024-08-28 22:25:17 -06:00
checkOldArchives.go Move doctor package from modules to services (#28856) 2024-01-20 10:07:31 +08:00
dbconsistency.go fix: extend forgejo_auth_token table 2024-11-15 10:59:36 +01:00
dbversion.go [PORT] Refactor the DB migration system slightly (gitea#32344) 2024-11-03 17:00:48 +01:00
doctor.go feat: add optional storage init to doctor commands 2024-04-04 17:21:12 +02:00
fix8312.go Move doctor package from modules to services (#28856) 2024-01-20 10:07:31 +08:00
fix16961.go Fix panic for fixBrokenRepoUnits16961 (#30068) 2024-03-30 07:17:30 +01:00
fix16961_test.go Move doctor package from modules to services (#28856) 2024-01-20 10:07:31 +08:00
heads.go Move doctor package from modules to services (#28856) 2024-01-20 10:07:31 +08:00
lfs.go Refactor LFS GC functions 2024-04-05 16:49:15 +02:00
mergebase.go Move doctor package from modules to services (#28856) 2024-01-20 10:07:31 +08:00
misc.go Simplify how git repositories are opened (#28937) 2024-01-27 21:09:51 +01:00
packages_nuget.go Enable more revive linter rules (#30608) 2024-04-28 15:39:00 +02:00
paths.go Replace Gitea with Forgejo 2024-07-24 14:17:23 +00:00
push_mirror_consistency.go [GITEA] new doctor check: fix-push-mirrors-without-git-remote (#1853) 2024-02-05 16:09:41 +01:00
repository.go Move doctor package from modules to services (#28856) 2024-01-20 10:07:31 +08:00
storage.go Resolve lint for unused parameter and unnecessary type arguments (#30750) 2024-05-05 08:38:16 +01:00
usertype.go Move doctor package from modules to services (#28856) 2024-01-20 10:07:31 +08:00