{"$defs":{"cidrOrNull":{"pattern":"^[0-9.]+/30$","type":["string","null"]},"command":{"additionalProperties":false,"properties":{"argv":{"items":{"type":"string"},"minItems":1,"type":"array"},"stdin":{"type":["string","null"]},"stdinDigest":{"oneOf":[{"$ref":"#/$defs/digest"},{"type":"null"}]}},"required":["argv","stdin","stdinDigest"],"type":"object"},"digest":{"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"interfaceOrNull":{"pattern":"^[A-Za-z0-9_.-]{1,15}$","type":["string","null"]},"mediatorIdentity":{"additionalProperties":false,"properties":{"gid":{"maximum":2000000,"minimum":700000,"type":"integer"},"uid":{"maximum":2000000,"minimum":700000,"type":"integer"},"uniquePerJob":{"const":true}},"required":["uid","gid","uniquePerJob"],"type":"object"}},"$id":"https://sova-oss.org/schemas/firecracker-network-plan-0.1.0.schema.json","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"allOf":[{"if":{"properties":{"enabled":{"const":true}},"required":["enabled"]},"then":{"properties":{"mediatorCommand":{"type":"array"},"mediatorIdentity":{"type":"object"},"mediatorPolicy":{"type":"object"},"mediatorPolicyPath":{"type":"string"},"mediatorReceiptDirectory":{"type":"string"},"proxyPort":{"type":"integer"}}}},{"if":{"properties":{"enabled":{"const":false}},"required":["enabled"]},"then":{"properties":{"mediatorCommand":{"type":"null"},"mediatorIdentity":{"type":"null"},"mediatorPolicy":{"type":"null"},"mediatorPolicyPath":{"type":"null"},"mediatorReceiptDirectory":{"type":"null"},"proxyPort":{"type":"null"}}}}],"properties":{"addresses":{"additionalProperties":false,"properties":{"broker":{"$ref":"#/$defs/cidrOrNull"},"guest":{"$ref":"#/$defs/cidrOrNull"},"mediatorUplink":{"$ref":"#/$defs/cidrOrNull"},"rootUplink":{"$ref":"#/$defs/cidrOrNull"}},"required":["guest","broker","rootUplink","mediatorUplink"],"type":"object"},"artifactType":{"const":"sova.firecracker-network-plan"},"contentDigest":{"$ref":"#/$defs/digest"},"devices":{"additionalProperties":false,"properties":{"namespaceVeth":{"$ref":"#/$defs/interfaceOrNull"},"rootVeth":{"$ref":"#/$defs/interfaceOrNull"},"tap":{"$ref":"#/$defs/interfaceOrNull"}},"required":["tap","rootVeth","namespaceVeth"],"type":"object"},"enabled":{"type":"boolean"},"firewallTables":{"additionalProperties":false,"properties":{"hostFilter":{"pattern":"^[A-Za-z0-9_]{1,32}$","type":["string","null"]},"hostNat":{"pattern":"^[A-Za-z0-9_]{1,32}$","type":["string","null"]},"namespaceFilter":{"pattern":"^[A-Za-z0-9_]{1,32}$","type":"string"}},"required":["namespaceFilter","hostFilter","hostNat"],"type":"object"},"invariants":{"additionalProperties":false,"properties":{"ambientGuestNatAllowed":{"const":false},"guestDnsAllowed":{"const":false},"guestForwardingAllowed":{"const":false},"mediatorOnlyEgress":{"const":true},"rawTcpUdpSupported":{"const":false},"shellCommandsAllowed":{"const":false}},"required":["ambientGuestNatAllowed","guestForwardingAllowed","guestDnsAllowed","mediatorOnlyEgress","rawTcpUdpSupported","shellCommandsAllowed"],"type":"object"},"jobId":{"minLength":1,"type":"string"},"launchPlanDigest":{"$ref":"#/$defs/digest"},"manifestDigest":{"$ref":"#/$defs/digest"},"mediatorCommand":{"oneOf":[{"items":{"type":"string"},"minItems":1,"type":"array"},{"type":"null"}]},"mediatorIdentity":{"oneOf":[{"$ref":"#/$defs/mediatorIdentity"},{"type":"null"}]},"mediatorPolicy":{"type":["object","null"]},"mediatorPolicyPath":{"type":["string","null"]},"mediatorReceiptDirectory":{"type":["string","null"]},"namespace":{"additionalProperties":false,"properties":{"name":{"pattern":"^[A-Za-z0-9_.-]{1,64}$","type":"string"},"path":{"minLength":1,"type":"string"}},"required":["name","path"],"type":"object"},"proxyPort":{"maximum":65535,"minimum":1024,"type":["integer","null"]},"schemaVersion":{"const":"0.1.0"},"setupCommands":{"items":{"$ref":"#/$defs/command"},"maxItems":32,"minItems":3,"type":"array"},"teardownCommands":{"items":{"$ref":"#/$defs/command"},"maxItems":8,"minItems":1,"type":"array"},"vmId":{"pattern":"^[A-Za-z0-9_.-]{1,64}$","type":"string"}},"required":["artifactType","schemaVersion","jobId","vmId","manifestDigest","launchPlanDigest","enabled","namespace","devices","addresses","proxyPort","firewallTables","mediatorPolicy","mediatorPolicyPath","mediatorReceiptDirectory","mediatorIdentity","setupCommands","mediatorCommand","teardownCommands","invariants","contentDigest"],"title":"SOVA Firecracker network plan 0.1.0","type":"object"}