Extraction Hardening

This commit is contained in:
2026-05-08 01:26:41 +02:00
parent fa4c9116ae
commit 91c90793a2
7 changed files with 515 additions and 88 deletions
+5 -1
View File
@@ -1006,8 +1006,12 @@ func configValidationRules(key string) []string {
return []string{"generated output names must use the configured extension and must not escape the repository root"}
case key == "extract.layout":
return []string{"supported value: nwn_canonical_json"}
case key == "extract.archives":
return []string{"build-relative .mod/.hak glob patterns; .erf is intentionally rejected"}
case key == "extract.consume_archives":
return []string{"when true, selected build archives are deleted only after successful extraction"}
case key == "extract.hak_discovery":
return []string{"supported values: build_glob, configured_haks"}
return []string{"deprecated; use extract.archives instead"}
case key == "autogen.cache.max_age":
return []string{"Go duration string, for example 1h or 30m"}
case strings.HasPrefix(key, "topdata.package_hak"):