Commit Graph

39 Commits

Author SHA1 Message Date
Hugh Brown
91e8270364 revert: restore GatewayRead.token field to avoid frontend breaking change
The has_token boolean redaction requires coordinated frontend changes
(detail page, edit page, orval types). Revert to returning the raw
token for now; token redaction will be handled in a dedicated PR.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-07 23:35:10 +05:30
Hugh Brown
916dace3c8 Address ruff / formatting errors 2026-03-07 23:35:10 +05:30
Hugh Brown
62d2378bdc chore: simplify and harden security review changes
- Add prompt-injection fencing to _webhook_memory_content (was missing
  the --- BEGIN/END EXTERNAL DATA --- fence applied elsewhere)
- Wrap Content-Length parsing in try/except to avoid 500 on malformed
  header values
- Move _to_gateway_read below imports (was incorrectly placed between
  import blocks) and tighten transformer types
- Replace list-rebuild with deque.popleft in rate limiter for O(expired)
  amortized pruning instead of O(n) per call
- Make organization_id required in send_session_message to prevent
  fail-open cross-tenant check

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-07 23:35:10 +05:30
Hugh Brown
547965a5cb security: redact gateway tokens from API responses
Gateway tokens were returned as plaintext in GatewayRead API responses.
Replace the `token` field with a boolean `has_token` flag so the API
never exposes the plaintext token. The token remains in the database
for outbound gateway connections (full encryption would require key
management infrastructure).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-07 23:35:10 +05:30
Abhimanyu Saharan
374d5a0c37 Merge branch 'master' into copilot/feature-allow-self-signed-tls
# Conflicts:
#	backend/app/api/gateways.py
#	backend/app/schemas/gateways.py
#	backend/app/services/openclaw/admin_service.py
#	backend/app/services/openclaw/gateway_resolver.py
#	backend/app/services/openclaw/gateway_rpc.py
#	backend/app/services/openclaw/provisioning.py
#	backend/app/services/openclaw/provisioning_db.py
#	frontend/src/api/generated/model/gatewayCreate.ts
#	frontend/src/api/generated/model/gatewayRead.ts
#	frontend/src/api/generated/model/gatewayUpdate.ts
2026-02-22 19:51:27 +05:30
Abhimanyu Saharan
cdced8e07c refactor: improve code formatting and readability in tests and components 2026-02-22 19:45:18 +05:30
Abhimanyu Saharan
3dfb70cd90 feat: add disable_device_pairing option to gateway configuration 2026-02-22 19:19:26 +05:30
copilot-swe-agent[bot]
520e128777 feat: Add allow_insecure_tls field to gateway model and UI
- Added allow_insecure_tls boolean field to Gateway model and schemas
- Created database migration for the new field
- Updated GatewayConfig to include allow_insecure_tls parameter
- Modified openclaw_call to create SSL context that disables verification when allow_insecure_tls is true
- Updated all GatewayConfig instantiations throughout the backend
- Added checkbox to frontend gateway form (create and edit pages)
- Updated API endpoints to handle the new field

