Skip to main content
Version: latest (master)

Interface: OpControlSubscriberOptions

Defined in: src/op-control.ts:72

Properties

agentId

agentId: string

Defined in: src/op-control.ts:76


allowInsecure?

optional allowInsecure?: boolean

Defined in: src/op-control.ts:90

Permit a plaintext (createInsecure) channel to a non-loopback gateway. Off by default: control-plane signals (pause / terminate) and the agent identity triple travel this stream, so an unencrypted channel to a remote host is opt-in only. Loopback targets stay plaintext without this flag (local dev-mode gateway). Ignored when credentials is set.


clientFactory?

optional clientFactory?: () => OpControlClient

Defined in: src/op-control.ts:94

Test seam — when supplied, skips opening a real gRPC channel and uses this client directly. Used by the vitest tests.

Returns

OpControlClient


credentials?

optional credentials?: ChannelCredentials

Defined in: src/op-control.ts:82

Explicit credentials override. When supplied it is used verbatim and the loopback / allowInsecure defaulting below is bypassed — the caller has taken full responsibility for the transport (e.g. createSsl(...) with a custom CA, or createInsecure() for an in-cluster sidecar).


orgId

orgId: string

Defined in: src/op-control.ts:74

Composite identity of the subscribing agent.


teamId

teamId: string

Defined in: src/op-control.ts:75