7 Star 34 Fork 13

Ahoo-Wang / CoSec

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
cosec-policy.schema.json 1.75 KB
一键复制 编辑 原始数据 按行查看 历史
Ahoo-Wang 提交于 2023-03-23 09:59 . Improve code coverage
{
"$schema": "http://json-schema.org/draft-04/schema",
"$id": "https://github.com/Ahoo-Wang/CoSec/blob/main/schema/cosec-policy.schema.json",
"title": "CoSec Policy Schema",
"type": "object",
"properties": {
"id": {
"description": "The id of the policy",
"type": "string"
},
"category": {
"description": "The category of the policy",
"type": "string"
},
"name": {
"description": "The name of the policy",
"type": "string"
},
"description": {
"description": "The description of the policy",
"type": "string"
},
"tenantId": {
"description": "The tenantId of the policy",
"type": "string"
},
"type": {
"description": "The type of the policy",
"$ref": "#/definitions/policyType"
},
"condition": {
"description": "The condition of the policy",
"$ref": "condition.schema.json"
},
"statements": {
"type": "array",
"items": {
"$ref": "#/definitions/statement"
}
}
},
"required": [
"category",
"name",
"description",
"tenantId",
"type",
"statements"
],
"definitions": {
"policyType": {
"enum": [
"global",
"system",
"custom"
]
},
"statement": {
"type": "object",
"properties": {
"name": {
"description": "The name of the Statement",
"type": "string"
},
"effect": {
"$ref": "definitions.schema.json#/definitions/effect",
"default": "allow"
},
"action": {
"$ref": "action.schema.json"
},
"condition": {
"$ref": "condition.schema.json"
}
},
"required": [
"action"
]
}
}
}
Kotlin
1
https://gitee.com/AhooWang/CoSec.git
git@gitee.com:AhooWang/CoSec.git
AhooWang
CoSec
CoSec
main

搜索帮助