mirror of
https://github.com/All-Hands-AI/OpenHands.git
synced 2026-04-29 03:00:45 -04:00
Add the ability for API callers to pass secrets directly when starting a conversation, without requiring them to be pre-stored in the database. Changes: - Add optional `secrets: dict[str, SecretStr]` field to AppConversationStartRequest model - Update `_build_start_conversation_request_for_user()` to merge API-provided secrets with existing secrets (from git providers/database) - API-provided secrets take precedence over existing secrets with same name - Add new `openhands/app_server/constants.py` with secret validation: - Blocked names: container config vars (OH_*, WORKER_*, etc.) - Blocked prefixes: LLM_* (to enforce app-server LLM controls) - Configurable size limits via environment variables - Add warning log when API secrets override existing secrets - Bump agent-server image to 1.18.1-python (SDK v1.18.1 with MCP secrets expansion support) Closes #14007
6.6 KiB
6.6 KiB