Skip to main content

Secrets runtime reference

Use this page to compare how the JavaScript and Python SDKs read secrets. Manage secrets and secret types in TaruviBase Console.

Interface support#

InterfaceCurrent coverage
TaruviBase ConsoleCreate, inspect, edit, and delete secret types and site/app secrets
JavaScript SDKRuntime get and batch list
Python SDKRuntime get and filtered or batch list, sync and async
HistoryNot available through Console or the SDKs

SDK runtime read methods#

TaskJavaScript SDKPython SDK
Read one keysecrets.get(key, options).execute<SecretResponse>()client.secrets.get(key, *, app=None, tags=None)
Retrieve several keysawait secrets.list(keys, options)client.secrets.list(keys=[...], ...)
List and filterNot exposed as a separate list modeclient.secrets.list(search=..., tags=..., secret_type=..., page=..., page_size=...)
Create, edit, or deleteNot exposedNot exposed
Read historyNot exposedNot exposed

This reference covers JavaScript SDK 1.5.4 and Python SDK 0.2.3.

Keys and scope#

Keys can be up to 255 characters and are unique within their site or app scope. The API accepts any characters in a key.

Supplying an app selects that app's value first, then the site fallback when no app value exists. Python uses the configured app_slug when the app argument is omitted. JavaScript uses options.app only when it is supplied to the call.

Read-one options#

  • App scope — options.app in JavaScript, app= in Python. Selects the app's value, with the site value as the fallback.
  • Required tags — options.tags in JavaScript, tags= in Python. Returns not found when the resolved secret has none of the requested tags, matched by tag name.

The single-secret result contains key, tags, secret_type, and value. JavaScript execute() retains the standard response wrapper and exposes the secret in its data field. Python get() extracts and returns the secret object.

Batch options#

  • Keys — The first keys argument in JavaScript, keys= in Python. Comma-joined by the SDK; up to 100 keys.
  • App scope — options.app in JavaScript, app= in Python. Applies app-over-site resolution.
  • Include metadata — options.includeMetadata in JavaScript, include_metadata= in Python. Returns metadata objects instead of values only.

Both SDK list() methods retain the response wrapper, so the key map is in data. Missing or sensitivity-denied keys are omitted. JavaScript 1.5.4 types batch values as strings even though runtime values can also be JSON objects.

Python list filters#

When keys is absent, Python list() can browse and filter the readable collection.

  • search — A partial key match.
  • app — The app context. Defaults to the configured app_slug.
  • tags — A list of tag slugs to filter by.
  • secret_type — A secret-type slug to filter by.
  • page — The page number. Defaults to 1.
  • page_size — Items per page. Defaults to 20, clamped to 1 through 100.

The wrapper contains status, message, and data. List responses also include total; they do not emit a separate pagination object.

Error and disclosure behavior#

A read can fail with an authentication, permission, not-found, conflict, or validation error. Each read endpoint treats public, private, and sensitive values differently; see Security and limits for who can read what, and how caching works.