H: merge token loaders and peer helpers One loader in secrets.rs (header validity, canonicalised credentials dir) is used by the client; the deny-CIDR parser, loopback test and plain-http warning live once in config.rs
This commit is contained in:
1 parent
c478bef930
commit
39c1c91695
6 files changed
+178
-178
No files matched your search
@@ -783,10 +783,10 @@ fn config_load_uses_the_token_loader_and_rereads_a_rotated_file() {
|
||||
.expect("the token mode is a startup check, not a parse error");
|
||||
let err = cfg
|
||||
.validate_token_readiness()
|
||||
.expect_err("group/world readable token outside the credential dir");
|
||||
.expect_err("group/world accessible token outside the credential dir");
|
||||
let text = err.to_string();
|
||||
assert!(text.contains("peer beta"), "{text}");
|
||||
assert!(text.contains("group or world readable"), "{text}");
|
||||
assert!(text.contains("group or world accessible"), "{text}");
|
||||
assert!(!text.contains("pending"), "{text}");
|
||||
|
||||
// The loader keeps no copy: a replacement file is read on the next call.
|
||||
|
||||
Reference in new issue
Block a user