Commit graph

2 commits

Author SHA1 Message Date
Till Wegmueller
8f048f6b2a feat: Add OIDC JWT authentication middleware for pkg6depotd
Some checks failed
Rust CI / Format (push) Has been cancelled
Rust CI / Clippy (push) Has been cancelled
Rust CI / Build (Linux) (push) Has been cancelled
Rust CI / Build (Illumos) (push) Has been cancelled
Rust CI / Test (push) Has been cancelled
Rust CI / End-to-End Tests (push) Has been cancelled
Rust CI / Documentation (push) Has been cancelled
Implement Bearer token validation using jsonwebtoken with JWKS caching
and automatic key rotation handling. AuthState fetches keys from the
configured OIDC provider's jwks_uri at startup and refreshes on unknown
kid. Axum middleware (require_auth) protects write routes, injecting
AuthenticatedUser into request extensions. The auth_check admin endpoint
now performs real JWT validation when oauth2 is configured.

Includes architecture plan for the full publish API with RBAC at
docs/ai/plans/2026-04-09-publish-api-oidc.md.
2026-04-09 22:39:20 +02:00
Till Wegmueller
f2a3bc4d7c
Introduce foundational structure for pkg6depotd
- Added initial implementation of the `pkg6depotd` server with modular components for CLI parsing, configuration management, HTTP handling, repository access, and daemonization.
- Implemented basic server startup logic with a default router and placeholder handlers.
- Integrated telemetry initialization and configuration fallback mechanism for ease of development.
- Updated `Cargo.toml` and `Cargo.lock` to include dependencies necessary for server functionality.
2025-12-08 20:11:05 +01:00