IdentitySource

org.llm4s.llmconnect.auth.IdentitySource
@Stable

Where a workload's identity token comes from - typically a SPIFFE JWT-SVID file that spiffe-helper keeps fresh. The configured form, before it is read: IdentityTokenProvider.from makes the IdentityTokenProvider that reads it. Stable since #1818, as part of the workload-identity configuration the Stable configs carry.

Attributes

Source
IdentityTokenProvider.scala
Graph
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Type members

Enum entries

final case class File(path: Path)

A file re-read on every fetch, so a rotated token is picked up.

A file re-read on every fetch, so a rotated token is picked up.

Attributes

Source
IdentityTokenProvider.scala
final case class Literal(token: Secret)

A fixed token: for tests, or a token injected some other way. A Secret, so it stays out of logs.

A fixed token: for tests, or a token injected some other way. A Secret, so it stays out of logs.

Attributes

Source
IdentityTokenProvider.scala