[P16] Replace docker exec gitea with Gitea API for password rotation #110
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
provision_gitea()runsdocker exec gitea gitea admin user change-passwordto change the admin password, then uses the Gitea HTTP API for token management. Thedocker execpart requires the Docker socket.Fix
Gitea API supports
PATCH /admin/users/{username}to change passwords. Replace thedocker execcall with an API call using the current token (before rotation):This requires the current admin token to still be valid, which it is — we create the new token before invalidating anything.
Acceptance criteria
provision_gitea()uses only HTTP API, nodocker execPATCH /admin/users/kert