-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add token mapping and maxItemOne tracking (#279)
- Loading branch information
Showing
3 changed files
with
364 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,3 @@ provider: kong | |
major-version: 4 | ||
docker: true | ||
makeTemplate: bridged | ||
team: ecosystem |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,343 @@ | ||
{ | ||
"auto-aliasing": { | ||
"resources": { | ||
"kong_certificate": { | ||
"current": "kong:index/certificate:Certificate", | ||
"majorVersion": 4, | ||
"fields": { | ||
"snis": { | ||
"maxItemsOne": false | ||
}, | ||
"tags": { | ||
"maxItemsOne": false | ||
} | ||
} | ||
}, | ||
"kong_consumer": { | ||
"current": "kong:index/consumer:Consumer", | ||
"majorVersion": 4, | ||
"fields": { | ||
"tags": { | ||
"maxItemsOne": false | ||
} | ||
} | ||
}, | ||
"kong_consumer_acl": { | ||
"current": "kong:index/consumerAcl:ConsumerAcl", | ||
"majorVersion": 4, | ||
"fields": { | ||
"tags": { | ||
"maxItemsOne": false | ||
} | ||
} | ||
}, | ||
"kong_consumer_basic_auth": { | ||
"current": "kong:index/consumerBasicAuth:ConsumerBasicAuth", | ||
"majorVersion": 4, | ||
"fields": { | ||
"tags": { | ||
"maxItemsOne": false | ||
} | ||
} | ||
}, | ||
"kong_consumer_jwt_auth": { | ||
"current": "kong:index/consumerJwtAuth:ConsumerJwtAuth", | ||
"majorVersion": 4, | ||
"fields": { | ||
"tags": { | ||
"maxItemsOne": false | ||
} | ||
} | ||
}, | ||
"kong_consumer_key_auth": { | ||
"current": "kong:index/consumerKeyAuth:ConsumerKeyAuth", | ||
"majorVersion": 4, | ||
"fields": { | ||
"tags": { | ||
"maxItemsOne": false | ||
} | ||
} | ||
}, | ||
"kong_consumer_oauth2": { | ||
"current": "kong:index/consumerOauth2:ConsumerOauth2", | ||
"majorVersion": 4, | ||
"fields": { | ||
"redirect_uris": { | ||
"maxItemsOne": false | ||
}, | ||
"tags": { | ||
"maxItemsOne": false | ||
} | ||
} | ||
}, | ||
"kong_plugin": { | ||
"current": "kong:index/plugin:Plugin", | ||
"majorVersion": 4, | ||
"fields": { | ||
"tags": { | ||
"maxItemsOne": false | ||
} | ||
} | ||
}, | ||
"kong_route": { | ||
"current": "kong:index/route:Route", | ||
"majorVersion": 4, | ||
"fields": { | ||
"destination": { | ||
"maxItemsOne": false | ||
}, | ||
"header": { | ||
"maxItemsOne": false, | ||
"elem": { | ||
"fields": { | ||
"values": { | ||
"maxItemsOne": false | ||
} | ||
} | ||
} | ||
}, | ||
"hosts": { | ||
"maxItemsOne": false | ||
}, | ||
"methods": { | ||
"maxItemsOne": false | ||
}, | ||
"paths": { | ||
"maxItemsOne": false | ||
}, | ||
"protocols": { | ||
"maxItemsOne": false | ||
}, | ||
"snis": { | ||
"maxItemsOne": false | ||
}, | ||
"source": { | ||
"maxItemsOne": false | ||
}, | ||
"tags": { | ||
"maxItemsOne": false | ||
} | ||
} | ||
}, | ||
"kong_service": { | ||
"current": "kong:index/service:Service", | ||
"majorVersion": 4, | ||
"fields": { | ||
"ca_certificate_ids": { | ||
"maxItemsOne": false | ||
}, | ||
"tags": { | ||
"maxItemsOne": false | ||
} | ||
} | ||
}, | ||
"kong_target": { | ||
"current": "kong:index/target:Target", | ||
"majorVersion": 4, | ||
"fields": { | ||
"tags": { | ||
"maxItemsOne": false | ||
} | ||
} | ||
}, | ||
"kong_upstream": { | ||
"current": "kong:index/upstream:Upstream", | ||
"majorVersion": 4, | ||
"fields": { | ||
"healthchecks": { | ||
"maxItemsOne": true, | ||
"elem": { | ||
"fields": { | ||
"active": { | ||
"maxItemsOne": true, | ||
"elem": { | ||
"fields": { | ||
"healthy": { | ||
"maxItemsOne": true, | ||
"elem": { | ||
"fields": { | ||
"http_statuses": { | ||
"maxItemsOne": false | ||
} | ||
} | ||
} | ||
}, | ||
"unhealthy": { | ||
"maxItemsOne": true, | ||
"elem": { | ||
"fields": { | ||
"http_statuses": { | ||
"maxItemsOne": false | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"passive": { | ||
"maxItemsOne": true, | ||
"elem": { | ||
"fields": { | ||
"healthy": { | ||
"maxItemsOne": true, | ||
"elem": { | ||
"fields": { | ||
"http_statuses": { | ||
"maxItemsOne": false | ||
} | ||
} | ||
} | ||
}, | ||
"unhealthy": { | ||
"maxItemsOne": true, | ||
"elem": { | ||
"fields": { | ||
"http_statuses": { | ||
"maxItemsOne": false | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"tags": { | ||
"maxItemsOne": false | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"renames": { | ||
"resources": { | ||
"kong:index/certificate:Certificate": "kong_certificate", | ||
"kong:index/consumer:Consumer": "kong_consumer", | ||
"kong:index/consumerAcl:ConsumerAcl": "kong_consumer_acl", | ||
"kong:index/consumerBasicAuth:ConsumerBasicAuth": "kong_consumer_basic_auth", | ||
"kong:index/consumerJwtAuth:ConsumerJwtAuth": "kong_consumer_jwt_auth", | ||
"kong:index/consumerKeyAuth:ConsumerKeyAuth": "kong_consumer_key_auth", | ||
"kong:index/consumerOauth2:ConsumerOauth2": "kong_consumer_oauth2", | ||
"kong:index/plugin:Plugin": "kong_plugin", | ||
"kong:index/route:Route": "kong_route", | ||
"kong:index/service:Service": "kong_service", | ||
"kong:index/target:Target": "kong_target", | ||
"kong:index/upstream:Upstream": "kong_upstream" | ||
}, | ||
"renamedProperties": { | ||
"kong:index/UpstreamHealthchecksActive:UpstreamHealthchecksActive": { | ||
"httpPath": "http_path", | ||
"httpsSni": "https_sni", | ||
"httpsVerifyCertificate": "https_verify_certificate" | ||
}, | ||
"kong:index/UpstreamHealthchecksActiveHealthy:UpstreamHealthchecksActiveHealthy": { | ||
"httpStatuses": "http_statuses" | ||
}, | ||
"kong:index/UpstreamHealthchecksActiveUnhealthy:UpstreamHealthchecksActiveUnhealthy": { | ||
"httpFailures": "http_failures", | ||
"httpStatuses": "http_statuses", | ||
"tcpFailures": "tcp_failures" | ||
}, | ||
"kong:index/UpstreamHealthchecksPassiveHealthy:UpstreamHealthchecksPassiveHealthy": { | ||
"httpStatuses": "http_statuses" | ||
}, | ||
"kong:index/UpstreamHealthchecksPassiveUnhealthy:UpstreamHealthchecksPassiveUnhealthy": { | ||
"httpFailures": "http_failures", | ||
"httpStatuses": "http_statuses", | ||
"tcpFailures": "tcp_failures" | ||
}, | ||
"kong:index/certificate:Certificate": { | ||
"privateKey": "private_key" | ||
}, | ||
"kong:index/consumer:Consumer": { | ||
"customId": "custom_id" | ||
}, | ||
"kong:index/consumerAcl:ConsumerAcl": { | ||
"consumerId": "consumer_id" | ||
}, | ||
"kong:index/consumerBasicAuth:ConsumerBasicAuth": { | ||
"consumerId": "consumer_id" | ||
}, | ||
"kong:index/consumerJwtAuth:ConsumerJwtAuth": { | ||
"consumerId": "consumer_id", | ||
"rsaPublicKey": "rsa_public_key" | ||
}, | ||
"kong:index/consumerKeyAuth:ConsumerKeyAuth": { | ||
"consumerId": "consumer_id" | ||
}, | ||
"kong:index/consumerOauth2:ConsumerOauth2": { | ||
"clientId": "client_id", | ||
"clientSecret": "client_secret", | ||
"consumerId": "consumer_id", | ||
"hashSecret": "hash_secret", | ||
"redirectUris": "redirect_uris" | ||
}, | ||
"kong:index/plugin:Plugin": { | ||
"computedConfig": "computed_config", | ||
"configJson": "config_json", | ||
"consumerId": "consumer_id", | ||
"routeId": "route_id", | ||
"serviceId": "service_id", | ||
"strictMatch": "strict_match" | ||
}, | ||
"kong:index/route:Route": { | ||
"destinations": "destination", | ||
"headers": "header", | ||
"httpsRedirectStatusCode": "https_redirect_status_code", | ||
"pathHandling": "path_handling", | ||
"preserveHost": "preserve_host", | ||
"regexPriority": "regex_priority", | ||
"requestBuffering": "request_buffering", | ||
"responseBuffering": "response_buffering", | ||
"serviceId": "service_id", | ||
"sources": "source", | ||
"stripPath": "strip_path" | ||
}, | ||
"kong:index/service:Service": { | ||
"caCertificateIds": "ca_certificate_ids", | ||
"clientCertificateId": "client_certificate_id", | ||
"connectTimeout": "connect_timeout", | ||
"readTimeout": "read_timeout", | ||
"tlsVerify": "tls_verify", | ||
"tlsVerifyDepth": "tls_verify_depth", | ||
"writeTimeout": "write_timeout" | ||
}, | ||
"kong:index/target:Target": { | ||
"upstreamId": "upstream_id" | ||
}, | ||
"kong:index/upstream:Upstream": { | ||
"clientCertificateId": "client_certificate_id", | ||
"hashFallback": "hash_fallback", | ||
"hashFallbackHeader": "hash_fallback_header", | ||
"hashOn": "hash_on", | ||
"hashOnCookie": "hash_on_cookie", | ||
"hashOnCookiePath": "hash_on_cookie_path", | ||
"hashOnHeader": "hash_on_header", | ||
"hostHeader": "host_header" | ||
}, | ||
"kong:index:Provider": { | ||
"kongAdminPassword": "kong_admin_password", | ||
"kongAdminToken": "kong_admin_token", | ||
"kongAdminUri": "kong_admin_uri", | ||
"kongAdminUsername": "kong_admin_username", | ||
"kongApiKey": "kong_api_key", | ||
"kongWorkspace": "kong_workspace", | ||
"strictPluginsMatch": "strict_plugins_match", | ||
"tlsSkipVerify": "tls_skip_verify" | ||
} | ||
}, | ||
"renamedConfigProperties": { | ||
"kongAdminPassword": "kong_admin_password", | ||
"kongAdminToken": "kong_admin_token", | ||
"kongAdminUri": "kong_admin_uri", | ||
"kongAdminUsername": "kong_admin_username", | ||
"kongApiKey": "kong_api_key", | ||
"kongWorkspace": "kong_workspace", | ||
"strictPluginsMatch": "strict_plugins_match", | ||
"tlsSkipVerify": "tls_skip_verify" | ||
} | ||
} | ||
} |
Oops, something went wrong.