补充 OSS 验证策略配置示例
This commit is contained in:
@@ -9,6 +9,7 @@ startup, graceful stop and config reload.
|
||||
| validate.toml | Single run | /input/anchor.tal |
|
||||
| validate-all5.toml | Single run | Five named RIR TALs and constraints |
|
||||
| validate-localhost.toml | Single run | Generated localhost HTTPS repository and `/fixture/certs/rrdp-ca.pem` |
|
||||
| validate-policy.toml | Single run | Complete validation-policy and RRDP/rsync TOML settings |
|
||||
| daemon.toml | Continuous | /input/anchor.tal |
|
||||
| daemon-all5.toml | Continuous | Five named RIR TALs and constraints |
|
||||
|
||||
@@ -29,6 +30,10 @@ The all5 examples explicitly enable TA constraints. Copy `tals/*.tal` and
|
||||
or set top-level `ta-constraints-enabled = false` to disable all policies,
|
||||
including same-stem file discovery. See [provenance](../../tals/README.md).
|
||||
|
||||
`validate-policy.toml` is an additive configuration showcase. The existing
|
||||
container examples intentionally omit the optional policy/transport keys and
|
||||
continue to use their documented defaults; they do not need to be changed.
|
||||
|
||||
## Local HTTPS test repository
|
||||
|
||||
`validate-localhost.toml` explicitly sets `http-root-cert` to the CA generated
|
||||
|
||||
37
docker/examples/validate-policy.toml
Normal file
37
docker/examples/validate-policy.toml
Normal file
@@ -0,0 +1,37 @@
|
||||
# Container-path configuration showcase for validation policy and rsync.
|
||||
# Copy the file outside this directory and set CONFIG_FILE to its absolute path.
|
||||
# The fixed validation time makes the example reproducible; update it or remove
|
||||
# the line when using it against a current public repository.
|
||||
config-version = 1
|
||||
mode = "validate"
|
||||
out = "/output/policy"
|
||||
rrdp-state-dir = "/state/policy"
|
||||
rrdp-sync-mode = "auto"
|
||||
ccr-out = "/output/policy/result.ccr"
|
||||
publish-dir = "/output/publish"
|
||||
|
||||
resource-validation-mode = "validation-update-03" # or "rfc6487"
|
||||
validation-time = "2026-09-22T00:00:00Z"
|
||||
sync-preference = "rrdp-then-rsync" # or "rsync-only"
|
||||
rsync-timeout-secs = 30
|
||||
rsync-command = "/usr/bin/rsync"
|
||||
rsync-mirror-root = "/state/rsync-mirror"
|
||||
rsync-scope = "module-root" # "host" or "publication-point"
|
||||
|
||||
run-timeout-secs = 1800
|
||||
require-complete = true
|
||||
ta-refresh-policy = "allow-valid-cache"
|
||||
log-level = "info"
|
||||
log-format = "text"
|
||||
|
||||
[[anchors]]
|
||||
id = "anchor"
|
||||
tal = "/input/anchor.tal"
|
||||
# ta = "/input/anchor.cer" # uncomment to pin a fixed TA certificate
|
||||
|
||||
# Keep the compatibility profile for a general public-repository example.
|
||||
# Set the first two fields to true to enable strict name/CMS DER checks.
|
||||
[strict]
|
||||
name = false
|
||||
cms-der = false
|
||||
signed-attrs = false
|
||||
Reference in New Issue
Block a user