Fix auth — set HERO_CONTEXTS=default for osis/os openrpc #40

Closed
mik-tf wants to merge 1 commit from development_fix_osis_context into development_production_container
Owner

Summary

  • Set HERO_CONTEXTS=default in hero_osis_openrpc.toml and hero_os_openrpc.toml
  • The frontend (hero_os_ui) uses context "default" for all RPC calls
  • But hero_osis_openrpc defaults to context "root", creating sockets at .../root/hero_osis_openrpc.sock
  • The frontend calls /rpc/default which looks for .../default/hero_osis_openrpc.sock — file not found

Verification

Tested inside the production container:

# Before fix:
curl -s -X POST http://127.0.0.1:8801/rpc/default ... → "Cannot connect to backend socket: No such file or directory"

# After fix (HERO_CONTEXTS=default):
curl -s -X POST http://127.0.0.1:8801/rpc/default ... → {"result":{"challenge":"..."}}

Full proxy chain works: hero_os_http (8804) → hero_osis_http (8801) → unix socket → hero_osis_openrpc

Closes #39

## Summary - Set `HERO_CONTEXTS=default` in `hero_osis_openrpc.toml` and `hero_os_openrpc.toml` - The frontend (hero_os_ui) uses context `"default"` for all RPC calls - But hero_osis_openrpc defaults to context `"root"`, creating sockets at `.../root/hero_osis_openrpc.sock` - The frontend calls `/rpc/default` which looks for `.../default/hero_osis_openrpc.sock` — file not found ## Verification Tested inside the production container: ```bash # Before fix: curl -s -X POST http://127.0.0.1:8801/rpc/default ... → "Cannot connect to backend socket: No such file or directory" # After fix (HERO_CONTEXTS=default): curl -s -X POST http://127.0.0.1:8801/rpc/default ... → {"result":{"challenge":"..."}} ``` Full proxy chain works: hero_os_http (8804) → hero_osis_http (8801) → unix socket → hero_osis_openrpc Closes #39
The frontend (hero_os_ui) uses context "default" when calling RPC
methods, but hero_osis_openrpc defaults to context "root". This
causes a socket path mismatch — the frontend calls /rpc/default but
the socket only exists at .../root/hero_osis_openrpc.sock.

Set HERO_CONTEXTS=default in both service TOMLs to align with the
frontend expectation.

Closes #39
mik-tf changed title from WIP: Fix auth — set HERO_CONTEXTS=default for osis/os openrpc to Fix auth — set HERO_CONTEXTS=default for osis/os openrpc 2026-02-26 23:58:41 +00:00
mik-tf closed this pull request 2026-02-27 14:52:38 +00:00
Author
Owner

Superseded by #43 (combined deploy branch with all PRs merged).

Superseded by #43 (combined deploy branch with all PRs merged).

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lhumina_code/hero_services!40
No description provided.