Garage
S3-compatible object storage for the apps on your node.
Category: Databases
Garage, from Deuxfleurs, is an open-source object store. It speaks the Amazon S3 API, so any application that already uses an S3 SDK, the AWS CLI, or rclone can keep files in it. EmberNet packages Garage 2.4.1 and does the setup for you.
What it does
- Stores objects in buckets over the S3 API.
- Sets itself up after every install and upgrade: it connects the nodes, creates the buckets you ask for, and issues the access keys you ask for.
- Hands each access key to your apps with the credentials, endpoint, region, and bucket they need, under the names S3 clients already read.
- Keeps its generated secrets the same across upgrades.
When to use it
Use Garage when an application on the node needs somewhere to put files, such as media, exports, or backups from another app, and it can talk S3. With one node it is a simple store for an edge site or a lab. With three nodes it keeps three copies of every object and keeps serving reads and writes when one node fails.
Running on EmberNet
- One instance per node. The App Store installs one Garage per node, for your organization.
- Single node or three. The default is one node with one copy of each object. For three copies, choose three nodes before you install. The number of copies cannot be changed on a running site, so choose first.
- Buckets and keys are yours to declare. Name them before you deploy and they are created for you. Garage never deletes a bucket or a key, including ones you later remove from the list.
- Your data survives restarts.
- Use path-style addressing. Set your client to path-style requests, and to sign for the region the app gives you.
- No web page. Garage has no interface of its own, so its card has nothing to open. Your apps reach it from inside your site.
- Sized small by default.
- Locked down. It runs as an unprivileged user with a read-only filesystem.
- Open to your site by default. Every app on the site can reach Garage. You can limit S3 access to the apps you name.
Replication protects against losing a node. It does not protect against a client deleting or overwriting an object, because Garage replicates that change too, and Garage keeps no object versions. Copy important buckets to a second store on a schedule.