You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The crypto_policy class declares a validate_policy parameter that is never used. Documenting the module for AGENTS.md (#105) surfaced this, and @silug asked for a follow-up issue.
Details
validate_policy is declared and documented as controlling $ensure validation:
manifests/init.pp:28 — # @param validate_policy / "Disables validation of the $ensure parameter prior to application"
Summary
The
crypto_policyclass declares avalidate_policyparameter that is never used. Documenting the module for AGENTS.md (#105) surfaced this, and @silug asked for a follow-up issue.Details
validate_policyis declared and documented as controlling$ensurevalidation:manifests/init.pp:28—# @param validate_policy/ "Disables validation of the$ensureparameter prior to application"manifests/init.pp:52—Boolean $validate_policy = true,But nothing in the module references it. The only other match in the whole repo is the declaration itself:
The validation block at
manifests/init.pp:113is actually gated on the fact being populated, not on$validate_policy:So setting
validate_policy => falsehas no effect — validation stays on (gated by the fact) regardless.Suggested resolution
Decide the intent:
$validate_policyinto theinit.pp:113guard (e.g. skip thefail()checks whenfalse).Either way the
@paramdocstring should be brought in line with actual behavior.