aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* | Move convert_db command into main garage binaryconvert-db-main-binaryAlex Auvolat2023-10-105-30/+32
|/
* 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
|
* 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
|
* fix 32-bit buildfix-32bitAlex Auvolat2023-09-111-2/+2
|
* use statvfs instead of mount list to determine free data/meta space (fix #611)Alex Auvolat2023-09-112-10/+9
|
* config: make block_size and sled_cache_capacity expressable as stringsAlex Auvolat2023-09-114-21/+62
|
* make lmdb's map_size configurable (fix #628)Alex Auvolat2023-09-113-1/+18
|
* update version to 0.8.4v0.8.4hold-netapp-0.5.2Alex Auvolat2023-09-059-9/+9
|
* Revert netapp update, hold to version 0.5.2 that uses rmp-serde 0.15Alex Auvolat2023-09-051-1/+1
|
* add garage_db dependency in garage_rpcnext-0.8Alex Auvolat2023-08-281-0/+1
|
* bump version to 0.8.3v0.8.3-rc1Alex Auvolat2023-08-289-9/+9
|
* fix test_website_check_domainAlex Auvolat2023-08-281-9/+9
|
* integration test: move json_body to root of crateAlex Auvolat2023-08-287-17/+22
|
* admin api: refactor caddy check api codeAlex Auvolat2023-08-281-17/+22
|
* Merge pull request 'support index on path missing a trailing slash' (#612) ↵Alex2023-08-281-32/+96
|\ | | | | | | | | | | from compat/index-without-trailing-slash into main Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/612
| * web_server.rs: handle error properly and refactorcompat/index-without-trailing-slashAlex Auvolat2023-08-281-23/+13
| |
| * support index on path missing a trailing slashQuentin Dufour2023-08-081-28/+102
| |
* | cargo: Updated gethostname v0.2.3 -> v0.4.3.Jonathan Davies2023-08-281-1/+1
| |
* | cargo: Updated pretty_env_logger v0.4.0 -> v0.5.0.Jonathan Davies2023-08-281-1/+1
| |
* | garage/api: cargo: Updated idna dependency to 0.4.Jonathan Davies2023-08-281-1/+1
| |
* | garage/db: cargo: Updated rusqlite to 0.29.Jonathan Davies2023-08-281-1/+1
| |
* | cargo: Updated:Jonathan Davies2023-08-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | * addr2line v0.19.0 -> v0.20.0 * async-compression v0.4.0 -> v0.4.1 * clap v4.3.8 -> v4.3.19 * hyper v0.14.26 -> v0.14.27 * ipnet v2.7.2 -> v2.8.0 * rmp v0.8.11 -> v0.8.12 * serde v1.0.164 -> v1.0.188 * tokio v1.29.0 -> v1.31.0 * zstd v0.12.3+zstd.1.5.2 -> v0.12.4 * Others in `cargo update`
* | support {s3,web}.root_domains in /check endpointbug/support-root-domains-on-demand-tlsQuentin Dufour2023-08-083-33/+67
|/
* post_object.rs: Fixed typos / grammar.Jonathan Davies2023-08-011-7/+5
|
* src/util: fix typoFlorian Klink2023-07-141-1/+1
|
* src/garage/cli: fix typoFlorian Klink2023-07-141-1/+1
|
* cargo: Updated async-compression to 0.4.Jonathan Davies2023-06-281-1/+1
|
* Merge pull request 'cargo: roxmltree-0.18 and aws-sdk-s3-0.28 bump' (#591) ↵Alex2023-06-279-22/+21
|\ | | | | | | | | | | from jpds/garage:roxmltree-0.18 into main Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/591
| * tests/bucket.rs: Adjusted as previously used function is now private.Jonathan Davies2023-06-261-5/+1
| |
| * src/garage/tests: Updated types for aws-sdk-s3 bump.Jonathan Davies2023-06-257-16/+18
| |
| * garage/Cargo.toml: Updated aws-sdk-s3 to 0.28, added aws-config.Jonathan Davies2023-06-251-1/+2
| |
| * api/Cargo.toml: Updated roxmltree to 0.18.Jonathan Davies2023-06-241-1/+1
| |
* | Merge pull request 'introduce dedicated return type for PollRange' (#590) ↵Alex2023-06-272-13/+22
|\ \ | | | | | | | | | | | | | | | from trinity-1686a/garage:k2v-client-poll-range-result into main Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/590
| * | introduce dedicated return type for PollRangetrinity-1686a2023-06-242-13/+22
| |/
* / don't build sqlite by defaulttrinity-1686a2023-06-261-1/+1
|/ | | | | `bundled-libs` is enabled by default, and causes sqlite to be built too, even if the sqlite backend isn't enabled.
* Split garage/admin.rs into smaller filesAlex Auvolat2023-06-134-765/+810
|
* move admin.rs to admin/mod.rs, before splittingAlex Auvolat2023-06-131-0/+0
|
* fix timestamps wrapping around in `garage block list-errors` (fix #584)fix-future-timestampsAlex Auvolat2023-06-121-1/+6
|
* payload.rs: Surround / in inverted commas.Jonathan Davies2023-06-061-1/+1
|