garage/src/util
Félix Baylac Jacqué 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
..
background bg var operation on all nodes at once 2023-01-04 13:25:57 +01:00
crdt Fix clippy lint that says we should implement Eq 2022-09-13 16:08:00 +02:00
async_hash.rs Simplify+improve async hasher by using bounded channel 2022-09-12 16:23:43 +02:00
build.rs rpc/system_metrics.rs: Added rustversion label to garage_build_info metric. 2023-03-10 14:46:44 +00:00
Cargo.toml config: make block_size and sled_cache_capacity expressable as strings 2023-09-11 18:34:59 +02:00
config.rs Add allow_world_readable_secrets option to config file 2023-10-26 18:25:13 +02:00
data.rs {model,util}/Cargo.toml: Updated blake2 from 0.9 to 0.10. 2023-01-26 11:13:11 +00:00
encode.rs move debug_serialize to garage_util::encode 2023-01-03 15:29:29 +01:00
error.rs move debug_serialize to garage_util::encode 2023-01-03 15:29:29 +01:00
forwarded_headers.rs *: apply clippy recommendations. 2023-05-09 20:49:34 +01:00
lib.rs util: add helper sum type for unix and tcp socket addresses 2023-09-29 18:37:36 +02:00
metrics.rs Fix instant substractions that might have panicked 2022-09-29 15:53:54 +02:00
migrate.rs src/util: fix typo 2023-07-14 14:25:40 +03:00
persister.rs Uniform framework for bg variable management 2023-01-04 13:07:13 +01:00
socket_address.rs util: add helper sum type for unix and tcp socket addresses 2023-09-29 18:37:36 +02:00
time.rs util/time.rs: Updated deprecated associated function to timestamp_opt(). 2023-01-26 11:13:11 +00:00
tranquilizer.rs Fix instant substractions that might have panicked 2022-09-29 15:53:54 +02:00
version.rs move git-version dependency to main crate to reduce rebuilds 2023-05-09 11:35:32 +02:00