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 ​
header? ​
readonlyoptionalheader?:string
Defined in: packages/auth/src/types.ts:478
Header carrying the shared secret.
Default ​
"x-internal-secret"roles? ​
readonlyoptionalroles?: readonlystring[]
Defined in: packages/auth/src/types.ts:485
Roles granted to a trusted caller.
scopes? ​
readonlyoptionalscopes?: readonlystring[]
Defined in: packages/auth/src/types.ts:487
Scopes granted to a trusted caller.
secret ​
readonlysecret:string
Defined in: packages/auth/src/types.ts:473
The shared secret, constant-time compared against the header value.
subject? ​
readonlyoptionalsubject?:string
Defined in: packages/auth/src/types.ts:483
Subject identity assigned to a trusted call.
Default ​
"internal"type? ​
readonlyoptionaltype?:string
Defined in: packages/auth/src/types.ts:489
Credential type set on the resulting AuthContext.
Default ​
"internal"