Skip to content
Playground(another site)

bynk.actor.oidc_trust_from_not_string

Error An Oidc actor's trustFrom isn't a string naming an environment variable.

trustFrom names an environment variable whose JSON, when set, replaces the actor's declared trust roots at run time, as in a test or staging deployment. A variable is named by a string, so a number or other expression names nothing. Write the variable's name in quotes.

Example

type WorkloadId = String where NonEmpty
actor Workload { auth = Oidc(issuer = "https://i.test", audience = "a", jwks = "https://i.test/jwks", trustFrom = 5), identity = WorkloadId } // ✗ not a name
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_not_string shows the same from the installed toolchain, without a network.