Co-authored-by: abhi1693 <5083532+abhi1693@users.noreply.github.com>
2026-02-22 05:28:37 +00:00
Abhimanyu Saharan
24731667d4 feat: add gateway runtime compatibility checks and minimum version enforcement 2026-02-15 15:59:55 +05:30
Abhimanyu Saharan
1996e21695 refactor: add overwrite option to various services and update documentation 2026-02-15 13:55:47 +05:30
Abhimanyu Saharan
6f465d32fa feat(gateway): add lead_only option for syncing board lead agents 2026-02-15 01:23:36 +05:30
Abhimanyu Saharan
d241455da6 feat(skills): consolidate skill-related models and update imports 2026-02-14 19:31:32 +05:30
Abhimanyu Saharan
84cf22e42b fix(skills): address Copilot review nits (safety + UI guards) 2026-02-13 22:50:29 +00:00
Abhimanyu Saharan
da6cc2544b feat: implement cascading delete for gateway and associated installed skills 2026-02-13 22:23:47 +00:00
Abhimanyu Saharan
997d21c913 refactor: update provisioning service references to use OpenClawGatewayProvisioner 2026-02-10 23:31:14 +05:30
Abhimanyu Saharan
6311418dcf refactor: update import paths for OpenClaw services to improve module organization 2026-02-10 15:08:14 +05:30
Abhimanyu Saharan
82425edd69 refactor: reorganize OpenClaw services and enhance session management 2026-02-10 14:50:27 +05:30
Abhimanyu Saharan
6f070df74b refactor: remove main session key references and enhance agent-gateway associations 2026-02-10 02:58:58 +05:30
Abhimanyu Saharan
50f71960de refactor: enhance gateway agent handling with dedicated OpenClaw agent IDs 2026-02-10 01:33:01 +05:30
Abhimanyu Saharan
ba73ce8bfd refactor: update gateway agent session key handling and improve related logic 2026-02-10 00:45:15 +05:30
Abhimanyu Saharan
8f6347dc8d refactor: simplify code formatting and improve readability across multiple files 2026-02-09 20:44:05 +05:30
Abhimanyu Saharan
020d02fa22 refactor: replace DefaultLimitOffsetPage with LimitOffsetPage in multiple files and update timezone handling to use UTC 2026-02-09 20:40:17 +05:30
Abhimanyu Saharan
f5d592f61a refactor: standardize runtime annotation types across multiple files 2026-02-09 17:24:21 +05:30
Abhimanyu Saharan
7706943209 refactor: enhance docstrings for clarity and consistency across multiple files 2026-02-09 16:23:41 +05:30
Abhimanyu Saharan
228b99bc9b refactor: replace SQLModel with QueryModel in various models and update query methods 2026-02-09 02:04:14 +05:30
Abhimanyu Saharan
f6bcd1ca5f refactor: update migration paths and improve database operation handling 2026-02-09 00:51:26 +05:30
Abhimanyu Saharan
061563964d feat: refactor organization context usage in board and gateway endpoints 2026-02-08 21:37:20 +05:30
Abhimanyu Saharan
e03125a382 feat: add organization-related models and update schemas for organization management 2026-02-08 21:16:26 +05:30
Abhimanyu Saharan
999ec6d1bb Add gateway template sync for agents 2026-02-07 04:24:06 +05:30
Abhimanyu Saharan
5f603b205a feat: remove skyll_enabled attribute and related functionality from gateways 2026-02-07 00:30:53 +05:30
Abhimanyu Saharan
6c14af0451 feat: add is_chat field to board memory and task_id to approvals, update pagination and response models 2026-02-06 19:11:11 +05:30
Abhimanyu Saharan
d86fe0a7a6 feat: add validation for minimum length on various fields and update type definitions 2026-02-06 16:12:04 +05:30
Abhimanyu Saharan
f258b756e8 feat: refactor imports and clean up code formatting across multiple files 2026-02-06 02:43:08 +05:30
Abhimanyu Saharan
4cc6c42440 feat: add is_board_lead property to agent and board types 2026-02-05 19:06:32 +05:30
Abhimanyu Saharan
d1241360c9 fix: notify main agent on gateway update 2026-02-05 15:48:54 +05:30
Abhimanyu Saharan
0187ea4207 feat: provision main agent on gateway 2026-02-05 15:42:07 +05:30
Abhimanyu Saharan
51313a9272 feat(activity): Simplify query statements and improve code readability 2026-02-05 00:21:33 +05:30
Abhimanyu Saharan
8452dc110e feat(dashboard): Implement system health check and enhance UI for agent management 2026-02-04 23:43:40 +05:30
Abhimanyu Saharan
b6f31fe6ea feat(gateways): Introduce gateway model and update agent provisioning templates 2026-02-04 23:07:22 +05:30