You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Documents changes since v8.5.2:
- Hybrid authentication for web UI endpoints (PR #730)
- CSRF token handling fixes (PR #729)
- Callback-based delegation job completion (Story #720)
- Server stability improvements (Epic #733)
This commit prepares for creating the v8.5.3 git tag, which will
enable pipx installation at this version.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+62Lines changed: 62 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,68 @@ All notable changes to this project will be documented in this file.
5
5
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
8
+
## [8.5.3] - 2026-01-19
9
+
10
+
### Fixed
11
+
12
+
#### Hybrid Authentication for Web UI Endpoints
13
+
14
+
**Issue**: The golden repo index management endpoint (`/api/admin/golden-repos/{alias}/indexes`) only supported token-based authentication (JWT/API keys). Web UI uses session-based authentication (cookies + CSRF tokens), causing "Missing authentication credentials" errors when attempting to add indexes via the web interface.
15
+
16
+
**Root Cause**: Authentication dependency checked for Bearer tokens only, not session cookies.
17
+
18
+
**Solution**: Implemented hybrid authentication that tries both methods:
19
+
1. Session-based auth first (for web UI users)
20
+
2. Token-based auth as fallback (for API clients)
21
+
22
+
**Changes**:
23
+
- Added `get_current_admin_user_hybrid()` and `get_current_user_hybrid()` to dependencies.py
24
+
- Fixed session attribute check (`session.role` instead of `session.is_admin`)
25
+
- Fixed session cookie name (use `SESSION_COOKIE_NAME` constant)
26
+
- Applied hybrid auth to golden repo index endpoint and job status endpoint
27
+
- Added comprehensive Playwright-based testing
28
+
29
+
**Impact**: Web UI can now successfully call admin endpoints using session authentication while maintaining full API client compatibility.
0 commit comments