Skip to content

Commit

Permalink
Copy latest schemas to 3.10.x (#84)
Browse files Browse the repository at this point in the history
Co-authored-by: fabianrbz <715229+fabianrbz@users.noreply.github.com>
  • Loading branch information
kong-docs and fabianrbz authored Dec 5, 2024
1 parent 74a6908 commit 32c68fd
Show file tree
Hide file tree
Showing 95 changed files with 32,174 additions and 0 deletions.
106 changes: 106 additions & 0 deletions schemas/acl/3.10.x.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
{
"entity_checks": [
{
"only_one_of": [
"config.allow",
"config.deny"
]
},
{
"at_least_one_of": [
"config.allow",
"config.deny"
]
}
],
"fields": [
{
"consumer": {
"reference": "consumers",
"eq": null,
"type": "foreign",
"description": "Custom type for representing a foreign key with a null value allowed."
}
},
{
"consumer_group": {
"reference": "consumer_groups",
"eq": null,
"type": "foreign",
"description": "Custom type for representing a foreign key with a null value allowed."
}
},
{
"protocols": {
"required": true,
"type": "set",
"default": [
"grpc",
"grpcs",
"http",
"https"
],
"description": "A set of strings representing HTTP protocols.",
"elements": {
"type": "string",
"one_of": [
"grpc",
"grpcs",
"http",
"https"
]
}
}
},
{
"config": {
"fields": [
{
"allow": {
"elements": {
"type": "string"
},
"description": "Arbitrary group names that are allowed to consume the service or route. One of `config.allow` or `config.deny` must be specified.",
"type": "array"
}
},
{
"deny": {
"elements": {
"type": "string"
},
"description": "Arbitrary group names that are not allowed to consume the service or route. One of `config.allow` or `config.deny` must be specified.",
"type": "array"
}
},
{
"hide_groups_header": {
"default": false,
"description": "If enabled (`true`), prevents the `X-Consumer-Groups` header from being sent in the request to the upstream service.",
"required": true,
"type": "boolean"
}
},
{
"include_consumer_groups": {
"default": false,
"description": "If enabled (`true`), allows the consumer-groups to be used in the `allow|deny` fields",
"required": false,
"type": "boolean"
}
},
{
"always_use_authenticated_groups": {
"default": false,
"description": "If enabled (`true`), the authenticated groups will always be used even when an authenticated consumer already exists. If the authenticated groups don't exist, it will fallback to use the groups associated with the consumer. By default the authenticated groups will only be used when there is no consumer or the consumer is anonymous.",
"required": true,
"type": "boolean"
}
}
],
"required": true,
"type": "record"
}
}
]
}
Loading

0 comments on commit 32c68fd

Please sign in to comment.