Accepts a OpenBaoConfig or plain options.
ReadonlyauthLogins, token self-service and token renewal.
ReadonlyconfigThe immutable configuration.
ReadonlyleasesLease renew/revoke/lookup and automatic lease renewal.
ReadonlysysSystem backend (health, seal status, policies, mounts, auth methods, AppRole admin).
ReadonlywrappingResponse wrapping.
Whether close was called.
Stops token renewers, managed leases and secret watchers, then releases connections. Idempotent.
Unauthenticated health: GET /v1/sys/health (answers 200 in every node state). healthy
is true only for an active, unsealed node; status is active, standby,
perfstandby, sealed or uninitialized (unreachable on any error). details holds
version, initialized, sealed, standby and clusterName (when set); on errors
error (and httpStatus). Never throws except for CANCELLED and CONFIG.
KV mount with auto-detected version (default mount config.kvMount). The same instance is
returned for the same mount.
Authenticated round trip (GET /v1/auth/token/lookup-self, allowed for every valid
token). Returns the latency in ms; a missing, invalid or revoked token raises
AuthenticationError.
Calls any OpenBao API path (/v1/<path>) with the client token, namespace, retries and
error mapping. Use it for endpoints this SDK has no method for.
SecretsProvider over a KV mount (default config.kvMount). client.close() stops
its watchers.
Server version from sys/health (e.g. 2.7.2).
Replaces the client token (undefined removes it).
StaticfromBuilds a client from GROW_OPENBAO_* and BAO_*/VAULT_* environment variables.
Client for OpenBao.