sootool.policy_export
Exports a policy as a portable bundle of original YAML and metadata selected by domain, name, and year, with optional version and ed25519 signature settings for transfer or import.
Instructions
정책 하나를 이식 가능한 묶음(원본 YAML과 메타데이터)으로 내보낸다. domain, name, year 로 지정하고 as_of, include_proposed 로 버전을 고른다. include_signature 가 참이면 환경변수 SOOTOOL_POLICY_KEY_FILE 이 가리키는 키 파일(권한 0600)로 ed25519 서명을 붙인다. 묶음은 sootool.policy_import 가 받는다.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| year | Yes | ||
| as_of | No | ||
| domain | Yes | ||
| include_proposed | No | ||
| include_signature | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| _meta | No | 서버가 붙이는 영수증(integrity), 엔진, 힌트 | |
| bundle | Yes |