1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*
* This software is available under the Apache-2.0 license.
* See https://www.apache.org/licenses/LICENSE-2.0.txt for full text.
*
* Copyright (c) 2024, Gluu, Inc.
*/
use PolicyStoreLoadError;
use cratePolicyStoreWithID;
use crate;
/// Configuration that holds validated information from bootstrap config.
///
/// Plain data struct — callers (currently only `Cedarling::new`) build it
/// directly from a freshly-loaded policy store plus a configured HTTP client.
/// Refresh-worker seed data (initial body hash, initial cache validators)
/// is intentionally **not** carried here: those values are consumed inline at
/// the worker-spawn site rather than smuggled through service initialization.
pub
// Note: this branch deliberately drops the `ServiceConfig::new(bootstrap)`
// constructor from `main`. The refresh-worker seed plumbing requires
// `Cedarling::new` to keep the `LoadedPolicyStore` (with `body_hash` and
// `validators`) in lexical scope after the load, so the load now happens at
// the call site in `lib.rs::perform_bootstrap_load` and the result is
// destructured there. `strict_schema_validation` is forwarded at that call
// site (see `lib.rs`).