P0 ARDR research: migrate Bixby account linking from server OAuth authority to central ZITADEL #162
Labels
No labels
bug
design
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
research
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nsaspy/starintel-auto-research#162
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?
StarIntel problem solved
Reconcile the open P0 identity conflict in
starintel-labs/starintel-infra#39.Older Bixby research/design (
#144) treated the standalonestarintel-serverOAuth authorization-code provider as the public identity authority. Current StarIntel architecture makes self-hosted ZITADEL atauth.starintel.actorthe canonical identity authority (starintel-infra#74). The Bixby capsule/gateway contract must migrate without duplicating identity systems, losing scope semantics, or breaking guest Intelligence.Owning implementation issue:
starintel-labs/starintel-infra#39.Related deployment/gateway issues:
starintel-infra#34,#71,#74.Legacy research:
starintel-auto-research#144.ARDR state
READY_FOR_DESIGNImplementation approval remains operator-only.
Current source evidence
Current
lost-rob0t/starintel-bixby/mainstill records signed-in Intelligence authority asstarintel-server-core-oauthand marks the server provider implemented, while registration remains incomplete. Operations already models OAuth authorization-code user authority and delegates execution through the infra-owned Bixby gateway.This means the migration can occur before Samsung registration is complete and without preserving a deployed Bixby dependency on the legacy provider.
Current upstream evidence
Bixby
Current Bixby Developer Center documentation confirms:
authorization.bxbsupports standard OAuth 2.0 authorization-code flows;S256/SHA256challenge methods;authorize-endpoint,token-endpoint,client-id,client-secret-key, and optionalscopeare native capsule configuration;Therefore Bixby does not require a StarIntel-specific authorization server implementation. It can target standards-shaped ZITADEL OAuth/OIDC endpoints directly.
ZITADEL
Current ZITADEL documentation confirms:
Research decision
The canonical Bixby user authorization path is:
The legacy
starintel-serverOAuth provider is not the long-term Bixby identity authority.Identity and token boundary
Scope mapping
Preserve existing StarIntel capability meaning instead of inventing Bixby-only permissions.
Initial mapping target:
documents:read,search:read;starintel.autodig.read,starintel.autodig.control;openidplus only profile claims actually needed by the gateway/product.The exact ZITADEL project roles/audience claims must map to owner-service scopes; a successful login alone grants no operator/admin capability.
Legacy server OAuth migration classification
Do not delete the existing
starintel-serverOAuth core/provider merely because Bixby moves.Before removal/deprecation:
The server may continue to validate/authorize StarIntel tokens and own service policy without owning user login.
Required gateway validation
The gateway must reject:
Validation must be based on issuer discovery/JWKS and stable claims, not a network call to ZITADEL on every request unless a later revocation policy specifically requires introspection.
Registration/manual boundary
Samsung Developer Center remains an operator/manual boundary for values Samsung requires, including:
Infra may generate/document the expected values but must not fabricate successful Samsung registration.
StarLang classification
No new StarLang syntax is justified.
Identity-provider deployment/configuration belongs to StarIntel infra; gateway token validation belongs to the gateway/runtime adapter; owner-service authorization remains in canonical service policy. StarLang-defined actors/domain servers consume already-authorized principal/capability context and cannot mint or expand user authority.
Adversarial findings
Rejected:
Mandatory RED-first targets for eventual implementation
No production mutation before RED evidence.
starintel-server-core-oauthmust fail the desired architecture check requiringauth.starintel.actor/ central ZITADEL authority.targets:dispatchor Auto-Dig control scope must reject corresponding Operations action.Decision
Evidence is sufficient to proceed directly to design. No unresolved architecture question requires human research validation.
Implementation approval:
PENDING / AWAITING_OPERATOR_APPROVAL.