application.tsb.tetrate.io/v2
Resource Types:
API
| Name | Type | Description | Required |
|---|---|---|---|
| apiVersion | string | application.tsb.tetrate.io/v2 | true |
| kind | string | API | true |
| metadata | object | Refer to the Kubernetes API documentation for the fields of the metadata field. | true |
| spec | object | An API configuring a set of servers and endpoints that expose the Application business logic. | false |
| status | object | false |
API.spec
An API configuring a set of servers and endpoints that expose the Application business logic.
| Name | Type | Description | Required |
|---|---|---|---|
| configResources | []object | The configuration resources that are related to this API object. | false |
| description | string | A description of the resource. | false |
| displayName | string | User friendly name for the resource. | false |
| endpoints | []object | List of endpoints exposed by this API. | false |
| etag | string | The etag for the resource. | false |
| fqn | string | Fully-qualified name of the resource. | false |
| httpServers | []object | List of gateways servers that expose the API. | false |
| openapi | string | The raw OpenAPI spec for this API. | false |
| servers | []object | DEPRECATED: For new created APIs, the exposed servers will be available at httpServers. | false |
| workloadSelector | object | false |
API.spec.configResources[index]
| Name | Type | Description | Required |
|---|---|---|---|
| exclusivelyOwned | boolean | false | |
| expectedEtag | string | false | |
| fqn | string | The FQN of the resource this status is computed for. | false |
API.spec.endpoints[index]
| Name | Type | Description | Required |
|---|---|---|---|
| exposedBy | object | The exposer of this endpoint. | false |
| hostnames | []string | The list of hostnames where this endpoint is exposed. | false |
| methods | []string | The list of HTTP methods this endpoint supports. | false |
| path | string | The HTTP path of the endpoint, relative to the hostnames exposed by the API. | false |
| service | string | DEPRECATED: For new created APIs, the exposed servers will be available at httpServers. | false |
API.spec.endpoints[index].exposedBy
The exposer of this endpoint.
| Name | Type | Description | Required |
|---|---|---|---|
| clusterGroup | object | The clusters that are exposing a concrete endpoint. | false |
| service | string | The FQN of the service in the service registry that is exposing a concrete endpoint. | false |
API.spec.endpoints[index].exposedBy.clusterGroup
The clusters that are exposing a concrete endpoint.
| Name | Type | Description | Required |
|---|---|---|---|
| clusters | []object | The clusters that contain gateways exposing the HTTPEndpoint. | false |
API.spec.endpoints[index].exposedBy.clusterGroup.clusters[index]
| Name | Type | Description | Required |
|---|---|---|---|
| labels | map[string]string | Labels associated with the cluster. | false |
| name | string | The name of the cluster exposing the endpoint. | false |
| weight | integer | The weight for traffic to a cluster exposing the endpoint. Minimum: 0 | false |
API.spec.httpServers[index]
| Name | Type | Description | Required |
|---|---|---|---|
| authentication | object | false | |
| authorization | object | Authorization is used to configure authorization of end users. | false |
| hostname | string | Hostname with which the service can be expected to be accessed by clients. | false |
| name | string | A name assigned to the server. | false |
| port | integer | The port where the server is exposed at the gateway workload(pod). Minimum: 0 | false |
| rateLimiting | object | Configuration for rate limiting requests. | false |
| routing | object | Routing rules associated with HTTP traffic to this server. | false |
| tls | object | TLS certificate info. | false |
| trafficMode | enum | Traffic mode specifies the type of configuration applied to this server. Enum: AUTO, INGRESS, EGRESS, TRANSIT | false |
| transit | boolean | If set to true, the server is configured to be exposed within the mesh. | false |
API.spec.httpServers[index].authentication
| Name | Type | Description | Required |
|---|---|---|---|
| jwt | object | Authenticate an HTTP request from a JWT Token attached to it. | false |
| oidc | object | false | |
| rules | object | List of rules how to authenticate an HTTP request. | false |
API.spec.httpServers[index].authentication.jwt
Authenticate an HTTP request from a JWT Token attached to it.
| Name | Type | Description | Required |
|---|---|---|---|
| audiences | []string | false | |
| fromHeaders | []object | This field specifies the locations to extract JWT token. | false |
| issuer | string | Identifies the issuer that issued the JWT. | false |
| jwks | string | JSON Web Key Set of public keys to validate signature of the JWT. | false |
| jwksUri | string | false | |
| outputClaimToHeaders | []object | This field specifies a list of operations to copy the claim to HTTP headers on a successfully verified token. | false |
| outputPayloadToHeader | string | false |
API.spec.httpServers[index].authentication.jwt.fromHeaders[index]
| Name | Type | Description | Required |
|---|---|---|---|
| name | string | The HTTP header name. | false |
| prefix | string | The prefix that should be stripped before decoding the token. | false |
API.spec.httpServers[index].authentication.jwt.outputClaimToHeaders[index]
| Name | Type | Description | Required |
|---|---|---|---|
| claim | string | The name of the claim to be copied from. | false |
| header | string | The name of the header to be created. | false |
API.spec.httpServers[index].authentication.oidc
| Name | Type | Description | Required |
|---|---|---|---|
| authScopes | []string | Optional list of OAuth scopes to be claimed in the authorization request. | false |
| authType | enum | Defines how client_id and client_secret are sent in OAuth client to OAuth server requests. Enum: DEFAULT_AUTH_TYPE, URL_ENCODED_BODY, BASIC_AUTH | false |
| clientId | string | The client_id to be used in the authorize calls. | false |
| clientTokenSecret | string | The name of the Kubernetes secret containing the client secret. | false |
| grantType | enum | Enum: DEFAULT_GRANT_TYPE, AUTHORIZATION_CODE | false |
| provider | object | The OIDC Provider configuration. | false |
| redirectPathMatcher | string | false | |
| redirectUri | string | false | |
| signoutPath | string | The path to sign a user out, clearing their credential cookies. | false |
API.spec.httpServers[index].authentication.oidc.provider
The OIDC Provider configuration.
| Name | Type | Description | Required |
|---|---|---|---|
| authorizationEndpoint | string | The OIDC Provider's authorization endpoint. | false |
| issuer | string | The OIDC Provider's issuer identifier. | false |
| jwks | string | JSON string with the OIDC provider's JSON Web Key Sets. | false |
| jwksUri | string | URI for the OIDC provider's JSON Web Key Sets. | false |
| tokenEndpoint | string | The OIDC Provider's token endpoint. | false |
API.spec.httpServers[index].authentication.rules
List of rules how to authenticate an HTTP request.
| Name | Type | Description | Required |
|---|---|---|---|
| jwt | []object | List of rules how to authenticate an HTTP request from a JWT Token attached to it. | false |
API.spec.httpServers[index].authentication.rules.jwt[index]
| Name | Type | Description | Required |
|---|---|---|---|
| audiences | []string | false | |
| fromHeaders | []object | This field specifies the locations to extract JWT token. | false |
| issuer | string | Identifies the issuer that issued the JWT. | false |
| jwks | string | JSON Web Key Set of public keys to validate signature of the JWT. | false |
| jwksUri | string | false | |
| outputClaimToHeaders | []object | This field specifies a list of operations to copy the claim to HTTP headers on a successfully verified token. | false |
| outputPayloadToHeader | string | false |
API.spec.httpServers[index].authentication.rules.jwt[index].fromHeaders[index]
| Name | Type | Description | Required |
|---|---|---|---|
| name | string | The HTTP header name. | false |
| prefix | string | The prefix that should be stripped before decoding the token. | false |
API.spec.httpServers[index].authentication.rules.jwt[index].outputClaimToHeaders[index]
| Name | Type | Description | Required |
|---|---|---|---|
| claim | string | The name of the claim to be copied from. | false |
| header | string | The name of the header to be created. | false |
API.spec.httpServers[index].authorization
Authorization is used to configure authorization of end users.
| Name | Type | Description | Required |
|---|---|---|---|
| external | object | false | |
| local | object | false |
API.spec.httpServers[index].authorization.external
| Name | Type | Description | Required |
|---|---|---|---|
| includeRequestHeaders | []string | false | |
| tls | object | false | |
| uri | string | false |
API.spec.httpServers[index].authorization.external.tls
| Name | Type | Description | Required |
|---|---|---|---|
| files | object | TLS key source from files. | false |
| mode | enum | Enum: DISABLED, SIMPLE, MUTUAL | false |
| secretName | string | TLS key source from a Kubernetes Secret. | false |
| subjectAltNames | []string | false |
API.spec.httpServers[index].authorization.external.tls.files
TLS key source from files.
| Name | Type | Description | Required |
|---|---|---|---|
| caCertificates | string | false | |
| clientCertificate | string | Certificate file to authenticate the client. | false |
| privateKey | string | Private key file associated with the client certificate. | false |
API.spec.httpServers[index].authorization.local
| Name | Type | Description | Required |
|---|---|---|---|
| rules | []object | false |
API.spec.httpServers[index].authorization.local.rules[index]
| Name | Type | Description | Required |
|---|---|---|---|
| from | []object | false | |
| name | string | A friendly name to identify the binding. | false |
| to | []object | false |
API.spec.httpServers[index].authorization.local.rules[index].from[index]
| Name | Type | Description | Required |
|---|---|---|---|
| jwt | object | JWT configuration to identity the subject. | false |
API.spec.httpServers[index].authorization.local.rules[index].from[index].jwt
JWT configuration to identity the subject.
| Name | Type | Description | Required |
|---|---|---|---|
| iss | string | false | |
| other | map[string]string | A set of arbitrary claims that are required to qualify the subject. | false |
| sub | string | false |
API.spec.httpServers[index].authorization.local.rules[index].to[index]
| Name | Type | Description | Required |
|---|---|---|---|
| methods | []string | The HTTP methods that are allowed by this rule. | false |
| paths | []string | The request path where the request is made against. | false |
API.spec.httpServers[index].rateLimiting
Configuration for rate limiting requests.
| Name | Type | Description | Required |
|---|---|---|---|
| externalService | object | Configure ratelimiting using an external ratelimit server. | false |
| settings | object | false |
API.spec.httpServers[index].rateLimiting.externalService
Configure ratelimiting using an external ratelimit server.
| Name | Type | Description | Required |
|---|---|---|---|
| domain | string | The rate limit domain to use when calling the rate limit service. | false |
| failClosed | boolean | false | |
| rateLimitServerUri | string | The URI at which the external rate limit server can be reached. | false |
| rules | []object | A set of rate limit rules. | false |
| timeout | string | The timeout in seconds for the external rate limit server RPC. | false |
| tls | object | false |
API.spec.httpServers[index].rateLimiting.externalService.rules[index]
| Name | Type | Description | Required |
|---|---|---|---|
| dimensions | []object | A list of dimensions that are to be applied for this rate limit configuration. | false |
API.spec.httpServers[index].rateLimiting.externalService.rules[index].dimensions[index]
| Name | Type | Description | Required |
|---|---|---|---|
| destinationCluster | object | Rate limit on destination envoy cluster. | false |
| headerValueMatch | object | Rate limit on the existence of certain request headers. | false |
| remoteAddress | object | Rate limit on remote address of client. | false |
| requestHeaders | object | Rate limit on the value of certain request headers. | false |
| sourceCluster | object | Rate limit on source envoy cluster. | false |
API.spec.httpServers[index].rateLimiting.externalService.rules[index].dimensions[index].headerValueMatch
Rate limit on the existence of certain request headers.
| Name | Type | Description | Required |
|---|---|---|---|
| descriptorValue | string | The value to use in the descriptor entry. | false |
| dontMatch | boolean | If set to true, the condition will be met when the header value does not match. | false |
| headers | map[string]object | false |
API.spec.httpServers[index].rateLimiting.externalService.rules[index].dimensions[index].headerValueMatch.headers[key]
| Name | Type | Description | Required |
|---|---|---|---|
| exact | string | Exact string match. | false |
| prefix | string | Prefix-based match. | false |
| regex | string | ECMAscript style regex-based match. | false |
API.spec.httpServers[index].rateLimiting.externalService.rules[index].dimensions[index].requestHeaders
Rate limit on the value of certain request headers.
| Name | Type | Description | Required |
|---|---|---|---|
| descriptorKey | string | The key to use in the descriptor entry. | false |
| headerName | string | The header name to be queried from the request headers. | false |
API.spec.httpServers[index].rateLimiting.externalService.tls
| Name | Type | Description | Required |
|---|---|---|---|
| files | object | TLS key source from files. | false |
| mode | enum | Enum: DISABLED, SIMPLE, MUTUAL | false |
| secretName | string | TLS key source from a Kubernetes Secret. | false |
| subjectAltNames | []string | false |
API.spec.httpServers[index].rateLimiting.externalService.tls.files
TLS key source from files.
| Name | Type | Description | Required |
|---|---|---|---|
| caCertificates | string | false | |
| clientCertificate | string | Certificate file to authenticate the client. | false |
| privateKey | string | Private key file associated with the client certificate. | false |
API.spec.httpServers[index].rateLimiting.settings
| Name | Type | Description | Required |
|---|---|---|---|
| failClosed | boolean | false | |
| rules | []object | A list of rules for ratelimiting. | false |
| timeout | string | The timeout in seconds for the rate limit server RPC. | false |
API.spec.httpServers[index].rateLimiting.settings.rules[index]
| Name | Type | Description | Required |
|---|---|---|---|
| dimensions | []object | A list of dimensions to define each ratelimit rule. | false |
| limit | object | The ratelimit value that will be configured for the above rules. | false |
API.spec.httpServers[index].rateLimiting.settings.rules[index].dimensions[index]
| Name | Type | Description | Required |
|---|---|---|---|
| header | object | Rate limit on certain HTTP headers. | false |
| remoteAddress | object | Rate limit on the remote address of client. | false |
API.spec.httpServers[index].rateLimiting.settings.rules[index].dimensions[index].header
Rate limit on certain HTTP headers.
| Name | Type | Description | Required |
|---|---|---|---|
| dontMatch | boolean | If set to true, the condition will be met when the header value does not match. | false |
| name | string | Name of the header to match on. | false |
| value | object | Value of the header to match on if matching on a specific value. | false |
API.spec.httpServers[index].rateLimiting.settings.rules[index].dimensions[index].header.value
Value of the header to match on if matching on a specific value.
| Name | Type | Description | Required |
|---|---|---|---|
| exact | string | Exact string match. | false |
| prefix | string | Prefix-based match. | false |
| regex | string | ECMAscript style regex-based match. | false |
API.spec.httpServers[index].rateLimiting.settings.rules[index].dimensions[index].remoteAddress
Rate limit on the remote address of client.
| Name | Type | Description | Required |
|---|---|---|---|
| value | string | Ratelimit on a specific remote address. | false |
API.spec.httpServers[index].rateLimiting.settings.rules[index].limit
The ratelimit value that will be configured for the above rules.
| Name | Type | Description | Required |
|---|---|---|---|
| requestsPerUnit | integer | Specifies the value of the rate limit. Minimum: 0 | false |
| unit | enum | Specifies the unit of time for rate limit. Enum: UNKNOWN, SECOND, MINUTE, HOUR, DAY | false |
API.spec.httpServers[index].routing
Routing rules associated with HTTP traffic to this server.
| Name | Type | Description | Required |
|---|---|---|---|
| corsPolicy | object | Cross origin resource request policy settings for all routes. | false |
| rules | []object | HTTP routes. | false |
API.spec.httpServers[index].routing.corsPolicy
Cross origin resource request policy settings for all routes.
| Name | Type | Description | Required |
|---|---|---|---|
| allowCredentials | boolean | false | |
| allowHeaders | []string | List of HTTP headers that can be used when requesting the resource. | false |
| allowMethods | []string | List of HTTP methods allowed to access the resource. | false |
| allowOrigin | []string | The list of origins that are allowed to perform CORS requests. | false |
| exposeHeaders | []string | A white list of HTTP headers that the browsers are allowed to access. | false |
| maxAge | string | Specifies how long the results of a preflight request can be cached. | false |
API.spec.httpServers[index].routing.rules[index]
| Name | Type | Description | Required |
|---|---|---|---|
| directResponse | object | Return a fixed response. | false |
| disableExternalAuthorization | boolean | false | |
| match | []object | One or more match conditions (OR-ed). | false |
| modify | object | One or more mutations to be performed before forwarding. | false |
| redirect | object | Redirect the request to a different host or URL or both. | false |
| route | object | Forward the request to the specified destination(s). | false |
API.spec.httpServers[index].routing.rules[index].directResponse
Return a fixed response.
| Name | Type | Description | Required |
|---|---|---|---|
| body | object | Specifies the content of the response body. | false |
| status | integer | Specifies the HTTP response status to be returned. Minimum: 0 | false |
API.spec.httpServers[index].routing.rules[index].directResponse.body
Specifies the content of the response body.
| Name | Type | Description | Required |
|---|---|---|---|
| bytes | string | response body as base64 encoded bytes. Format: binary | false |
| string | string | false |
API.spec.httpServers[index].routing.rules[index].match[index]
| Name | Type | Description | Required |
|---|---|---|---|
| headers | map[string]object | The header keys must be lowercase and use hyphen as the separator, e.g. | false |
| uri | object | URI to match. | false |
API.spec.httpServers[index].routing.rules[index].match[index].headers[key]
| Name | Type | Description | Required |
|---|---|---|---|
| exact | string | Exact string match. | false |
| prefix | string | Prefix-based match. | false |
| regex | string | ECMAscript style regex-based match. | false |
API.spec.httpServers[index].routing.rules[index].match[index].uri
URI to match.
| Name | Type | Description | Required |
|---|---|---|---|
| exact | string | Exact string match. | false |
| prefix | string | Prefix-based match. | false |
| regex | string | ECMAscript style regex-based match. | false |
API.spec.httpServers[index].routing.rules[index].modify
One or more mutations to be performed before forwarding.
| Name | Type | Description | Required |
|---|---|---|---|
| headers | object | Add/remove/overwrite one or more HTTP headers in a request or response. | false |
| rewrite | object | Rewrite the HTTP Host or URL or both. | false |
API.spec.httpServers[index].routing.rules[index].modify.headers
Add/remove/overwrite one or more HTTP headers in a request or response.
| Name | Type | Description | Required |
|---|---|---|---|
| request | object | Header manipulation rules to apply before forwarding a request to the destination service. | false |
| response | object | Header manipulation rules to apply before returning a response to the caller. | false |
API.spec.httpServers[index].routing.rules[index].modify.headers.request
Header manipulation rules to apply before forwarding a request to the destination service.
| Name | Type | Description | Required |
|---|---|---|---|
| add | map[string]string | false | |
| remove | []string | Remove a the specified headers. | false |
| set | map[string]string | Overwrite the headers specified by key with the given values. | false |
API.spec.httpServers[index].routing.rules[index].modify.headers.response
Header manipulation rules to apply before returning a response to the caller.
| Name | Type | Description | Required |
|---|---|---|---|
| add | map[string]string | false | |
| remove | []string | Remove a the specified headers. | false |
| set | map[string]string | Overwrite the headers specified by key with the given values. | false |
API.spec.httpServers[index].routing.rules[index].modify.rewrite
Rewrite the HTTP Host or URL or both.
| Name | Type | Description | Required |
|---|---|---|---|
| authority | string | Rewrite the Authority/Host header with this value. | false |
| uri | string | Rewrite the path (or the prefix) portion of the URI with this value. | false |
API.spec.httpServers[index].routing.rules[index].redirect
Redirect the request to a different host or URL or both.
| Name | Type | Description | Required |
|---|---|---|---|
| authority | string | On a redirect, overwrite the Authority/Host portion of the URL with this value. | false |
| port | integer | Minimum: 0 | false |
| redirectCode | integer | Minimum: 0 | false |
| scheme | string | On a redirect, overwrite the scheme with this one. | false |
| uri | string | On a redirect, overwrite the Path portion of the URL with this value. | false |
API.spec.httpServers[index].routing.rules[index].route
Forward the request to the specified destination(s).
| Name | Type | Description | Required |
|---|---|---|---|
| clusterDestination | object | false | |
| serviceDestination | object | RouteToService represents the service running in clusters. | false |
API.spec.httpServers[index].routing.rules[index].route.clusterDestination
| Name | Type | Description | Required |
|---|---|---|---|
| clusters | []object | The destination clusters that contain ingress gateways exposing the hostname. | false |
API.spec.httpServers[index].routing.rules[index].route.clusterDestination.clusters[index]
| Name | Type | Description | Required |
|---|---|---|---|
| labels | map[string]string | Labels associated with the cluster. | false |
| name | string | The name of the destination cluster. | false |
| network | string | The network associated with the destination clusters. | false |
| weight | integer | The weight for traffic to a given destination. Minimum: 0 | false |
API.spec.httpServers[index].routing.rules[index].route.serviceDestination
RouteToService represents the service running in clusters.
| Name | Type | Description | Required |
|---|---|---|---|
| host | string | The destination service in | false |
| port | integer | The port on the service to forward the request to. Minimum: 0 | false |
| tls | object | false |
API.spec.httpServers[index].routing.rules[index].route.serviceDestination.tls
| Name | Type | Description | Required |
|---|---|---|---|
| files | object | TLS key source from files. | false |
| mode | enum | Enum: DISABLED, SIMPLE, MUTUAL | false |
| secretName | string | TLS key source from a Kubernetes Secret. | false |
| subjectAltNames | []string | false |
API.spec.httpServers[index].routing.rules[index].route.serviceDestination.tls.files
TLS key source from files.
| Name | Type | Description | Required |
|---|---|---|---|
| caCertificates | string | false | |
| clientCertificate | string | Certificate file to authenticate the client. | false |
| privateKey | string | Private key file associated with the client certificate. | false |
API.spec.httpServers[index].tls
TLS certificate info.
| Name | Type | Description | Required |
|---|---|---|---|
| cipherSuites | []string | List of cipher suites to be used for TLS connections. | false |
| files | object | false | |
| maxProtocolVersion | enum | Set the maximum supported TLS protocol version. Enum: TLS_AUTO, TLSV1_0, TLSV1_1, TLSV1_2, TLSV1_3 | false |
| minProtocolVersion | enum | Set the minimum supported TLS protocol version. Enum: TLS_AUTO, TLSV1_0, TLSV1_1, TLSV1_2, TLSV1_3 | false |
| mode | enum | Enum: DISABLED, SIMPLE, MUTUAL, OPTIONAL_MUTUAL | false |
| secretName | string | false | |
| subjectAltNames | []string | false |
API.spec.httpServers[index].tls.files
| Name | Type | Description | Required |
|---|---|---|---|
| caCertificates | string | false | |
| privateKey | string | false | |
| serverCertificate | string | false |
API.spec.servers[index]
| Name | Type | Description | Required |
|---|---|---|---|
| authentication | object | Configuration to authenticate clients. | false |
| authorization | object | Configuration to authorize a request. | false |
| hostname | string | Hostname with which the service can be expected to be accessed by clients. | false |
| name | string | A name assigned to the server. | false |
| port | integer | The port where the server is exposed. Minimum: 0 | false |
| rateLimiting | object | Configuration for rate limiting requests. | false |
| routing | object | Routing rules associated with HTTP traffic to this service. | false |
| tls | object | TLS certificate info. | false |
| xxxOldAuthentication | object | false | |
| xxxOldAuthorization | object | false |
API.spec.servers[index].authentication
Configuration to authenticate clients.
| Name | Type | Description | Required |
|---|---|---|---|
| jwt | object | Authenticate an HTTP request from a JWT Token attached to it. | false |
| oidc | object | false | |
| rules | object | List of rules how to authenticate an HTTP request. | false |
API.spec.servers[index].authentication.jwt
Authenticate an HTTP request from a JWT Token attached to it.
| Name | Type | Description | Required |
|---|---|---|---|
| audiences | []string | false | |
| fromHeaders | []object | This field specifies the locations to extract JWT token. | false |
| issuer | string | Identifies the issuer that issued the JWT. | false |
| jwks | string | JSON Web Key Set of public keys to validate signature of the JWT. | false |
| jwksUri | string | false | |
| outputClaimToHeaders | []object | This field specifies a list of operations to copy the claim to HTTP headers on a successfully verified token. | false |
| outputPayloadToHeader | string | false |
API.spec.servers[index].authentication.jwt.fromHeaders[index]
| Name | Type | Description | Required |
|---|---|---|---|
| name | string | The HTTP header name. | false |
| prefix | string | The prefix that should be stripped before decoding the token. | false |
API.spec.servers[index].authentication.jwt.outputClaimToHeaders[index]
| Name | Type | Description | Required |
|---|---|---|---|
| claim | string | The name of the claim to be copied from. | false |
| header | string | The name of the header to be created. | false |
API.spec.servers[index].authentication.oidc
| Name | Type | Description | Required |
|---|---|---|---|
| authScopes | []string | Optional list of OAuth scopes to be claimed in the authorization request. | false |
| authType | enum | Defines how client_id and client_secret are sent in OAuth client to OAuth server requests. Enum: DEFAULT_AUTH_TYPE, URL_ENCODED_BODY, BASIC_AUTH | false |
| clientId | string | The client_id to be used in the authorize calls. | false |
| clientTokenSecret | string | The name of the Kubernetes secret containing the client secret. | false |
| grantType | enum | Enum: DEFAULT_GRANT_TYPE, AUTHORIZATION_CODE | false |
| provider | object | The OIDC Provider configuration. | false |
| redirectPathMatcher | string | false | |
| redirectUri | string | false | |
| signoutPath | string | The path to sign a user out, clearing their credential cookies. | false |
API.spec.servers[index].authentication.oidc.provider
The OIDC Provider configuration.
| Name | Type | Description | Required |
|---|---|---|---|
| authorizationEndpoint | string | The OIDC Provider's authorization endpoint. | false |
| issuer | string | The OIDC Provider's issuer identifier. | false |
| jwks | string | JSON string with the OIDC provider's JSON Web Key Sets. | false |
| jwksUri | string | URI for the OIDC provider's JSON Web Key Sets. | false |
| tokenEndpoint | string | The OIDC Provider's token endpoint. | false |
API.spec.servers[index].authentication.rules
List of rules how to authenticate an HTTP request.
| Name | Type | Description | Required |
|---|---|---|---|
| jwt | []object | List of rules how to authenticate an HTTP request from a JWT Token attached to it. | false |
API.spec.servers[index].authentication.rules.jwt[index]
| Name | Type | Description | Required |
|---|---|---|---|
| audiences | []string | false | |
| fromHeaders | []object | This field specifies the locations to extract JWT token. | false |
| issuer | string | Identifies the issuer that issued the JWT. | false |
| jwks | string | JSON Web Key Set of public keys to validate signature of the JWT. | false |
| jwksUri | string | false | |
| outputClaimToHeaders | []object | This field specifies a list of operations to copy the claim to HTTP headers on a successfully verified token. | false |
| outputPayloadToHeader | string | false |
API.spec.servers[index].authentication.rules.jwt[index].fromHeaders[index]
| Name | Type | Description | Required |
|---|---|---|---|
| name | string | The HTTP header name. | false |
| prefix | string | The prefix that should be stripped before decoding the token. | false |
API.spec.servers[index].authentication.rules.jwt[index].outputClaimToHeaders[index]
| Name | Type | Description | Required |
|---|---|---|---|
| claim | string | The name of the claim to be copied from. | false |
| header | string | The name of the header to be created. | false |
API.spec.servers[index].authorization
Configuration to authorize a request.
| Name | Type | Description | Required |
|---|---|---|---|
| external | object | false | |
| local | object | false |
API.spec.servers[index].authorization.external
| Name | Type | Description | Required |
|---|---|---|---|
| includeRequestHeaders | []string | false | |
| tls | object | false | |
| uri | string | false |
API.spec.servers[index].authorization.external.tls
| Name | Type | Description | Required |
|---|---|---|---|
| files | object | TLS key source from files. | false |
| mode | enum | Enum: DISABLED, SIMPLE, MUTUAL | false |
| secretName | string | TLS key source from a Kubernetes Secret. | false |
| subjectAltNames | []string | false |
API.spec.servers[index].authorization.external.tls.files
TLS key source from files.
| Name | Type | Description | Required |
|---|---|---|---|
| caCertificates | string | false | |
| clientCertificate | string | Certificate file to authenticate the client. | false |
| privateKey | string | Private key file associated with the client certificate. | false |
API.spec.servers[index].authorization.local
| Name | Type | Description | Required |
|---|---|---|---|
| rules | []object | false |
API.spec.servers[index].authorization.local.rules[index]
| Name | Type | Description | Required |
|---|---|---|---|
| from | []object | false | |
| name | string | A friendly name to identify the binding. | false |
| to | []object | false |
API.spec.servers[index].authorization.local.rules[index].from[index]
| Name | Type | Description | Required |
|---|---|---|---|
| jwt | object | JWT configuration to identity the subject. | false |
API.spec.servers[index].authorization.local.rules[index].from[index].jwt
JWT configuration to identity the subject.
| Name | Type | Description | Required |
|---|---|---|---|
| iss | string | false | |
| other | map[string]string | A set of arbitrary claims that are required to qualify the subject. | false |
| sub | string | false |
API.spec.servers[index].authorization.local.rules[index].to[index]
| Name | Type | Description | Required |
|---|---|---|---|
| methods | []string | The HTTP methods that are allowed by this rule. | false |
| paths | []string | The request path where the request is made against. | false |
API.spec.servers[index].rateLimiting
Configuration for rate limiting requests.
| Name | Type | Description | Required |
|---|---|---|---|
| externalService | object | Configure ratelimiting using an external ratelimit server. | false |
| settings | object | false |
API.spec.servers[index].rateLimiting.externalService
Configure ratelimiting using an external ratelimit server.
| Name | Type | Description | Required |
|---|---|---|---|
| domain | string | The rate limit domain to use when calling the rate limit service. | false |
| failClosed | boolean | false | |
| rateLimitServerUri | string | The URI at which the external rate limit server can be reached. | false |
| rules | []object | A set of rate limit rules. | false |
| timeout | string | The timeout in seconds for the external rate limit server RPC. | false |
| tls | object | false |
API.spec.servers[index].rateLimiting.externalService.rules[index]
| Name | Type | Description | Required |
|---|---|---|---|
| dimensions | []object | A list of dimensions that are to be applied for this rate limit configuration. | false |
API.spec.servers[index].rateLimiting.externalService.rules[index].dimensions[index]
| Name | Type | Description | Required |
|---|---|---|---|
| destinationCluster | object | Rate limit on destination envoy cluster. | false |
| headerValueMatch | object | Rate limit on the existence of certain request headers. | false |
| remoteAddress | object | Rate limit on remote address of client. | false |
| requestHeaders | object | Rate limit on the value of certain request headers. | false |
| sourceCluster | object | Rate limit on source envoy cluster. | false |
API.spec.servers[index].rateLimiting.externalService.rules[index].dimensions[index].headerValueMatch
Rate limit on the existence of certain request headers.
| Name | Type | Description | Required |
|---|---|---|---|
| descriptorValue | string | The value to use in the descriptor entry. | false |
| dontMatch | boolean | If set to true, the condition will be met when the header value does not match. | false |
| headers | map[string]object | false |
API.spec.servers[index].rateLimiting.externalService.rules[index].dimensions[index].headerValueMatch.headers[key]
| Name | Type | Description | Required |
|---|---|---|---|
| exact | string | Exact string match. | false |
| prefix | string | Prefix-based match. | false |
| regex | string | ECMAscript style regex-based match. | false |
API.spec.servers[index].rateLimiting.externalService.rules[index].dimensions[index].requestHeaders
Rate limit on the value of certain request headers.
| Name | Type | Description | Required |
|---|---|---|---|
| descriptorKey | string | The key to use in the descriptor entry. | false |
| headerName | string | The header name to be queried from the request headers. | false |
API.spec.servers[index].rateLimiting.externalService.tls
| Name | Type | Description | Required |
|---|---|---|---|
| files | object | TLS key source from files. | false |
| mode | enum | Enum: DISABLED, SIMPLE, MUTUAL | false |
| secretName | string | TLS key source from a Kubernetes Secret. | false |
| subjectAltNames | []string | false |
API.spec.servers[index].rateLimiting.externalService.tls.files
TLS key source from files.
| Name | Type | Description | Required |
|---|---|---|---|
| caCertificates | string | false | |
| clientCertificate | string | Certificate file to authenticate the client. | false |
| privateKey | string | Private key file associated with the client certificate. | false |
API.spec.servers[index].rateLimiting.settings
| Name | Type | Description | Required |
|---|---|---|---|
| failClosed | boolean | false | |
| rules | []object | A list of rules for ratelimiting. | false |
| timeout | string | The timeout in seconds for the rate limit server RPC. | false |
API.spec.servers[index].rateLimiting.settings.rules[index]
| Name | Type | Description | Required |
|---|---|---|---|
| dimensions | []object | A list of dimensions to define each ratelimit rule. | false |
| limit | object | The ratelimit value that will be configured for the above rules. | false |
API.spec.servers[index].rateLimiting.settings.rules[index].dimensions[index]
| Name | Type | Description | Required |
|---|---|---|---|
| header | object | Rate limit on certain HTTP headers. | false |
| remoteAddress | object | Rate limit on the remote address of client. | false |
API.spec.servers[index].rateLimiting.settings.rules[index].dimensions[index].header
Rate limit on certain HTTP headers.
| Name | Type | Description | Required |
|---|---|---|---|
| dontMatch | boolean | If set to true, the condition will be met when the header value does not match. | false |
| name | string | Name of the header to match on. | false |
| value | object | Value of the header to match on if matching on a specific value. | false |
API.spec.servers[index].rateLimiting.settings.rules[index].dimensions[index].header.value
Value of the header to match on if matching on a specific value.
| Name | Type | Description | Required |
|---|---|---|---|
| exact | string | Exact string match. | false |
| prefix | string | Prefix-based match. | false |
| regex | string | ECMAscript style regex-based match. | false |
API.spec.servers[index].rateLimiting.settings.rules[index].dimensions[index].remoteAddress
Rate limit on the remote address of client.
| Name | Type | Description | Required |
|---|---|---|---|
| value | string | Ratelimit on a specific remote address. | false |
API.spec.servers[index].rateLimiting.settings.rules[index].limit
The ratelimit value that will be configured for the above rules.
| Name | Type | Description | Required |
|---|---|---|---|
| requestsPerUnit | integer | Specifies the value of the rate limit. Minimum: 0 | false |
| unit | enum | Specifies the unit of time for rate limit. Enum: UNKNOWN, SECOND, MINUTE, HOUR, DAY | false |
API.spec.servers[index].routing
Routing rules associated with HTTP traffic to this service.
| Name | Type | Description | Required |
|---|---|---|---|
| corsPolicy | object | Cross origin resource request policy settings for all routes. | false |
| rules | []object | HTTP routes. | false |
API.spec.servers[index].routing.corsPolicy
Cross origin resource request policy settings for all routes.
| Name | Type | Description | Required |
|---|---|---|---|
| allowCredentials | boolean | false | |
| allowHeaders | []string | List of HTTP headers that can be used when requesting the resource. | false |
| allowMethods | []string | List of HTTP methods allowed to access the resource. | false |
| allowOrigin | []string | The list of origins that are allowed to perform CORS requests. | false |
| exposeHeaders | []string | A white list of HTTP headers that the browsers are allowed to access. | false |
| maxAge | string | Specifies how long the results of a preflight request can be cached. | false |
API.spec.servers[index].routing.rules[index]
| Name | Type | Description | Required |
|---|---|---|---|
| directResponse | object | Return a fixed response. | false |
| match | []object | One or more match conditions (OR-ed). | false |
| modify | object | One or more mutations to be performed before forwarding. | false |
| redirect | object | Redirect the request to a different host or URL or both. | false |
| route | object | Forward the request to the specified destination(s). | false |
API.spec.servers[index].routing.rules[index].directResponse
Return a fixed response.
| Name | Type | Description | Required |
|---|---|---|---|
| body | object | Specifies the content of the response body. | false |
| status | integer | Specifies the HTTP response status to be returned. Minimum: 0 | false |
API.spec.servers[index].routing.rules[index].directResponse.body
Specifies the content of the response body.
| Name | Type | Description | Required |
|---|---|---|---|
| bytes | string | response body as base64 encoded bytes. Format: binary | false |
| string | string | false |
API.spec.servers[index].routing.rules[index].match[index]
| Name | Type | Description | Required |
|---|---|---|---|
| headers | map[string]object | The header keys must be lowercase and use hyphen as the separator, e.g. | false |
| uri | object | URI to match. | false |
API.spec.servers[index].routing.rules[index].match[index].headers[key]
| Name | Type | Description | Required |
|---|---|---|---|
| exact | string | Exact string match. | false |
| prefix | string | Prefix-based match. | false |
| regex | string | ECMAscript style regex-based match. | false |
API.spec.servers[index].routing.rules[index].match[index].uri
URI to match.
| Name | Type | Description | Required |
|---|---|---|---|
| exact | string | Exact string match. | false |
| prefix | string | Prefix-based match. | false |
| regex | string | ECMAscript style regex-based match. | false |
API.spec.servers[index].routing.rules[index].modify
One or more mutations to be performed before forwarding.
| Name | Type | Description | Required |
|---|---|---|---|
| headers | object | Add/remove/overwrite one or more HTTP headers in a request or response. | false |
| rewrite | object | Rewrite the HTTP Host or URL or both. | false |
API.spec.servers[index].routing.rules[index].modify.headers
Add/remove/overwrite one or more HTTP headers in a request or response.
| Name | Type | Description | Required |
|---|---|---|---|
| request | object | Header manipulation rules to apply before forwarding a request to the destination service. | false |
| response | object | Header manipulation rules to apply before returning a response to the caller. | false |
API.spec.servers[index].routing.rules[index].modify.headers.request
Header manipulation rules to apply before forwarding a request to the destination service.
| Name | Type | Description | Required |
|---|---|---|---|
| add | map[string]string | false | |
| remove | []string | Remove a the specified headers. | false |
| set | map[string]string | Overwrite the headers specified by key with the given values. | false |
API.spec.servers[index].routing.rules[index].modify.headers.response
Header manipulation rules to apply before returning a response to the caller.
| Name | Type | Description | Required |
|---|---|---|---|
| add | map[string]string | false | |
| remove | []string | Remove a the specified headers. | false |
| set | map[string]string | Overwrite the headers specified by key with the given values. | false |
API.spec.servers[index].routing.rules[index].modify.rewrite
Rewrite the HTTP Host or URL or both.
| Name | Type | Description | Required |
|---|---|---|---|
| authority | string | Rewrite the Authority/Host header with this value. | false |
| uri | string | Rewrite the path (or the prefix) portion of the URI with this value. | false |
API.spec.servers[index].routing.rules[index].redirect
Redirect the request to a different host or URL or both.
| Name | Type | Description | Required |
|---|---|---|---|
| authority | string | On a redirect, overwrite the Authority/Host portion of the URL with this value. | false |
| port | integer | Minimum: 0 | false |
| redirectCode | integer | Minimum: 0 | false |
| scheme | string | On a redirect, overwrite the scheme with this one. | false |
| uri | string | On a redirect, overwrite the Path portion of the URL with this value. | false |
API.spec.servers[index].routing.rules[index].route
Forward the request to the specified destination(s).
| Name | Type | Description | Required |
|---|---|---|---|
| host | string | false | |
| port | integer | The port on the service to forward the request to. Minimum: 0 | false |
API.spec.servers[index].tls
TLS certificate info.
| Name | Type | Description | Required |
|---|---|---|---|
| cipherSuites | []string | List of cipher suites to be used for TLS connections. | false |
| files | object | false | |
| maxProtocolVersion | enum | Set the maximum supported TLS protocol version. Enum: TLS_AUTO, TLSV1_0, TLSV1_1, TLSV1_2, TLSV1_3 | false |
| minProtocolVersion | enum | Set the minimum supported TLS protocol version. Enum: TLS_AUTO, TLSV1_0, TLSV1_1, TLSV1_2, TLSV1_3 | false |
| mode | enum | Enum: DISABLED, SIMPLE, MUTUAL, OPTIONAL_MUTUAL | false |
| secretName | string | false | |
| subjectAltNames | []string | false |
API.spec.servers[index].tls.files
| Name | Type | Description | Required |
|---|---|---|---|
| caCertificates | string | false | |
| privateKey | string | false | |
| serverCertificate | string | false |
API.spec.servers[index].xxxOldAuthentication
| Name | Type | Description | Required |
|---|---|---|---|
| jwt | object | false |
API.spec.servers[index].xxxOldAuthentication.jwt
| Name | Type | Description | Required |
|---|---|---|---|
| audiences | []string | false | |
| issuer | string | Identifies the issuer that issued the JWT. | false |
| jwks | string | JSON Web Key Set of public keys to validate signature of the JWT. | false |
| jwksUri | string | false |
API.spec.servers[index].xxxOldAuthorization
| Name | Type | Description | Required |
|---|---|---|---|
| external | object | false | |
| local | object | false |
API.spec.servers[index].xxxOldAuthorization.external
| Name | Type | Description | Required |
|---|---|---|---|
| includeRequestHeaders | []string | false | |
| uri | string | false |
API.spec.servers[index].xxxOldAuthorization.local
| Name | Type | Description | Required |
|---|---|---|---|
| rules | []object | false |
API.spec.servers[index].xxxOldAuthorization.local.rules[index]
| Name | Type | Description | Required |
|---|---|---|---|
| from | []object | false | |
| name | string | A friendly name to identify the binding. | false |
| to | []object | false |
API.spec.servers[index].xxxOldAuthorization.local.rules[index].from[index]
| Name | Type | Description | Required |
|---|---|---|---|
| jwt | object | JWT configuration to identity the subject. | false |
API.spec.servers[index].xxxOldAuthorization.local.rules[index].from[index].jwt
JWT configuration to identity the subject.
| Name | Type | Description | Required |
|---|---|---|---|
| iss | string | false | |
| other | map[string]string | A set of arbitrary claims that are required to qualify the subject. | false |
| sub | string | false |
API.spec.servers[index].xxxOldAuthorization.local.rules[index].to[index]
| Name | Type | Description | Required |
|---|---|---|---|
| methods | []string | The HTTP methods that are allowed by this rule. | false |
| paths | []string | The request path where the request is made against. | false |
API.spec.workloadSelector
| Name | Type | Description | Required |
|---|---|---|---|
| labels | map[string]string | false | |
| namespace | string | The namespace where the workload resides. | false |
Application
| Name | Type | Description | Required |
|---|---|---|---|
| apiVersion | string | application.tsb.tetrate.io/v2 | true |
| kind | string | Application | true |
| metadata | object | Refer to the Kubernetes API documentation for the fields of the metadata field. | true |
| spec | object | false | |
| status | object | false |
Application.spec
| Name | Type | Description | Required |
|---|---|---|---|
| configResources | []object | The configuration resources that are related to this Application. | false |
| description | string | A description of the resource. | false |
| displayName | string | User friendly name for the resource. | false |
| etag | string | The etag for the resource. | false |
| fqn | string | Fully-qualified name of the resource. | false |
| gatewayGroup | string | Optional FQN of the Gateway Group to be used by the application. | false |
| namespaceSelector | object | Optional set of namespaces this application can configure. | false |
| services | []string | Optional list of services that are part of the application. | false |
| workspace | string | FQN of the workspace this application is part of. | false |
Application.spec.configResources[index]
| Name | Type | Description | Required |
|---|---|---|---|
| exclusivelyOwned | boolean | false | |
| expectedEtag | string | false | |
| fqn | string | The FQN of the resource this status is computed for. | false |
Application.spec.namespaceSelector
Optional set of namespaces this application can configure.
| Name | Type | Description | Required |
|---|---|---|---|
| names | []string | false |