AllowlistV0 스키마

AllowlistV0 스키마

네트워크 또는 파일시스템 허용 목록(allowlist)으로, 규칙 목록을 포함해요. PolicySummary.typeallowlist_v0일 때 Policy에 나타나며, 정책에 아직 규칙이 없으면 생략돼요.

출처: 문서

본문

스키마 — AllowlistV0 · 유형: object

네트워크 또는 파일시스템 허용 목록으로, 규칙 목록을 포함해요. PolicySummary.typeallowlist_v0일 때 Policy에 나타나며, 정책에 아직 규칙이 없으면 생략돼요. 허용 목록의 모든 규칙은 같은 도메인을 공유해요. 모든 규칙은 모든 요청에 대해 평가되며, deny는 항상 allow보다 우선해요.

domain — 유형: string 이 허용 목록의 모든 규칙이 공유하는 접근 제어 도메인. 규칙 액션에서 파생됨: 네트워크 액션(connect:tcp, connect:udp)은 network를, 파일시스템 액션(read, write)은 filesystem을 생성해요. rules가 비어 있지 않을 때 나타나고, 허용 목록에 규칙이 없으면 없어요.

{
  "description": "The access-control domain shared by all rules in this allowlist. Derived from rule actions: network actions (`connect:tcp`, `connect:udp`) produce `network`; filesystem actions (`read`, `write`) produce `filesystem`. Present when `rules` is non-empty; absent when the allowlist has no rules.\n",
  "enum": [
    "network",
    "filesystem"
  ],
  "examples": [
    "network"
  ],
  "type": "string"
}

rules · 필수 — 유형: array · 배열 항목 스키마: Rule

{
  "items": {
    "$ref": "#/components/schemas/Rule"
  },
  "type": "array"
}

전체 스키마:

{
  "description": "Network or filesystem allowlist containing a list of rules. Present on\nPolicy when `PolicySummary.type` is `allowlist_v0`; omitted when the\npolicy has no rules yet. All rules in an allowlist share the same domain.\nAll rules are evaluated on every request: `deny` always wins over `allow`.\n",
  "properties": {
    "domain": {
      "description": "The access-control domain shared by all rules in this allowlist. Derived from rule actions: network actions (`connect:tcp`, `connect:udp`) produce `network`; filesystem actions (`read`, `write`) produce `filesystem`. Present when `rules` is non-empty; absent when the allowlist has no rules.\n",
      "enum": [
        "network",
        "filesystem"
      ],
      "examples": [
        "network"
      ],
      "type": "string"
    },
    "rules": {
      "items": {
        "$ref": "#/components/schemas/Rule"
      },
      "type": "array"
    }
  },
  "required": [
    "rules"
  ],
  "type": "object"
}

더 알아보기 (Learn more)