Files
hunfabric/modules/vpc-sc/schemas/ingress-policy.schema.json
Julio Castillo 3ed801c464 Use VPC-SC perimeter factory in FAST 1-vpcsc stage (#2928)
* Use VPC-SC perimeter factory in FAST 1-vpcsc stage

* Add boilerplate

* Fix linter and schema checks

* Fix tests

* Fix schemas
2025-02-24 12:29:51 +00:00

87 lines
1.8 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "VPC-SC ingress policy",
"type": "object",
"required": [
"from",
"to"
],
"additionalProperties": false,
"properties": {
"title": {
"type": "string"
},
"from": {
"type": "object",
"additionalProperties": false,
"properties": {
"access_levels": {
"type": "array",
"items": {
"type": "string"
}
},
"identity_type": {
"enum": [
"IDENTITY_TYPE_UNSPECIFIED",
"ANY_IDENTITY",
"ANY_USER_ACCOUNT",
"ANY_SERVICE_ACCOUNT",
""
]
},
"identities": {
"type": "array",
"items": {
"type": "string"
}
},
"resources": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"to": {
"type": "object",
"additionalProperties": false,
"properties": {
"operations": {
"type": "array",
"items": {
"type": "object",
"required": [
"service_name"
],
"properties": {
"method_selectors": {
"type": "array",
"items": {
"type": "string"
}
},
"permission_selectors": {
"type": "array",
"items": {
"type": "string"
},
"service_name": {
"type": "string"
}
}
}
}
},
"resources": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
}
}