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