registry/internal/api/handlers/v0/auth
Repository files (latest commit first)
Filename Latest commit message Latest commit date
adam jones 5746e7e99b
Remove OIDC authorization flow to fix data race vulnerability (#526)
## Summary

Fixes a concurrent map access vulnerability in the OIDC handler that
could cause remote unauthenticated DoS.

## Changes

- Removed OIDC authorization flow endpoints ( and )
- Removed the unsynchronized  map that caused the data race
- Kept only the OIDC token exchange endpoint ()
- Simplified  by removing OAuth2 flow dependencies

The map was being accessed concurrently by the start (write) and
callback (read/delete) endpoints without synchronization, causing
runtime panics. Since the token exchange flow doesn't require session
state, removing the authorization flow eliminates the vulnerability
entirely.
2025-09-22 13:41:32 +01:00
..
dns.go Deduplicate server JSON structs between publisher and registry (#318) 2025-08-28 14:58:15 +01:00
dns_test.go Deduplicate server JSON structs between publisher and registry (#318) 2025-08-28 14:58:15 +01:00
github_at.go Deduplicate server JSON structs between publisher and registry (#318) 2025-08-28 14:58:15 +01:00
github_at_test.go Deduplicate server JSON structs between publisher and registry (#318) 2025-08-28 14:58:15 +01:00
github_oidc.go Deduplicate server JSON structs between publisher and registry (#318) 2025-08-28 14:58:15 +01:00
github_oidc_test.go Deduplicate server JSON structs between publisher and registry (#318) 2025-08-28 14:58:15 +01:00
http.go Deduplicate server JSON structs between publisher and registry (#318) 2025-08-28 14:58:15 +01:00
http_test.go Deduplicate server JSON structs between publisher and registry (#318) 2025-08-28 14:58:15 +01:00
main.go feat: implement OIDC authentication for admin users (#316) 2025-08-27 18:59:49 +01:00
none.go Deduplicate server JSON structs between publisher and registry (#318) 2025-08-28 14:58:15 +01:00
none_test.go Deduplicate server JSON structs between publisher and registry (#318) 2025-08-28 14:58:15 +01:00
oidc.go Remove OIDC authorization flow to fix data race vulnerability (#526) 2025-09-22 13:41:32 +01:00
oidc_test.go Remove OIDC authorization flow to fix data race vulnerability (#526) 2025-09-22 13:41:32 +01:00