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
