Files
hunfabric/modules/vpc-sc/schemas/access-level.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

112 lines
2.9 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "VPC-SC access level",
"type": "object",
"additionalProperties": false,
"properties": {
"combining_function": {
"type": "string"
},
"conditions": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"device_policy": {
"type": "object",
"required": [
"require_admin_approval",
"require_corp_owned"
],
"additionalProperties": false,
"properties": {
"allowed_device_management_levels": {
"type": "array",
"items": {
"type": "string"
}
},
"allowed_encryption_statuses": {
"type": "array",
"items": {
"type": "string"
}
},
"require_admin_approval": {
"type": "boolean"
},
"require_corp_owned": {
"type": "boolean"
},
"require_screen_lock": {
"type": "boolean"
},
"os_constraints": {
"type": "array",
"required": [
"os_type"
],
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"os_type": {
"type": "string"
},
"minimum_version": {
"type": "string"
},
"require_verified_chrome_os": {
"type": "boolean"
}
}
}
}
}
},
"ip_subnetworks": {
"type": "array",
"items": {
"type": "string"
}
},
"members": {
"type": "array",
"items": {
"type": "string"
}
},
"negate": {
"type": "boolean"
},
"regions": {
"type": "array",
"items": {
"type": "string"
}
},
"required_access_levels": {
"type": "array",
"items": {
"type": "string"
}
},
"vpc_subnets": {
"type": "object",
"additionalProperties": false,
"patternProperties": {
"^//compute.googleapis.com/projects/[^/]+/global/networks/[^/]+$": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
}
}
}
}
}