|
| 1 | +{ |
| 2 | + "$schema": "https://json-schema.org/draft/2020-12/schema", |
| 3 | + "title": "RAG Firewall Config v1", |
| 4 | + "type": "object", |
| 5 | + "properties": { |
| 6 | + "scanners": { |
| 7 | + "type": "array", |
| 8 | + "items": { |
| 9 | + "type": "object", |
| 10 | + "properties": { |
| 11 | + "type": { "type": "string", "enum": ["regex_injection","pii","secrets","encoded","url","conflict"] }, |
| 12 | + "patterns": { "type": "array", "items": { "type": "string" } }, |
| 13 | + "extra_patterns": { "type": "array", "items": { "type": "string" } }, |
| 14 | + "min_len": { "type": "integer", "minimum": 1 }, |
| 15 | + "ratio_threshold": { "type": "number", "minimum": 0, "maximum": 1 }, |
| 16 | + "allowlist": { "type": "array", "items": { "type": "string" } }, |
| 17 | + "denylist": { "type": "array", "items": { "type": "string" } }, |
| 18 | + "stale_days": { "type": "integer", "minimum": 1 } |
| 19 | + }, |
| 20 | + "required": ["type"], |
| 21 | + "additionalProperties": true |
| 22 | + } |
| 23 | + }, |
| 24 | + "policies": { |
| 25 | + "type": "array", |
| 26 | + "items": { |
| 27 | + "type": "object", |
| 28 | + "properties": { |
| 29 | + "name": { "type": "string" }, |
| 30 | + "action": { "type": "string", "enum": ["allow","deny","rerank"] }, |
| 31 | + "match": { "type": "object" }, |
| 32 | + "weight": { |
| 33 | + "type": "object", |
| 34 | + "properties": { |
| 35 | + "recency": { "type": "number" }, |
| 36 | + "relevance": { "type": "number" }, |
| 37 | + "provenance": { "type": "number" } |
| 38 | + }, |
| 39 | + "additionalProperties": false |
| 40 | + } |
| 41 | + }, |
| 42 | + "required": ["name","action"], |
| 43 | + "additionalProperties": true |
| 44 | + } |
| 45 | + } |
| 46 | + }, |
| 47 | + "required": ["scanners","policies"], |
| 48 | + "additionalProperties": false |
| 49 | +} |
0 commit comments