Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
106 changes: 106 additions & 0 deletions schemas/acl/3.11.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