f83fa02193
Add allow_world_readable_secrets option to config file
...
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
Deuxfleurs/garage#658 (comment) )
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 Deuxfleurs/garage#658
Co-authored-by: Florian Klink <flokli@flokli.de>
2023-10-26 18:25:13 +02:00
c99cb58d71
util: move reading secret file into seperate helper
...
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.
2023-10-19 03:29:48 +02:00
7353038a64
config: allow using paths for unix domain sockets in various places
...
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.
2023-09-29 18:38:30 +02:00
10195f1567
util: add helper sum type for unix and tcp socket addresses
...
this patch introduces a new sum type that can represent either a
tcp socket address or a unix domain socket path.
2023-09-29 18:37:36 +02:00
f8b3883611
config: make block_size and sled_cache_capacity expressable as strings
2023-09-11 18:34:59 +02:00
51b9731a08
make lmdb's map_size configurable ( fix #628 )
2023-09-11 18:03:44 +02:00
51eac97260
update version to 0.8.4
2023-09-05 23:28:12 +02:00
cece1be1bb
bump version to 0.8.3
2023-08-28 13:17:26 +02:00
c855284760
src/util: fix typo
2023-07-14 14:25:40 +03:00
Roberto Hidalgo
ef8a7add08
set default for [consul-services] api
2023-05-22 08:57:15 -06:00
Roberto Hidalgo
b770504126
simplify code according to feedback
2023-05-22 08:57:15 -06:00
Roberto Hidalgo
6b69404f1a
rename mode to consul_http_api
2023-05-22 08:57:15 -06:00
Roberto Hidalgo
fd7dbea5b8
follow feedback, fold into existing feature
2023-05-22 08:57:15 -06:00
Roberto Hidalgo
bd6485565e
allow additional ServiceMeta, docs
2023-05-22 08:57:15 -06:00
Roberto Hidalgo
02ba9016ab
register consul services against local agent instead of catalog api
2023-05-22 08:57:15 -06:00
a1cec2cd60
Split format_table into separate crate and reduce k2v-client dependencies
2023-05-17 13:01:37 +02:00
Jonathan Davies
c783194e8b
*: apply clippy recommendations.
2023-05-09 20:49:34 +01:00
9e0a9c1c15
move git-version dependency to main crate to reduce rebuilds
2023-05-09 11:35:32 +02:00
d2deee0b8b
Declare garage crates using workspace.dependencies
...
This will allow to really disable "sled" feature without declaring
`default-features = false` in every Cargo.toml where garage_db and
garage_model is used.
See https://doc.rust-lang.org/cargo/reference/workspaces.html#the-dependencies-table
2023-05-09 08:46:15 +00:00
0a1ddcf630
Prepare for v0.8.2
2023-03-13 18:46:31 +01:00
Jonathan Davies
25f2a46fc3
rpc/system_metrics.rs: Added rustversion label to garage_build_info metric.
2023-03-10 14:46:44 +00:00
Jonathan Davies
ff70e09aa0
util/forwarded_headers.rs: Generalized handle_forwarded_for_headers()
...
here.
2023-03-03 19:17:40 +00:00
80e2326998
fixes for pr 499
2023-02-06 12:23:55 +01:00
656b8d42de
secrets can be passed directly in config, as file, or as env
2023-02-03 15:27:39 +01:00
Jonathan Davies
20c1cdf662
Cargo.toml: Loosen tracing dependency to just 0.1.
2023-01-26 11:13:11 +00:00
Jonathan Davies
f952e37ba7
{model,util}/Cargo.toml: Updated blake2 from 0.9 to 0.10.
2023-01-26 11:13:11 +00:00
Jonathan Davies
fbafa76284
{db,util}/Cargo.toml: Updated mktemp from 0.4 to 0.5.
2023-01-26 11:13:11 +00:00
Jonathan Davies
d3b2a68988
{garage,util}/Cargo.toml: Updated toml from 0.5 to 0.6.
2023-01-26 11:13:11 +00:00
Jonathan Davies
b4a1a6a32f
util/time.rs: Updated deprecated associated function to timestamp_opt().
2023-01-26 11:13:11 +00:00
d6ea0cbefa
Add tests for rpc_secret_file
2023-01-07 14:19:36 +01:00
7b62fe3f0b
Error on both rpc_secret
and rpc_secret_file
2023-01-07 13:49:03 +01:00
f2106c2733
Implement rpc_secret_file
2023-01-04 18:35:10 +01:00
29dbcb8278
bg var operation on all nodes at once
2023-01-04 13:25:57 +01:00
f3f27293df
Uniform framework for bg variable management
2023-01-04 13:07:13 +01:00
13c5549886
Remove token_bucket.rs
2023-01-04 11:47:56 +01:00
1d5bdc17a4
use impossible enum type
2023-01-03 16:04:06 +01:00
c106304b9c
more idiomatic and shorter
2023-01-03 16:00:19 +01:00
33f25d26c7
fix doc and add tests for migrate.rs
2023-01-03 15:53:13 +01:00
a54b67740d
move debug_serialize to garage_util::encode
2023-01-03 15:29:29 +01:00
8d5505514f
Make it explicit when using nonversioned encoding
2023-01-03 15:27:36 +01:00
cdb2a591e9
Refactor how things are migrated
2023-01-03 14:44:47 +01:00
939a6d67e8
Merge branch 'main' into internals-rework
2023-01-02 15:07:44 +01:00
6775569525
Bump everything to v0.8.1
2023-01-02 14:15:33 +01:00
510b620108
Get rid of background::spawn
2022-12-14 16:08:05 +01:00
dfc131850a
Simplified and more aggressive worker exit logic
2022-12-14 15:25:29 +01:00
d56c472712
Refactor background runner and get rid of job worker
2022-12-14 12:51:42 +01:00
d6040e32a6
cli: prettier table in garage stats
2022-12-13 15:43:22 +01:00
de9d6cddf7
Prettier worker list table; remove useless CLI log messages
2022-12-12 17:17:05 +01:00
8bc5caf7aa
Fix issue with 'http(s)://' prefix
2022-10-18 21:17:11 +02:00
002b9fc50c
Add TLS support for Consul discovery + refactoring
2022-10-18 18:38:20 +02:00