Skip to content

Connectum API Reference / @connectum/auth / SharedSecretTrustOptions

Interface: SharedSecretTrustOptions ​

Defined in: packages/auth/src/types.ts:471

Options for sharedSecretTrust.

DEV-ONLY: a single shared secret is NOT per-service — one compromise forges all callers. Use meshIdentityTrust or signedTokenTrust in production. See ADR-029.

Properties ​

readonly optional header?: string

Defined in: packages/auth/src/types.ts:478

Header carrying the shared secret.

Default ​

ts
"x-internal-secret"

roles? ​

readonly optional roles?: readonly string[]

Defined in: packages/auth/src/types.ts:485

Roles granted to a trusted caller.


scopes? ​

readonly optional scopes?: readonly string[]

Defined in: packages/auth/src/types.ts:487

Scopes granted to a trusted caller.


secret ​

readonly secret: string

Defined in: packages/auth/src/types.ts:473

The shared secret, constant-time compared against the header value.


subject? ​

readonly optional subject?: string

Defined in: packages/auth/src/types.ts:483

Subject identity assigned to a trusted call.

Default ​

ts
"internal"

type? ​

readonly optional type?: string

Defined in: packages/auth/src/types.ts:489

Credential type set on the resulting AuthContext.

Default ​

ts
"internal"