ApiKeyProvider

org.llm4s.llmconnect.auth.ApiKeyProvider
See theApiKeyProvider companion trait

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def file(path: Path): ApiKeyProvider

The trimmed content of path, read again whenever the file changes: each current() checks the file's modification time, size and identity (one stat) and re-reads it only when one of them differs from the last read. A key that Vault Agent, the Secrets Store CSI driver or a Kubernetes secret volume rewrites - in place, or by swapping a symbolic link - is therefore sent from the next request on.

The trimmed content of path, read again whenever the file changes: each current() checks the file's modification time, size and identity (one stat) and re-reads it only when one of them differs from the last read. A key that Vault Agent, the Secrets Store CSI driver or a Kubernetes secret volume rewrites - in place, or by swapping a symbolic link - is therefore sent from the next request on.

A missing or unreadable file, one that is not a regular file, a blank one, one over 64 KiB or one holding more than one line is a ConfigurationError naming the path; the file's content is never put in an error or a log.

Attributes

Always key.

Always key.

Attributes