sootool.policy_validate
Validates policy YAML strings and returns status, findings, and sha256, optionally checking domain schemas and computing a fixed hash without saving files.
Instructions
정책 YAML 문자열을 검증해 보고서(status, findings, sha256)를 반환한다. name 을 주면 도메인 스키마까지 검사하고 파일은 저장하지 않는다. auto_fix_sha256 이 참이면 계산한 해시를 fixed_sha256 으로 알려 준다. 실제 반영은 sootool.policy_propose 와 sootool.policy_activate 를 쓴다.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| domain | Yes | ||
| yaml_content | Yes | ||
| auto_fix_sha256 | No | ||
| sensitivity_threshold | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| _meta | No | 서버가 붙이는 영수증(integrity), 엔진, 힌트 | |
| sha256 | No | ||
| status | Yes | ||
| findings | Yes | ||
| fixed_sha256 | No |