registry/internal/auth
Repository files (latest commit first)
Filename Latest commit message Latest commit date
adam jones 9d04671ee3
feat: add namespace blocking functionality for JWT authentication (#313)
## Summary

Implements a denylist mechanism to prevent blocked namespaces from
publishing packages:

- Added `BlockedNamespaces` field to `JWTManager` struct for maintaining
the denylist
- Added validation logic in `GenerateTokenResponse` that checks user
permissions against blocked namespaces
- Admins with global permissions (`*`) bypass the blocking logic
- Added comprehensive test coverage for all blocking scenarios

Fixes #98
2025-08-27 23:46:35 +01:00
..
blocks.go feat: add namespace blocking functionality for JWT authentication (#313) 2025-08-27 23:46:35 +01:00
jwt.go feat: add namespace blocking functionality for JWT authentication (#313) 2025-08-27 23:46:35 +01:00
jwt_test.go feat: add namespace blocking functionality for JWT authentication (#313) 2025-08-27 23:46:35 +01:00