org.llm4s.llmconnect.auth.vault.VaultSettings
See theVaultSettings companion object
@Experimental
Where VaultApiKeyProvider reads an API key in HashiCorp Vault (#2479): the field field of the secret at path in the key/value secrets engine mounted at mount.
// the field apiKey of secret/data/llm4s/openai (KV version 2, mounted at secret/)
val settings = VaultSettings("https://vault.internal:8200", Secret(vaultToken), "llm4s/openai", "apiKey")
.withRefreshInterval(1.minute)
Value parameters
- address
-
Vault's base URL,
http(s)://host:port, without/v1 - field
-
the key of the secret's data that holds the API key
- kvVersion
-
the KV engine's version:
V2(versioned, the default) orV1 - mount
-
the path the KV secrets engine is mounted at;
secretby default, as invault server -dev - namespace
-
the Vault Enterprise / HCP Vault namespace, sent as
X-Vault-Namespace - path
-
the secret's path inside the mount, such as
llm4s/openai - refreshInterval
-
how long a key read from Vault is used before it is read again
- requestTimeout
-
how long one read from Vault may take
- token
-
the Vault token sent as
X-Vault-Token; never printed bytoStringnor put in an error
Attributes
- Companion
- object
- Source
- VaultSettings.scala
- Graph
-
- Supertypes
Members list
In this article
