diff --git a/CHANGELOG.md b/CHANGELOG.md index 17142c5..52742f8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,32 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.9.0] - 2026-01-03 + +### Added + +- **NPM Forward Auth Support** - Web authentication via Nginx Proxy Manager forward auth + - `GET /auth/me` - Get current user from NPM forward auth headers (X-authentik-uid, X-authentik-email, etc.) + - Auto-creates user on first web login if not in database + - Syncs roles from NPM forward auth groups header +- `get_user_by_email` and `get_user_by_authentik_id` methods in AuthService +- Comprehensive tests for `/auth/me` endpoint + +## [1.8.0] - 2026-01-03 + +### Added + +- **Group-Role Mapping & Permissions** (Phase 3) + - Decoupled group-role architecture (groups from Authentik, roles admin-managed) + - Permission format: `domain.category:action` with action hierarchy + - `require_permission` and `require_any_permission` dependency factories + - Global admin override (`admin.general:admin`) +- **User Profile & API Keys** (Phase 4) + - `GET /auth/users/me` - Full user profile with roles and preferences + - `GET/PATCH /auth/users/me/preferences` - User preferences management + - `GET/POST/DELETE /auth/users/me/api-keys` - API key lifecycle + - API keys with `tak_` prefix, SHA-256 hashing, shown only once on creation + ## [1.7.0] - 2026-01-03 ### Added diff --git a/pyproject.toml b/pyproject.toml index d0b7905..76d27e1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "core-api" -version = "1.7.0" +version = "1.9.0" description = "Core Code API - Infrastructure management and tools API" readme = "README.md" requires-python = ">=3.12"