Antoine Popineau d0706be988 Refactor how anonymous access is checked and add granular method grants.
Anonymous access can now be configured by allowing specific S3 methods.
Currently, this only includes `s3:HeadObject` and `s3:GetObject`. Umbrella
grants can also be used that translate to lists of methods (`garage:ReadObject` ->
[`s3:HeadObject`, `s3:GetObject`].

The CLI takes either a list of `--allow`ed methods, or a `--revoke-all`.

`ReqCtx` is now represented by an enum of either an authenticated requests
or an anonymous one. Handlers will take either one of those depending on whether
they allow anonymous access or not. `ReqCtxEnum` implements `TryInto` to transform
into the requested type (where building an anonymous context always works, but
building an authenticated one only works if the request contained valid
credentials).

When building an anonymous context, the bucket anonymous configuration will
be checked against the requested endpoint to check if all required methods are
allowed anonymously.
2026-11-25 09:50:48 +01:00
2026-11-17 12:24:52 +01:00
2026-11-25 09:50:48 +01:00
2020-06-30 17:18:42 +02:00
2023-01-04 18:35:10 +01:00
2026-11-25 09:50:48 +01:00
2021-03-16 16:35:46 +01:00
2026-09-16 23:56:15 +02:00
2020-04-10 22:01:48 +02:00
2026-04-27 07:33:27 +00:00
2026-05-01 21:36:17 +00:00

Garage status-badge

Garage logo

[ Website and documentation | Binary releases | Git repository | Matrix channel ]

Garage is an S3-compatible distributed object storage service designed for self-hosting at a small-to-medium scale.

Garage is designed for storage clusters composed of nodes running at different physical locations, in order to easily provide a storage service that replicates data at these different locations and stays available even when some servers are unreachable. Garage also focuses on being lightweight, easy to operate, and highly resilient to machine failures.

Garage is built by Deuxfleurs, an experimental small-scale self hosted service provider, which has been using it in production since its first release in 2020.

Learn more on our dedicated documentation pages:

Garage is entirely free software released under the terms of the AGPLv3.

S
Description
S3-compatible object store for small self-hosted geo-distributed deployments.
Readme AGPL-3.0 59 MiB
Languages
Rust 94.9%
Shell 1.8%
Clojure 1.4%
Nix 1.2%
Python 0.5%
Other 0.2%