Features และนโยบาย
หน้า
aggrega draft --example policy-data-class-routeจาก
cd policy-data-class-routeaggrega build --release release-masked.yaml --config governance-rego.yaml --auto-pullaggrega build --release release-unmasked.yaml --config governance-rego.yaml --auto-pull # halts; exits 1aggrega build --release release-masking-off-route.yaml --config governance-rego.yaml --auto-pull # halts; exits 1Feature ถูกแนบ และถูกทำให้เป็นรูปธรรมโดย FeatureRecipe
Feature คือfeatures: ผู้
ในcore/data-masking ของaggregate.yaml โดย
masking-gateway: type: core/gateway/litellm values: model: chat features: masking: type: core/data-masking values: patterns: - name: claim_number regex: '\bCLM-[0-9]{8}\b' entities: [PERSON, EMAIL_ADDRESS]นักcore/data-masking กับ helm/data-masking-litellm ซึ่ง
สิ่ง
ป้ายกำกับตัดสินว่า Feature ไปที่ใดได้
ป้ายappliesTo ของ Feature คือcore/data-masking ประกาศ appliesTo: "dataplane.aggrega.ai/content-masking" ซึ่งcore/gateway/litellm มีentity-recognition ตัวcomponent.aggrega.ai/type in (server, worker) หรือ!model.aggrega.ai/capability ข้อ
การ
- การ
ทำงาน Feature ระบุ Features ที่ร่วม กัน ใช้ ส่วน ประกอบ ร่วม กัน ไม่ ได้ core/data-maskingประกาศinteroperability.conflictsWith: [core/semantic-caching]การบิลด์ ที่ ส่วน ประกอบ หนึ่ง ลงเอย ด้วย การ มี ทั้ง สอง ไม่ ว่า แนบ บน ส่วน ประกอบ เอง หรือ บน ระบบ ย่อย หรือ แนว เขต ที่ ถือ มัน จึง หยุด ก่อน การ เรนเดอร์ - ข้อ
บังคับ Component กำหนดให้ มี อยู่ ให้ ต้อง มี การ แนบ ประเภท ที่ ระบุ ได้ example/compute/serviceของแค็ตตาล็อก มี คำ อธิบาย ประกอบ features.aggrega.ai/requiredType.monitoring: core/prometheus-exporterการบิลด์ ที่ อินสแตนซ์ ของ มัน ไม่มี core/prometheus-exporterในขอบเขต ใด ก็ตาม จึง หยุด โดย ระบุ ข้อ กำหนด monitoringใช้คีย์ entities/component.md “ข้อซ้ำ กับ ส่วน ต่อ ท้าย อื่น เพื่อ กำหนด ให้ มี ประเภท ที่ สอง ดู บังคับ ให้ มี อยู่” สำหรับ ความ ต่าง ระหว่าง ข้อ บังคับ กับ สล็อต การ แนบ
Feature ไปcore/caller-allowlist ถูก
นโยบายอ่านกราฟที่บิลด์แล้ว
นโยบายplugins.governance ในlabel-transform เพิ่มir-verdict ตัดสินgovernance/rego คือ
กฎinput.graph.nodes:
# policies/egress-tagging.rego: attached at the label-transform rolepackage aggrega.tagging
import rego.v1
labels contains {"node": id, "key": "compliance.aggrega.ai/egress", "value": "model-provider"} if { some id, node in input.graph.nodes node.labels["gateway.aggrega.ai/intelligence"] == "semantic"}กฎ
# policies/model-egress.rego: attached at the ir-verdict rolepackage aggrega.security
import rego.v1
deny contains msg if { some path in input.precalculated_paths some egress in path.nodes input.graph.spec.nodes[egress].labels["compliance.aggrega.ai/egress"] == "model-provider" not "core/data-masking" in path.attached_features
msg := sprintf( "BLOCKED: path %v sends model traffic through %v without core/data-masking attached.", [concat(" -> ", path.nodes), egress] )}id ของinput.graph.spec.nodes attached_features แสดงin กฎdeny ถูกhalt ซึ่ง
ผู้sources หา
plugins: governance: - uri: governance/rego:0.9.0 role: label-transform with: sources: - policies/egress-tagging.rego - uri: governance/rego:0.9.0 role: ir-verdict with: sources: - policies/model-egress.regoหน้า