tabbify.io
Documentation
Product directionEDGE BOX
ReferenceArchitecture

Managed data

Tabbify offers PostgreSQL, key-value, and S3-compatible resources in early access. A resource belongs to one tenant and can be connected to approved applications. Availability of a resource type does not imply a complete highly available, disaster-recovery, or point-in-time recovery service.

Managed data is a shared responsibility. Your team owns schemas, queries, migrations, data classification, application retention, and safe client behaviour. Tabbify operates only the resource and procedures explicitly accepted into the engagement.

Choose the resource

NeedResourceCurrent limitation to design around
Transactions, relations, constraints, reportingPostgreSQLNo complete automatic failover or PITR service
Cache entries, short-lived state, counters, coordinationKVPersistence and recovery are not a universal durability guarantee
Files, media, exports, artifacts, immutable objectsS3-compatible object storageCompatibility covers selected operations, not every AWS S3 feature

An application may use all three, but each one needs its own failure and recovery decision.

Provisioning

The current console entry points are:

  • Data -> Databases for PostgreSQL;
  • Data -> Caches for KV;
  • Data -> Buckets for S3-compatible object storage.

During early access, confirm the resource type, owning application, environment, expected size, network exposure, data sensitivity, and required recovery procedure before copying production data. Redundancy, retention, and recovery are not inferred from the create action. There is no region choice for object storage: the S3 endpoint always signs as us-east-1.

Connections and credentials

Pass connection material through Tabbify-managed configuration or secrets. Do not commit database URLs, passwords, or access keys to Git.

A safe connection has separate controls:

  1. Network reachability - the application has an approved tenant-private path or explicitly configured public endpoint.
  2. Credentials - the application receives only the credential it requires. For object storage there is one key pair per instance, so every app bound to an instance holds the same key.
  3. Service policy - database permissions and key namespaces constrain operations. Object storage has no bucket policies or per-prefix permissions; scope access by giving separate data separate instances.
  4. Application policy - the calling service still authenticates its users and validates requests.

A private address is not authorization, and a credential does not guarantee that the network path is available.

Rotating a password

Rotate a password on the instance's Connect tab gives a database, cache, bucket or ClickHouse a new password. The old password stops working at once. Apps that use the instance keep running on the old value until their next deploy, so redeploy them after a rotation.

Where rotation through the node is on for the site, the platform keeps the new password for the next deploy of every app and container that uses the instance, and the console's rotation dialog shows the new password once, with a copy button. For ClickHouse it also shows the DSN with the new password in it, with the same copy button, when the platform could read the instance's address (otherwise the password alone). Where it is off, the console rotates through the store, and the MCP tool below is not in the tool list.

