AnthropicWorkloadIdentity

org.llm4s.llmconnect.config.AnthropicWorkloadIdentity
See theAnthropicWorkloadIdentity companion object
@Stable
final case class AnthropicWorkloadIdentity

Anthropic workload identity federation: the Anthropic SDK reads the identity token (e.g. a SPIFFE JWT-SVID kept fresh by spiffe-helper) from identityTokenFile on every exchange and presents it to <baseUrl>/v1/oauth/token under federationRuleId. The ids are redacted in toString.

The SDK reads the file itself, so llm4s's own checks on an identity token file (a regular file of at most 64 KiB, read with a bounded read) do not guard its reads. AnthropicClient applies them when the client is built (AnthropicWorkloadIdentity.checkTokenFile): a path that is a directory, a FIFO, a device or a file larger than a token is refused then. A path that does not exist yet is accepted, since an identity agent such as spiffe-helper may write it after the application starts; and the SDK's later reads are unchecked, so point it at a file the agent maintains.

Attributes

Companion
object
Source
AnthropicWorkloadIdentity.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any
Source
AnthropicWorkloadIdentity.scala

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product