aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Merge tag 'v0.8.5' into sync-08-09Alex Auvolat2024-01-167-183/+355
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Garage v0.8.5 This minor release includes the following improvements and fixes: New features: - Configuration: make LMDB's `map_size` configurable and make `block_size` and `sled_cache_capacity` expressable as strings (such as `10M`) (#628, #630) - Add support for binding to Unix sockets for the S3, K2V, Admin and Web API servers (#640) - Move the `convert_db` command into the main Garage binary (#645) - Add support for specifying RPC secret and admin tokens as environment variables (#643) - Add `allow_world_readable_secrets` option to config file (#663, #685) Bug fixes: - Use `statvfs` instead of mount list to determine free space in metadata/data directories (#611, #631) - Add missing casts to fix 32-bit build (#632) - Fix error when none of the HTTP servers (S3/K2V/Admin/Web) is started and fix shutdown hang (#613, #633) - Add missing CORS headers to PostObject response (#609, #656) - Monitoring: finer histogram boundaries in Prometheus exported metrics (#531, #686) Other: - Documentation improvements (#641)
| * Bump version to 0.8.5Alex Auvolat2024-01-169-9/+9
| |
| * Merge pull request 'monitoring: finer histogram boundaries in prometheus ↵Alex2024-01-151-1/+8
| |\ | | | | | | | | | | | | | | | metrics (fix #531)' (#686) from fix-531 into main-0.8.x Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/686
| | * monitoring: finer histogram boundaries in prometheus metrics (fix #531)Alex Auvolat2024-01-151-1/+8
| | |
| * | config: additional tests for secret sourcingAlex Auvolat2024-01-151-2/+40
| | |
| * | config: refactor secret sourcingAlex Auvolat2024-01-156-271/+292
| |/
| * Add allow_world_readable_secrets option to config fileFélix Baylac Jacqué2023-10-261-5/+77
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sometimes, the secret files permissions checks gets in the way. It's by no mean complete, it doesn't take the Posix ACLs into account among other things. Correctly checking the ACLs would be too involving (see https://git.deuxfleurs.fr/Deuxfleurs/garage/issues/658#issuecomment-7102) and would likely still fail in some weird chmod settings. We're adding a new configuration file key allowing the user to disable this permission check altogether. The (already existing) env variable counterpart always take precedence to this config file option. That's useful in cases where the configuration file is static and cannot be easily altered. Fixes https://git.deuxfleurs.fr/Deuxfleurs/garage/issues/658 Co-authored-by: Florian Klink <flokli@flokli.de>
| * s3 api: add missing CORS headers to PostObject responses (fix #609)fix-cors-post-objectAlex Auvolat2023-10-201-3/+10
| |
| * Merge pull request 'Add support for specifying `rpc_secret_file`, ↵Alex2023-10-194-22/+49
| |\ | | | | | | | | | | | | | | | `metrics_token_file` and `admin_token_file` using environment variables' (#643) from networkException/garage:token-file-env into main-0.8.x Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/643
| | * garage: support specifying token / secret as environment variablesnetworkException2023-10-193-5/+29
| | | | | | | | | | | | | | | this patch adds support for specifying the `rpc_secret_file`, `metrics_token_file` and `admin_token_file` as environment variables.
| | * garage: fix admin-token descriptionnetworkException2023-10-191-1/+1
| | |
| | * util: move reading secret file into seperate helpernetworkException2023-10-191-16/+19
| | | | | | | | | | | | | | | | | | this patch moves the logic to read a secret file (and check for correct permissions) from `secret_from_file` into a new `read_secret_file` helper.
* | | Merge pull request 'OpenAPI specification of admin APIv1' (#672) from api-v1 ↵Alex2023-11-291-1/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | into main Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/672
| * | | Health info message now advertises API v1Quentin Dufour2023-11-221-1/+1
| | | |
* | | | Allow 0 as a part number markerasonix2023-11-211-1/+1
|/ / /
* | | Merge pull request 's3 api: refactoring and bug fix in ListObjects' (#655) ↵Alex2023-10-261-31/+41
|\ \ \ | | | | | | | | | | | | | | | | | | | | from fix-list-objects into main Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/655
| * | | list objects: prettyness and add assertsfix-list-objectsAlex Auvolat2023-10-191-28/+38
| | | |
| * | | listobjects: fix panic if continuation token is an empty stringAlex Auvolat2023-10-191-3/+3
| | | |
* | | | DeleteObject: always insert a deletion marker with a bigger timestamp than ↵increasing-timestampsAlex Auvolat2023-10-203-27/+22
| | | | | | | | | | | | | | | | everything before
* | | | s3 api: also ensure increasing timestamps for create_multipart_uploadAlex Auvolat2023-10-202-7/+14
| | | |
* | | | remove now-unused key parameter in check_quotasAlex Auvolat2023-10-202-4/+3
| | | |
* | | | cargo fmtAlex Auvolat2023-10-181-1/+2
| | | |
* | | | check_quotas: avoid re-fetching object from object tableAlex Auvolat2023-10-182-10/+12
| | | |
* | | | Ensure increasing version timestamps in PutObjectAlex Auvolat2023-10-181-6/+18
|/ / /
* | | fix compilation on macostrinity-1686a2023-10-151-2/+2
| | | | | | | | | | | | fsblkcnt_t is ony 32b there, so we have to do an additional cast
* | | bump version to v0.9.0v0.9.0nextAlex Auvolat2023-10-109-9/+9
| | |
* | | convert_db: fix buildAlex Auvolat2023-10-101-1/+1
| | |
* | | Merge branch 'main' into nextAlex Auvolat2023-10-105-30/+32
|\| |
| * | Move convert_db command into main garage binaryconvert-db-main-binaryAlex Auvolat2023-10-105-30/+32
| |/
* | admin api: increased compatibility for v0/ endpointsv0.9.0-rc2Alex Auvolat2023-10-055-163/+388
| |
* | admin api: remove broken GET /v0/key router ruleAlex Auvolat2023-10-051-1/+1
| |
* | cli: more precise doc commentAlex Auvolat2023-10-041-2/+2
| |
* | Merge branch 'main' into nextv0.9.0-rc1Alex Auvolat2023-10-0311-35/+169
|\|
| * api: allow custom unix bind mode and use 0o220 for admin servernetworkException2023-10-034-4/+8
| |
| * everywhere: support unix sockets when binding in various placesnetworkException2023-09-296-28/+108
| | | | | | | | | | this patch implements binding to paths as a unix socket for generic server and web server.
| * config: allow using paths for unix domain sockets in various placesnetworkException2023-09-291-4/+5
| | | | | | | | | | | | | | this patch updates the config format to also allow paths in bind addresses for unix domain sockets. this has been added to all apis except rpc.
| * util: add helper sum type for unix and tcp socket addressesnetworkException2023-09-292-0/+45
| | | | | | | | | | this patch introduces a new sum type that can represent either a tcp socket address or a unix domain socket path.
| * cargo: add hyperlocal as a dependencynetworkException2023-09-292-0/+4
| |
* | actually update rmp-serde to 1.1.2 for both garage and netapp dependency ↵v0.9.0-beta4Alex Auvolat2023-09-274-5/+5
| | | | | | | | (fix #629)
* | Merge branch 'main' into nextAlex Auvolat2023-09-272-19/+26
|\|
| * fix hang on shutdownAlex Auvolat2023-09-121-9/+9
| |
| * Fix error when none of S3/K2V/WEB/ADMIN server is started (fix #613)Alex Auvolat2023-09-121-10/+17
| |
* | Merge pull request 'New layout: fixes and UX improvements' (#634) from ↵v0.9.0-beta3Alex2023-09-276-165/+224
|\ \ | | | | | | | | | | | | | | | new-layout-ux into next Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/634
| * | new layout: use deterministic randomness for reproducible resultsAlex Auvolat2023-09-211-2/+6
| | |
| * | new layout: fix clippy lintsAlex Auvolat2023-09-183-17/+17
| | |
| * | new layout: improve display and fix commentsAlex Auvolat2023-09-182-10/+10
| | |
| * | new layout: make zone_redundancy optionnal (if not set, is maximum)Alex Auvolat2023-09-183-52/+120
| | |
| * | new layout: improve output displayAlex Auvolat2023-09-123-94/+81
| | |
* | | garage_table/queue_insert: delay worker notification to after transaction ↵k2v-indices-lmdbAlex Auvolat2023-09-211-3/+5
| | | | | | | | | | | | commit (fix #583)
* | | garage_db: refactor transactions and add on_commit mechanismAlex Auvolat2023-09-2114-84/+86
|/ /