Skip to content
Playground(another site)

bynk.actor.oidc_trust_from_is_secret

Error An Oidc actor's trustFrom names an environment variable that an actor uses as its secret.

trustFrom names a variable that holds trust roots as JSON. A variable an actor uses as its secret holds a signing key, and one variable cannot be both. Give trustFrom a variable of its own.

Example

type UserId = String where NonEmpty
type WorkloadId = String where NonEmpty
actor User { auth = Bearer(secret = "JWT_KEY"), identity = UserId }
actor Workload { auth = Oidc(issuer = "https://i.test", audience = "a", jwks = "https://i.test/jwks", trustFrom = "JWT_KEY"), identity = WorkloadId } // ✗ `JWT_KEY` is a key
actor Workload { auth = Oidc(issuer = "https://i.test", audience = "a", jwks = "https://i.test/jwks", trustFrom = "OIDC_TRUST"), identity = WorkloadId } // ✓

In the Book

See also

  • Every code in its category, Actors, on the diagnostic index.
  • bynk explain bynk.actor.oidc_trust_from_is_secret shows the same from the installed toolchain, without a network.