aboutsummaryrefslogtreecommitdiff
path: root/src/garage/main.rs
Commit message (Collapse)AuthorAgeFilesLines
* Merge tag 'v0.8.5' into sync-08-09Alex Auvolat2024-01-161-32/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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)
| * config: refactor secret sourcingAlex Auvolat2024-01-151-56/+2
| |
| * Merge pull request 'Add support for specifying `rpc_secret_file`, ↵Alex2023-10-191-4/+28
| |\ | | | | | | | | | | | | | | | `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-191-3/+27
| | | | | | | | | | | | | | | 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
| | |
* | | Merge branch 'main' into nextAlex Auvolat2023-10-101-0/+3
|\| |
| * | Move convert_db command into main garage binaryconvert-db-main-binaryAlex Auvolat2023-10-101-0/+3
| |/
* | Merge branch 'main' into nextAlex Auvolat2023-05-091-0/+6
|\|
| * move git-version dependency to main crate to reduce rebuildsAlex Auvolat2023-05-091-0/+6
| |
* | Merge branch 'main' into nextAlex Auvolat2023-04-251-8/+40
|\|
| * fixes for pr 499config-files-envAlex Auvolat2023-02-061-1/+2
| |
| * secrets can be passed directly in config, as file, or as envAlex Auvolat2023-02-031-7/+38
| |
| * Implement `rpc_secret_file`Felix Scheinost2023-01-041-1/+1
| |
* | Merge branch 'main' into nextAlex Auvolat2023-01-041-15/+21
|\|
| * Prettier worker list table; remove useless CLI log messagesAlex Auvolat2022-12-121-15/+21
| |
* | Return more info when layout's .check() fails, fix compilation, fix testAlex Auvolat2022-11-081-0/+3
|/
* Show a nice message and a backtrace when Garage panicsAlex Auvolat2022-11-041-16/+40
|
* Add TLS support for Consul discovery + refactoringAlex Auvolat2022-10-181-0/+2
|
* Allow for hostnames in bootstrap_peers and rpc_public_addr (fix #353)resolve-peer-namesAlex Auvolat2022-09-141-1/+7
|
* Merge branch 'main' into lx-perf-improvementsAlex Auvolat2022-09-081-3/+45
|\
| * Move version back into utilimprove-depsAlex Auvolat2022-09-071-3/+3
| |
| * Inject GIT_VERSION even laterAlex Auvolat2022-09-071-2/+7
| |
| * Error messages when system-libs XOR bundled-libs != 1Alex Auvolat2022-09-071-0/+6
| |
| * Report build features in garage --helpAlex Auvolat2022-09-071-3/+33
| |
| * Move GIT_VERSION injection later in build chain to reduce build timesAlex Auvolat2022-09-071-2/+2
| |
| * Make OTLP exporter optional via feature "telemetry-otlp"Jakub Jirutka2022-09-061-0/+1
| | | | | | | | | | opentelemetry-otlp add 48 (!) extra dependencies and increases the size of the garage binary by ~11 % (with fat LTO).
* | Add env filter to tracing subscriberAlex Auvolat2022-08-311-0/+1
| |
* | Tracing-subscriber: write to stderrAlex Auvolat2022-08-311-1/+3
| |
* | Replace logging crate pretty_env_logger by tracing_subscriber::fmtAlex Auvolat2022-08-311-1/+1
|/
* Configure structopt to report the right versionv0.7.2_ci-test-2bug/reported-versionQuentin Dufour2022-08-111-1/+2
| | | | | | | | | | By default, structopt reports the value provided by the env var CARGO_PKG_VERSION, feeded by Cargo when reading Cargo.toml. However for Garage we use a versioning based on git, so we often report a version that is behind the real version. In this commit, we create garage_util::version::garage() that reports the right version and configure all structopt subcommands to call this function instead of using the env var.
* improve internal item counter mechanisms and implement bucket quotas (#326)Alex2022-06-151-9/+9
| | | | | | | | | | | | | | | | - [x] Refactoring of internal counting API - [x] Repair procedure for counters (it's an offline procedure!!!) - [x] New counter for objects in buckets - [x] Add quotas to buckets struct - [x] Add CLI to manage bucket quotas - [x] Add admin API to manage bucket quotas - [x] Apply quotas by adding checks on put operations - [x] Proof-read Co-authored-by: Alex Auvolat <alex@adnab.me> Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/326 Co-authored-by: Alex <alex@adnab.me> Co-committed-by: Alex <alex@adnab.me>
* First version of admin API (#298)Alex2022-05-241-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | **Spec:** - [x] Start writing - [x] Specify all layout endpoints - [x] Specify all endpoints for operations on keys - [x] Specify all endpoints for operations on key/bucket permissions - [x] Specify all endpoints for operations on buckets - [x] Specify all endpoints for operations on bucket aliases View rendered spec at <https://git.deuxfleurs.fr/Deuxfleurs/garage/src/branch/admin-api/doc/drafts/admin-api.md> **Code:** - [x] Refactor code for admin api to use common api code that was created for K2V **General endpoints:** - [x] Metrics - [x] GetClusterStatus - [x] ConnectClusterNodes - [x] GetClusterLayout - [x] UpdateClusterLayout - [x] ApplyClusterLayout - [x] RevertClusterLayout **Key-related endpoints:** - [x] ListKeys - [x] CreateKey - [x] ImportKey - [x] GetKeyInfo - [x] UpdateKey - [x] DeleteKey **Bucket-related endpoints:** - [x] ListBuckets - [x] CreateBucket - [x] GetBucketInfo - [x] DeleteBucket - [x] PutBucketWebsite - [x] DeleteBucketWebsite **Operations on key/bucket permissions:** - [x] BucketAllowKey - [x] BucketDenyKey **Operations on bucket aliases:** - [x] GlobalAliasBucket - [x] GlobalUnaliasBucket - [x] LocalAliasBucket - [x] LocalUnaliasBucket **And also:** - [x] Separate error type for the admin API (this PR includes a quite big refactoring of error handling) - [x] Add management of website access - [ ] Check that nothing is missing wrt what can be done using the CLI - [ ] Improve formatting of the spec - [x] Make sure everyone is cool with the API design Fix #231 Fix #295 Co-authored-by: Alex Auvolat <alex@adnab.me> Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/298 Co-authored-by: Alex <alex@adnab.me> Co-committed-by: Alex <alex@adnab.me>
* Fix some new clippy lintsfix-resyncAlex Auvolat2022-03-141-1/+1
|
* Update to Netapp 0.4 which supports distributed tracingAlex Auvolat2022-03-141-2/+2
|
* Add tracing integration with opentelemetryAlex Auvolat2022-03-141-1/+1
|
* New buckets for 0.6.0: make bucket id a SK and not a HK, CLI updatesAlex Auvolat2022-01-041-2/+2
|
* Some movement of helper code and refactoring of error handlingAlex Auvolat2022-01-041-1/+7
|
* Improve how node roles are assigned in Garagev0.5-beta1Alex Auvolat2021-11-161-1/+3
| | | | | | | | | | | | | | | | | - change the terminology: the network configuration becomes the role table, the configuration of a nodes becomes a node's role - the modification of the role table takes place in two steps: first, changes are staged in a CRDT data structure. Then, once the user is happy with the changes, they can commit them all at once (or revert them). - update documentation - fix tests - implement smarter partition assignation algorithm This patch breaks the format of the network configuration: when migrating, the cluster will be in a state where no roles are assigned. All roles must be re-assigned and commited at once. This migration should not pose an issue.
* Add environment variables equivalents for some CLI options.Jill2021-11-031-3/+8
|
* CLI: default rpc_hostv0.4-rc1Alex Auvolat2021-10-261-5/+20
|
* Improve CLI, adapt tests, update documentationAlex Auvolat2021-10-251-22/+58
|
* Improvements to CLI and various fixes for netapp versionAlex Auvolat2021-10-221-2/+1
| | | | Discovery via consul, persist peer list to file
* First port of Garage to NetappAlex Auvolat2021-10-221-43/+28
|
* try parsing rpc-host command-line parameterTrinity Pointard2021-06-011-1/+10
|
* make most requested changesTrinity Pointard2021-04-271-2/+1
|
* document garage crateTrinity Pointard2021-04-271-1/+3
|
* cargo fmtAlex Auvolat2021-03-121-5/+5
|
* Refactor CLI and prettify CLI outpuAlex Auvolat2021-03-121-508/+28
|
* Implement garage stats to get info on node contentsAlex Auvolat2021-03-121-0/+18
|
* Rename n_tokens into capacityAlex Auvolat2021-03-101-10/+10
|