Connectum API Reference / @connectum/auth / SharedSecretTrustOptions
Interface: SharedSecretTrustOptions ​
Defined in: packages/auth/src/types.ts:599
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 ​
header? ​
readonlyoptionalheader?:string
Defined in: packages/auth/src/types.ts:606
Header carrying the shared secret.
Default ​
"x-internal-secret"roles? ​
readonlyoptionalroles?: readonlystring[]
Defined in: packages/auth/src/types.ts:613
Roles granted to a trusted caller.
scopes? ​
readonlyoptionalscopes?: readonlystring[]
Defined in: packages/auth/src/types.ts:615
Scopes granted to a trusted caller.
secret ​
readonlysecret:string
Defined in: packages/auth/src/types.ts:601
The shared secret, constant-time compared against the header value.
subject? ​
readonlyoptionalsubject?:string
Defined in: packages/auth/src/types.ts:611
Subject identity assigned to a trusted call.
Default ​
"internal"type? ​
readonlyoptionaltype?:string
Defined in: packages/auth/src/types.ts:617
Credential type set on the resulting AuthContext.
Default ​
"internal"