Drive Integration π‘ BETA
Operate the OtterIO object store with Vault-issued credentials and verify that the runtime sees the objects you change.
Admin guide Β· OtterIO runbook
| When to use | Before you start | Steps | Verify | Roll back |
|---|---|---|---|---|
| Provisioning storage, rotating credentials, checking a bucket | Vault read access, oc in /tmp |
Read manifest, set alias, list buckets | Object present and runtime reload observed | Restore prior object or config |
When to use
Use this runbook when Drive cannot list buckets, when a bot cannot read its KB, or when object storage is being provisioned.
Before you start
- OtterIO is pinned in
botserver/3rdparty.tomlwith a SHA-256 for each platform archive. Read the manifest for the current release and digest; do not trust a version in prose. - The service exposes the S3-compatible API and console; in the local development stack the internal API is on loopback at the Vault-provided port.
- Credentials come from
secret/gbo/drive; theocclient lives under/tmp. - Buckets are
.gborg/.gbaitrees; a bot's configuration, dialogs, knowledge and files are prefixes inside them.
Steps
# 1. Read the pinned release and checksum from the manifest.
grep -A8 '\[components.drive\]' botserver/3rdparty.toml
# 2. Read credentials from Vault and configure the local alias.
source <(grep -E '^VAULT_' "${WORKSPACE}/.env")
export VAULT_ADDR="$VAULT_ADDR"
export VAULT_CACERT="${WORKSPACE}/botserver-stack/conf/system/certificates/ca/ca.crt"
export VAULT_TOKEN=$(cat /tmp/vault-token-gb 2>/dev/null || echo "$VAULT_TOKEN")
VAULT_BIN="${WORKSPACE}/botserver-stack/bin/vault/vault"
DRIVE_ACCESSKEY=$($VAULT_BIN kv get -field=accesskey secret/gbo/drive)
DRIVE_SECRET=$($VAULT_BIN kv get -field=secret secret/gbo/drive)
DRIVE_PORT=$($VAULT_BIN kv get -field=port secret/gbo/drive)
/tmp/oc alias set local "http://127.0.0.1:${DRIVE_PORT}" "$DRIVE_ACCESSKEY" "$DRIVE_SECRET" --api s3v4
# 3. Inspect and, for Drive-owned content, upload an object.
/tmp/oc ls local/
/tmp/oc ls local/"<bot>.gbai"/"<bot>.gbkb"/docs/
/tmp/oc cp /tmp/document.pdf local/"<bot>.gbai"/"<bot>.gbkb"/docs/
Overview
OtterIO is the runtime home for Drive content. The drive monitors discover bots from the bucket tree and materialise them; git-owned dialogs and prompts are copies of the ALM repository.
Configuration
All credentials and the port come from Vault. Do not place an access key, secret or internal address in .env, config.csv or the repository.
Storage Structure
Bucket Organization
{org}.gborg contains workspaces ({workspace}.gbai); a workspace holds sibling .gbot, .gbdialog, .gbkb and .gbdrive prefixes for one or more bots.
Deployment Modes
Local Mode
The local stack provisions OtterIO from the offline cache and uses a loopback address with the Vault-provided port.
Container Mode (Incus)
In production the object store runs in its own Incus container; manage it with sudo incus exec <container> -- ... and keep hostnames in configuration.
External S3-Compatible Storage
A compatible backend can be used with the same client, provided the credentials remain in Vault and the bucket layout is preserved.
OtterIO release provenance
The release tag and digest are in botserver/3rdparty.toml. Verify a cached archive's SHA-256 before provisioning; a mismatch aborts the install.
Verify
| Check | Command | Pass condition |
|---|---|---|
| Manifest | grep on 3rdparty.toml |
release and digest present |
| Alias | /tmp/oc ls local/ |
buckets listed |
| Object | /tmp/oc ls .../docs/ |
uploaded object present |
| Runtime | botserver.log |
drive monitor observed the change |
| Secrets | repository search | no credential or internal address |
Roll back
π΄ Remove the uploaded object or restore the prior version from the restore runbook. Rotate the credential with the rotation runbook if it may have leaked.
Troubleshooting
Check Drive Status
sudo incus list --format csv and sudo incus exec <container> -- pgrep -a otterio confirm the process is running; use oc ls to confirm credentials.
Console Access
The console is reached through the proxy, not by publishing an internal address.