|
|
1d08955b07
|
Fix rag-server module path (#752)
* Fix rag-server module path
* Align rag-server module imports
|
2025-12-06 10:27:24 +08:00 |
|
Haitao Pan
|
e95f5fffa1
|
feat(auth): implement rag-server remote auth middleware
Implement complete authentication middleware for rag-server:
- Remote token verification via accounts-service
- 60s TTL cache with background GC
- Gin middleware integration
- Role-based access control
- Zero-trust architecture (no private keys)
- Health check endpoint
Files:
- internal/auth/client.go (350 lines)
- internal/auth/middleware_verify.go (280 lines)
- internal/auth/cache.go (180 lines)
- internal/auth/example_test.go (150 lines)
- internal/auth/README.md (550 lines)
- cmd/xcontrol-server/main.go (updated)
- config/config.go (added AuthCfg)
- config/server.yaml (removed secrets)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
|
2025-11-05 21:01:20 +08:00 |
|
shenlan
|
8360e1e474
|
Update rag-server default base URL to 8090 (#528)
|
2025-10-15 15:25:06 +08:00 |
|
shenlan
|
dc4aab3a9f
|
Move RAG module under rag-server (#526)
|
2025-10-15 13:27:37 +08:00 |
|
shenlan
|
601fe872ce
|
Refactor server layout to rag-server (#525)
|
2025-10-15 13:04:58 +08:00 |
|