yumoqing 57afe1264c feat(security): implement IP filtering and API key authentication
- Added validate_ip_and_apikey() decorator for endpoint protection
- Implemented IP address validation with configurable allowed_ips list
- Added API key authentication with header-based or bearer token support
- Fixed endpoint function signatures to properly receive Request objects
- Updated configuration structure and security documentation
- Removed debug print statements before final commit
2026-04-22 21:41:45 +08:00

Hermes Service Web Application

Overview

Hermes Service is a web application that provides API access to Hermes Agent functionality. It runs in the Hermes Agent environment and exposes CLI capabilities through REST/WebSocket APIs.

Features

  • Execute Hermes CLI commands via API
  • Manage multiple Hermes service instances
  • User and organization-based access control (using rbac module)
  • Real-time communication via WebSocket
  • Configuration management

Integration

This module integrates with:

  • rbac: For user and permission management
  • appbase: For system parameter management
  • Hermes Agent: Core functionality execution

Directory Structure

  • hermes-service/: Python package with core logic
  • wwwroot/: Frontend components (bricks-framework .ui files)
  • models/: Database table definitions
  • json/: CRUD operation definitions
  • init/: Initialization data
Description
No description provided
Readme 85 KiB
Languages
Python 96.4%
Shell 3.6%