Original PR: https://github.com/RayLabsHQ/gitea-mirror/pull/227 Author: @arunavo4 Created: 3/15/2026 Status: ✅ Merged Merged: 3/15/2026 Merged by: @arunavo4
Base: main ← Head: security/fix-vulnerabilities-and-upgrade-deps
main
security/fix-vulnerabilities-and-upgrade-deps
cf8c5dd
a544b29
7a2a622
806e0a6
8f2c75e
13 files changed (+662 additions, -768 deletions)
📝 Dockerfile (+22 -3) 📝 bun.lock (+529 -579) 📝 package.json (+19 -15) ➖ src/content/config.ts (+0 -4) 📝 src/lib/api.ts (+4 -22) 📝 src/lib/config.ts (+17 -2) 📝 src/lib/utils.ts (+3 -1) 📝 src/lib/utils/encryption.ts (+16 -3) 📝 src/pages/api/auth/check-users.ts (+3 -10) 📝 src/pages/api/auth/debug.ts (+17 -54) 📝 src/pages/api/cleanup/auto.ts (+8 -5) 📝 src/pages/api/config/index.ts (+18 -0) 📝 src/pages/api/health.ts (+6 -70)
Dockerfile
bun.lock
package.json
src/content/config.ts
src/lib/api.ts
src/lib/config.ts
src/lib/utils.ts
src/lib/utils/encryption.ts
src/pages/api/auth/check-users.ts
src/pages/api/auth/debug.ts
src/pages/api/cleanup/auto.ts
src/pages/api/config/index.ts
src/pages/api/health.ts
/api/auth/debug
/api/auth/check-users
hasUsers: boolean
/api/cleanup/auto
/api/health
/api/config
BETTER_AUTH_SECRET
generateRandomString()
Math.random()
crypto.getRandomValues()
hashValue()
verifyHash()
All changes are backward compatible with existing deployments:
--spider
bun run build
bun test
docker build -t gitea-mirror:test .
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
No dependencies set.
The note is not visible to the blocked user.
📋 Pull Request Information
Original PR: https://github.com/RayLabsHQ/gitea-mirror/pull/227
Author: @arunavo4
Created: 3/15/2026
Status: ✅ Merged
Merged: 3/15/2026
Merged by: @arunavo4
Base:
main← Head:security/fix-vulnerabilities-and-upgrade-deps📝 Commits (5)
cf8c5ddfix: resolve CVEs, upgrade to Astro v6, and harden API securitya544b29repositories: migrate table to tanstack7a2a622Revert "repositories: migrate table to tanstack"806e0a6Merge branch 'main' into security/fix-vulnerabilities-and-upgrade-deps8f2c75efixed lock file📊 Changes
13 files changed (+662 additions, -768 deletions)
View changed files
📝
Dockerfile(+22 -3)📝
bun.lock(+529 -579)📝
package.json(+19 -15)➖
src/content/config.ts(+0 -4)📝
src/lib/api.ts(+4 -22)📝
src/lib/config.ts(+17 -2)📝
src/lib/utils.ts(+3 -1)📝
src/lib/utils/encryption.ts(+16 -3)📝
src/pages/api/auth/check-users.ts(+3 -10)📝
src/pages/api/auth/debug.ts(+17 -54)📝
src/pages/api/cleanup/auto.ts(+8 -5)📝
src/pages/api/config/index.ts(+18 -0)📝
src/pages/api/health.ts(+6 -70)📄 Description
Summary
Docker Image CVE Fixes
API Security Hardening
/api/auth/debug/api/auth/check-usershasUsers: booleaninstead of exact user count/api/cleanup/auto/api/health/api/configBETTER_AUTH_SECRETCrypto Fixes
generateRandomString(): replacedMath.random()withcrypto.getRandomValues()— this was used to generate OAuth client secretshashValue(): added random salt +verifyHash()with timing-safe comparisonBackward Compatibility
All changes are backward compatible with existing deployments:
--spider(status code only), UI only reads version fieldsBETTER_AUTH_SECRET: warns instead of crashing — existing users keep workingTest plan
bun run build— passesbun test— 163 pass, 0 faildocker build -t gitea-mirror:test .)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.