Agents rotate with the MCP tool store_rotate_credentials (listed only where rotation through the node is on):

  • Arguments: instance_id, the instance (for example i-pg-…, as the console and store_connection name it); role, the role to rotate on Postgres and ClickHouse (omit it for the instance's own credential); tenant, only with the platform key.
  • Needs store.<kind>.manage in the instance's environment (store.pg.manage for Postgres). An instance in no environment needs an account of its tenant.
  • Answer: instance, kind (pg, kv, s3, ch), consumers (each with kind (app or container), uuid, name, environment, via (connect, resource_bind or owner) and reference, the env key it reads the instance through), redeploy_needed (always true), kept_in (the environments that hold the new value now) and not_kept (environments whose copy could not be written: rotate again before you redeploy). The answer never carries the new password: the user reads it in the console. Redeploy each app in consumers with app_action {app, action: "redeploy"}.
  • Refusals: no such instance of yours, or this surface is not enabled (the instance is not the caller's, does not exist, or rotation through the node is off); rotating needs store.<kind>.manage in <environment>; the instance is in no environment and nothing uses it (move it to an environment first, so the new password has a place to be kept); Store did not confirm the rotation (if it landed, the old password no longer works: rotate again).

PostgreSQL

Use PostgreSQL for authoritative relational state. Separate production, staging, and development databases and credentials. Reserve owner credentials for controlled migrations and recovery; applications should use a narrower role.

Treat schema changes as releases:

  • make the new schema compatible with the currently running application where practical;
  • run each migration once from a controlled job;
  • set lock and statement timeouts;
  • record the migration revision with the source commit outside the platform;
  • rehearse a forward fix or applicable restore before a destructive change;
  • remove old columns only after all callers have moved.

Bound connection pools to the provisioned capacity. A new deployment must not create an unbounded number of connections, and retries must be limited to errors known to be transient.

Current PostgreSQL limit: the public early-access offer does not provide a complete highly available database service, automatic geographic failover, or user-facing PITR. Backup and restore coverage depends on the specific resource and written operating scope. Do not assume a recovery objective that has not been exercised for that resource.

KV

KV is suitable for caches, expiring tokens, rate counters, coordination, and state that can be reconstructed. Prefix keys by application and environment, set TTLs where appropriate, and keep values bounded.

Decide explicitly whether each value is cache or authoritative state. If losing it would lose a business record, keep the authoritative copy in PostgreSQL or define and test a resource-specific persistence and restore procedure.

Current KV limit: persistence, backup, failover, and eviction behaviour depend on the selected profile and engagement. The early-access service is not a blanket durable-record guarantee.

S3-compatible object storage

Use object storage for complete objects addressed by key: uploads, media, exports, datasets, and artifacts. Keep credentials out of object keys, separate private originals from public derivatives, and make retried uploads safe.

S3 compatibility should be tested with the exact client operations your application uses. Do not assume support for every AWS API, lifecycle rule, versioning behaviour, checksum mode, or event integration. Object storage is not a POSIX filesystem and does not provide arbitrary in-place file updates.

Current object-storage limit: advanced S3 features, geographic redundancy, and full-bucket disaster recovery are not part of the general early-access promise. Record any required feature and verify it during the pilot.

Connecting an app to a bucket

Bind the instance to the app with the MCP tool resource_bind, with resource = "s3/<instance_id>" and an env_key of your choice. It stores one secret, which the app reads as secret:<ENV_KEY> from its next deploy:

http://<access_key_id>:<secret_access_key>@169.254.169.2:<port>/<bucket>
  • 169.254.169.2 is the fixed in-guest address of every declared link. The port starts at 8081 and moves up if it is taken. The link is plain HTTP inside the microVM; it is carried over the private mesh outside it.
  • No AWS_* or S3_* variables are set. Parse the access key, secret key, endpoint and bucket out of that one value.
  • Use path-style addressing (http://169.254.169.2:<port>/<bucket>/<key>). The bucket is read from the first path segment; virtual-host style does not work.
  • Sign with region us-east-1 and service s3. Any other region is refused with credential scope mismatch.

What the S3 endpoint does and does not support

FeatureBehaviour
Conditional writes (If-None-Match, If-Match, x-amz-copy-source-if-*) on PUT, POST, DELETERefused with 501 NotImplemented before anything is written. GET and HEAD ignore conditions.
User metadata (x-amz-meta-*)Not stored; silently dropped.
Checksumsx-amz-checksum-* is verified only as a trailer on streaming (STREAMING-*-TRAILER) uploads and echoed in the response; it is not stored. Content-MD5 is not checked.
Bucket policy, CORS, lifecycle subresourcesNot implemented. Do not rely on them.
Request durationEach connection is closed after 300 seconds. A single PUT that cannot finish in 300 s fails; use smaller objects or a faster link.
Object sizeNo separate per-object cap; the tenant quota applies. Keys are limited to 1024 bytes.

Encryption and multipart uploads

Objects are encrypted per object by default (enc=dek). The request header x-tabbify-enc: none stores an object without that layer; any value other than none or dek is refused with 400. A GET returns the stored label in x-tabbify-enc.

Multipart upload is refused by default. Without x-tabbify-enc: none on CreateMultipartUpload, the endpoint answers 501 with:

not implemented: multipart upload cannot honor enc=dek (multipart bodies are stored unencrypted in the MVP, which would void crypto-shred); use a single PUT or opt out explicitly with `x-tabbify-enc: none`

Choose one: upload with single PUTs (within the 300 s limit), or send x-tabbify-enc: none on the multipart upload and accept that those objects are stored without per-object encryption. A bucket pinned to encryption refuses multipart even with none.

Private and public instances

Each instance has a network access setting, private (default) or public:

  • private - reachable only over the private mesh, through bound apps. This is by design: a private instance has no internet endpoint.
  • public - additionally served at https://s3.public.store.tabbify.io (path-style). Requests to a private instance on that endpoint are refused with public ingress is disabled for this S3 instance.

Switch it in the console (Make public / Make private on the instance) or with PUT /v1/tenant/{kind}/{instance_id}/network-access.

Presigned URLs

A presigned URL lets a browser upload or download one object without holding the bucket's credentials. The endpoint accepts presigned requests with an expiry of 1 second to 7 days, and the signature covers the host. What you can do depends on the instance's network access.

A public instance. Sign the URL against the instance's public endpoint, which the platform hands to your app as ${resources.<link>.public_endpoint} (see tabbify.toml; path-style, the bucket is in the path). The browser can then open the URL from anywhere. Test the flow with your exact S3 client before you rely on it: the client has to sign for that host and not for the address it uses for its own requests.

A private instance. A browser cannot reach it, so there is no URL to hand out. The address your app uses, 169.254.169.2:<port>, works only inside that app's microVM, and a URL signed against it cannot be opened from outside. A deploy whose [env] asks for the public_endpoint of a private instance is refused, with the message presigned URLs need a public S3 instance: <name> is private (mesh only); switch it to public or serve objects through the app. Pick one of two ways out:

  • make the instance public (Make public in the console, or store_set_access over MCP) when the objects may be reached by anyone holding a signed URL;
  • keep it private and serve the file through your app: the app reads the object over the mesh and streams it to the user after its own checks.

One-time download links on your app's own domain are being worked on; do not plan around them yet.

Named keys

Where named bucket keys are on for the site, a bucket holds several keys, each with its own name and mode, so a reader can get a key that only reads. The key a bucket always had is its key default. Manage them on the bucket's Keys tab in the console, or with four MCP tools, which are listed only where named keys are on:

ToolArgumentsWhat it does and answers
bucket_keys_listinstance_id (i-s3-…)Reads only. Answers instance_id, max_keys (the most keys this site lets a bucket hold) and keys: each with key_id, name, mode (read or read_write), access_key_id, created_at_ms and last_used_at_ms (to the hour; absent until the key is first used). A key's id is its name.
bucket_keys_createinstance_id, name, mode; optional environment, secret_prefixMakes a key. read reads and lists only; read_write also writes. The key is kept as two secrets of the environment, <PREFIX>_ACCESS_KEY_ID and <PREFIX>_SECRET_ACCESS_KEY (prefix S3_<NAME> unless secret_prefix; the environment is the one your key or token acts in unless environment). Answers names only: instance_id, key_id, mode, environment, secrets (access_key_id, secret_access_key: the two secret names), used_by, redeploy_needed and a note.
bucket_keys_rotateinstance_id, key_id; optional environment, secret_prefixA new secret for one key, same mode; the old secret stops working at once. The new secret overwrites the environment secrets the key is kept under (prefix S3_<KEY ID> unless secret_prefix). Answers like bucket_keys_create; used_by lists who reads those secrets: redeploy them to take the new one. Rotating default is the same as rotating the bucket's credentials.
bucket_keys_deleteinstance_id, key_idDeletes one key; it stops working at once. The bucket's last key cannot be deleted. Answers instance_id, key_id, deleted: true.

An agent never receives the secret of a key: bucket_keys_create and bucket_keys_rotate store it as environment secrets and answer their names. An app reads it as secret:S3_<NAME>_ACCESS_KEY_ID and secret:S3_<NAME>_SECRET_ACCESS_KEY in its [env] (see Environment and secrets). Both tools need environment secrets on the site and secrets.write in the environment; a secret name already taken is refused before the key is made. A person who makes a key on the bucket's Keys tab in the console sees its secret there once: Tabbify keeps no other copy, and a lost secret is rotated, not shown again. Never put a secret in a manifest or in code.

Refusals:

  • a name that is not 1 to 64 lower-case letters, digits, - or _, starting with a letter or a digit;
  • the bucket already has a key <name>, and a bucket holds at most <n> keys;
  • no key <key_id> on this bucket;
  • the bucket's last key cannot be deleted; delete the bucket instead;
  • no such instance of yours, or this surface is not enabled: the bucket is not yours, does not exist, or named keys are off.

A refusal of the store itself comes back as store refused (<status>): <error>.

ClickHouse

Table retention

How long a ClickHouse keeps a row is set per table: a table TTL on the first Date or DateTime column of the table's sorting key. Where table retention is on for the site, set it on the instance's Retention tab in the console, or with the MCP tool clickhouse_table_retention, which is listed only where it is on.

  • Arguments: instance_id (i-ch-…); table, as <database>.<table>; retention_days, or keep_forever: true.
  • Without table it lists: instance_id, default_retention_days (the instance's own retention, offered to tables without one; absent when it has none), max_retention_days (the largest retention this site accepts) and tables, each with database, table, rows, bytes, time_column (absent: the table cannot take a retention), retention_days (absent: rows are kept until deleted) and custom_ttl (a TTL of another form, shown as the engine has it).
  • With table and retention_days it sets the retention; with table and keep_forever: true it removes it. Either answers that table's row. Setting a retention replaces a custom_ttl. The answer comes once the engine has accepted the change; older rows are removed after that.
  • Databases the platform declared for the instance (a schema recipe's) are neither listed nor changed.
  • Refusals: give either retention_days or keep_forever: true with a table; a retention outside 1 to max_retention_days days; a table not in the <database>.<table> form; no table <database>.<table> on this instance; a table with no Date or DateTime column in its sorting key; an instance that is not ready; no such instance of yours, or this surface is not enabled. A refusal of the store itself comes back as store refused (<status>): <error>.

Data disks

An application can keep files on a persistent disk:

[runtime]
stateful     = true
data_disk_mb = 4096   # optional; default 2048
  • The disk is always mounted at /data inside the microVM.
  • It survives redeploys. On a redeploy of a stateful app the old microVM stops before the new one boots, so there is a short pause and never two writers on one disk.
  • The size is capped per host. Raising data_disk_mb grows the disk in place; lowering it does nothing. A stopped app can also be grown with the resize action.
  • When the app is deleted, its disk is retained for 7 days and then removed. Within that window data_disk_attach can move a retained disk onto a stopped or not-yet-created app in the same environment on the same host (the target's previous disk is retained in turn, so a wrong attach can be undone). data_disk_delete removes a retained disk immediately and cannot be undone.
  • data_disk_backup and data_disk_restore run on demand as jobs; the guest is paused during the copy and the backup is crash-consistent. Where nightly disk backups are on, data_disk_list shows each disk's backup_schedule; otherwise a disk is backed up only on demand.
  • Where the platform has them on, two more disk tools match the console's actions. data_disk_detach detaches a stopped app's disk: the disk becomes retained with its data and backups, the app's next start creates a new empty disk, and data_disk_attach can put the old one back within the retention window; it runs as a job (poll data_disk_job_status, outcome detached). data_disk_backup_schedule sets one disk's nightly schedule, daily (once a night, 02:00-05:00 Europe/Belgrade) or off (manual backups only), and optionally keep_days (1-365), how long its backups are kept; it answers the disk's row.

Known issue: a disk backup can fail when the backup store answers with a temporary refusal; the platform does not retry it for you. Check the result of each data_disk_backup job and run it again if it failed. Unless nightly backups are on, backups run only on demand, so keep an application-level export of anything you cannot recreate.

Backup and restore

The current service does not offer complete HA, full DR, or universal PITR across these resource types. Some backup and restore paths exist and selected paths have been exercised, but that evidence must not be generalized to every resource, failure mode, or retention period.

Before production use, write down:

  • exactly what is backed up and by which mechanism;
  • how much recent data may be lost;
  • how long the applicable restore may take;
  • retention and deletion rules;
  • who can request and verify recovery;
  • the last successful exercise using this resource's actual path.

A restore exercise must validate application behaviour and data consistency, not only that an archive can be opened. If the required failure mode has no exercised recovery path, treat it as an accepted risk or keep the data elsewhere.

Production checklist

  • [ ] The resource is marked early access in the architecture decision.
  • [ ] The owner, environment, consuming applications, and exposure are recorded.
  • [ ] Application and migration credentials are separate.
  • [ ] Secrets are injected and rotation is documented.
  • [ ] Pools, timeouts, retries, TTLs, and object sizes are bounded.
  • [ ] Required client operations have been tested against the exact service.
  • [ ] Backup scope, tolerated loss, recovery time, and retention are written down.
  • [ ] The applicable restore path has been exercised, or the gap is explicitly accepted.
  • [ ] Deletion and offboarding behaviour are agreed.

For the surrounding human operating model, see Managed operations. For application reachability, see Private Mesh.