sys.files table plus its bytes. The bytes
live outside the log; the fact is transactional and carries the file’s
label. A fact of your own keeps the File point in a t.file field, next to
the filename and any other business data.
Use
act.store() and act.erase to guard file acts. The
system table serves inventory reads.
Files in the console
The console’s file storage page lists the installation’s stored files with their keys, sizes and content types. An operator can download a file there.
Where bytes and keys live
The bytes of every file live in the host’splatform.files slot, and the
root that wraps the installation’s data keys lives in platform.keys. Both
are slots: unbound, Bijection’s managed storage and key
ring serve them. To keep the bytes in your own bucket or the root in your own
KMS key, name it as the managed slot’s storage or root in the
installation’s bindings file. Bijection’s driver still operates it; the bucket
or key is yours:
bindings.ts
bijection deploy --bindings bindings.ts --trial shows the trust
to install. Deploy copies the stored files while the old storage serves. At
cutover, the Root fences writes, verifies the final copy and adopts the new
store in the file ledger. Every subsequent file path follows that ledger.
A standalone host uses its label partitions as the managed store. A move
to your own key rewraps every live data key under the new root. Your
code and File points do not change. Google Cloud and Azure have placement.gcp.gcsBucket,
placement.azure.container, placement.gcp.kms and placement.azure.keyVault.
placement.azure.container({ account, container, subscriptionId, resourceGroup, tenantId, clientId }) names the storage account’s
subscription and resource group, whose settings Bijection checks, and the app
registration it federates with. Cloudflare R2 has
placement.cloudflare.r2Bucket({ account, name, jurisdiction?, credential }),
where account is the Cloudflare account ID, name is the bucket name, and
jurisdiction is the bucket’s data jurisdiction (eu or fedramp) when it
has one. R2 has no workload
identity federation, so credential names a secret holding the bucket’s
tokens as JSON: { "accessKeyId", "secretAccessKey", "configurationToken" },
an object read and write token scoped to the bucket and an API token that
reads the bucket’s configuration.
Bijection keeps your files under bijection/<installation>/files/ in your
bucket and must be their only writer there. Before it copies into an S3
bucket, and again when it verifies the copy, the bucket policy must carry
this statement, with the role placement trust printed:
platform.files or platform.keys runs in the host’s own process,
for Bijection’s storage and yours alike. bijection placement show platform.files shows a move’s phase and any blocker. When you move off
Bijection’s storage, Bijection deletes its copy after the retention window,
every version of it. Moving back into Bijection’s storage waits until that
deletion is no longer running. A local installation run by bijection dev
keeps its files on the local disk: a move of its platform.files waits at
the adoption step and the local copy stays in use. See
switch providers.
Files kept elsewhere
Objects in a bucket you own stay there. The object storage source app reads them into labelled files and facts of your app.Libraries over files
- Documents: collaborative notes and templates, and the reports rendered from them.
- Recorded media: recordings, playback, transcripts and renditions.