P0: expose trusted delegated Auto-Dig session registration for StarIntel adapters #54
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority:P1
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nsaspy/quasar#54
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Consumer:
starintel-labs/starintel-infra#72Depends on: #50, #52
Problem
Quasar now owns canonical delegated-human Auto-Dig capability mapping and per-principal run isolation, but
register-delegated-autodig-user-sessionis only an in-process function. The infra-owned Bixby gateway cannot safely consume that owner boundary until a trusted private adapter can register a short-lived Quasar session from an already authenticated StarIntel principal/scopes.Do not make Quasar validate arbitrary Samsung/Bixby tokens and do not let public callers choose Quasar capabilities.
Required owner boundary
TDD-first, design and implement the smallest private/trusted registration seam that can be called by a StarIntel service adapter and that:
register-delegated-autodig-user-session/ canonical fixed capability mapping;TDD/security gate
Cover unauthorized registration, capability injection, workspace wildcard injection, scope narrowing, token replay/expiry, two principals sharing a workspace, and successful session use through the live WebSocket path from #52.
Exit
The infra gateway can obtain a narrow Quasar delegated session using an already-validated StarIntel human identity without DB/RabbitMQ/UI/browser shortcuts or gateway-local lifecycle authority. Exact-head CI green before merge.
RAGE implementation is now in draft PR #60 at exact head
dc00fff2fe6d6d017a97a5292146f476ad3866a8.Current slice is no longer only in-process: it adds a separately started private Clack registration endpoint at
/internal/v1/autodig/delegated-session, authenticated by a configured service secret and fixed trusted service identity. The request accepts only principal, explicit workspaces, canonical StarIntel scopes, and bounded TTL; caller-selected Quasar capabilities and wildcard workspaces reject. Minted WebSocket handshake sessions are tagged:delegated-user, one-time, and <=60s, preserving #51/#53 per-principal enforcement.Tests were committed before implementation and cover unauthorized registration, capability/workspace injection, expiry/replay, private-route-only behavior, and secret non-reflection. Exact-head CI is currently executing; no green claim yet. Consumer infra #72 must remain fail-closed until #60 is green/merged/deployed.