-
Notifications
You must be signed in to change notification settings - Fork 160
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TT-14170] Update documentation for master Gateway #6061
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -1787,7 +1787,7 @@ paths: | |||||
summary: Return one certificate or list multiple certificates in the Tyk Gateway | ||||||
given a comma separated list of cert IDs. | ||||||
tags: | ||||||
- CertsTag | ||||||
- Certs | ||||||
/tyk/debug: | ||||||
post: | ||||||
description: Used to test API definition by sending sample request and analysing | ||||||
|
@@ -1796,29 +1796,71 @@ paths: | |||||
requestBody: | ||||||
content: | ||||||
application/json: | ||||||
example: | ||||||
request: | ||||||
method: GET | ||||||
path: /update-listen-path | ||||||
spec: | ||||||
api_id: b84fe1a04e5648927971c0557971565c | ||||||
auth: | ||||||
auth_header_name: authorization | ||||||
definition: | ||||||
key: version | ||||||
location: header | ||||||
name: Tyk Test API | ||||||
org_id: 664a14650619d40001f1f00f | ||||||
proxy: | ||||||
listen_path: /tyk-api-test/ | ||||||
strip_listen_path: true | ||||||
target_url: https://httpbin.org | ||||||
use_oauth2: true | ||||||
version_data: | ||||||
not_versioned: true | ||||||
versions: | ||||||
Default: | ||||||
name: Default | ||||||
examples: | ||||||
apiDefinition: | ||||||
summary: Calling debug endpoint with classic API definition. | ||||||
value: | ||||||
request: | ||||||
method: GET | ||||||
path: /update-listen-path | ||||||
spec: | ||||||
api_id: b84fe1a04e5648927971c0557971565c | ||||||
auth: | ||||||
auth_header_name: authorization | ||||||
definition: | ||||||
key: version | ||||||
location: header | ||||||
name: Tyk Test API | ||||||
org_id: 664a14650619d40001f1f00f | ||||||
proxy: | ||||||
listen_path: /tyk-api-test/ | ||||||
strip_listen_path: true | ||||||
target_url: https://httpbin.org | ||||||
use_oauth2: true | ||||||
version_data: | ||||||
not_versioned: true | ||||||
versions: | ||||||
Default: | ||||||
name: Default | ||||||
oasApiDefinition: | ||||||
summary: Calling debug endpoint with OAS API definition. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should be Tyk OAS API definition. It is potentially confusing to say "OAS API definition". |
||||||
value: | ||||||
request: | ||||||
method: GET | ||||||
path: /get | ||||||
oas: | ||||||
info: | ||||||
title: testdebug | ||||||
version: 1.0.0 | ||||||
openapi: 3.0.3 | ||||||
servers: | ||||||
- url: http://localhost:8181/testdebug/ | ||||||
security: [] | ||||||
paths: {} | ||||||
components: | ||||||
securitySchemes: {} | ||||||
x-tyk-api-gateway: | ||||||
info: | ||||||
dbId: 67a25ff65b60081c8731464f | ||||||
id: d37ea0e360c245cf406d640f1dbf788d | ||||||
orgId: 645b3db586341f751f4258aa | ||||||
name: testdebug | ||||||
state: | ||||||
active: true | ||||||
internal: false | ||||||
middleware: | ||||||
global: | ||||||
contextVariables: | ||||||
enabled: true | ||||||
trafficLogs: | ||||||
enabled: true | ||||||
server: | ||||||
listenPath: | ||||||
strip: true | ||||||
value: "/testdebug/" | ||||||
upstream: | ||||||
url: http://httpbin.org/ | ||||||
|
||||||
schema: | ||||||
$ref: '#/components/schemas/TraceRequest' | ||||||
responses: | ||||||
|
@@ -1861,7 +1903,7 @@ paths: | |||||
schema: | ||||||
$ref: '#/components/schemas/ApiStatusMessage' | ||||||
description: Internal server error. | ||||||
summary: Test an an API definition. | ||||||
summary: Test a Classic or an OAS API definition. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
tags: | ||||||
- Debug | ||||||
/tyk/keys: | ||||||
|
@@ -6277,6 +6319,7 @@ components: | |||||
- executionEngine | ||||||
- subgraph | ||||||
- supergraph | ||||||
- "" # Allow empty string | ||||||
type: string | ||||||
introspection: | ||||||
$ref: '#/components/schemas/GraphQLIntrospectionConfig' | ||||||
|
@@ -6301,9 +6344,9 @@ components: | |||||
type: array | ||||||
version: | ||||||
enum: | ||||||
- '''' | ||||||
- "1" | ||||||
- "2" | ||||||
- "" # Allow empty string | ||||||
type: string | ||||||
type: object | ||||||
GraphQLEngineConfig: | ||||||
|
@@ -7265,6 +7308,7 @@ components: | |||||
trigger: | ||||||
type: number | ||||||
type: object | ||||||
nullable: true | ||||||
RateLimitType2: | ||||||
properties: | ||||||
per: | ||||||
|
@@ -7718,12 +7762,19 @@ components: | |||||
type: string | ||||||
type: object | ||||||
TraceRequest: | ||||||
type: object | ||||||
properties: | ||||||
request: | ||||||
$ref: '#/components/schemas/TraceHttpRequest' | ||||||
spec: | ||||||
$ref: '#/components/schemas/APIDefinition' | ||||||
type: object | ||||||
oas: | ||||||
oneOf: | ||||||
- $ref: 'https://raw.githubusercontent.com/TykTechnologies/tyk/refs/heads/master/apidef/oas/schema/3.0.json' | ||||||
- $ref: '#/components/schemas/XTykAPIGateway' | ||||||
oneOf: | ||||||
- required: [oas] | ||||||
- required: [spec] | ||||||
TraceResponse: | ||||||
properties: | ||||||
logs: | ||||||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -26,7 +26,7 @@ Custom hostname for the Control API | |||||
ENV: <b>TYK_GW_CONTROLAPIPORT</b><br /> | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||||||
Type: `int`<br /> | ||||||
|
||||||
Set to run your Gateway Control API on a separate port, and protect it behind a firewall if needed. Please make sure you follow this guide when setting the control port https://tyk.io/docs/tyk-self-managed/#change-your-control-port. | ||||||
Set to run your Gateway Control API on a separate port, and protect it behind a firewall if needed. Please make sure you follow this guide when setting the control port https://tyk.io/docs/planning-for-production/#change-your-control-port. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
||||||
### secret | ||||||
ENV: <b>TYK_GW_SECRET</b><br /> | ||||||
|
@@ -231,7 +231,7 @@ Start your Gateway HTTP server on specific server name | |||||
ENV: <b>TYK_GW_HTTPSERVEROPTIONS_MINVERSION</b><br /> | ||||||
Type: `uint16`<br /> | ||||||
|
||||||
Minimum TLS version. Possible values: https://tyk.io/docs/api-management/certificates#supported-tls-versions | ||||||
Minimum TLS version. Possible values: https://tyk.io/docs/basic-config-and-security/security/tls-and-ssl/#values-for-tls-versions | ||||||
|
||||||
### http_server_options.max_version | ||||||
ENV: <b>TYK_GW_HTTPSERVEROPTIONS_MAXVERSION</b><br /> | ||||||
|
@@ -271,7 +271,7 @@ Disable automatic character escaping, allowing to path original URL data to the | |||||
ENV: <b>TYK_GW_HTTPSERVEROPTIONS_CIPHERS</b><br /> | ||||||
Type: `[]string`<br /> | ||||||
|
||||||
Custom SSL ciphers. See list of ciphers here https://tyk.io/docs/api-management/certificates#supported-tls-cipher-suites | ||||||
Custom SSL ciphers. See list of ciphers here https://tyk.io/docs/basic-config-and-security/security/tls-and-ssl/#specify-tls-cipher-suites-for-tyk-gateway--tyk-dashboard | ||||||
|
||||||
### http_server_options.max_request_body_size | ||||||
ENV: <b>TYK_GW_HTTPSERVEROPTIONS_MAXREQUESTBODYSIZE</b><br /> | ||||||
|
@@ -1666,6 +1666,40 @@ Type: `string`<br /> | |||||
You can now configure the log format to be either the standard or json format | ||||||
If not set or left empty, it will default to `standard`. | ||||||
|
||||||
### access_logs | ||||||
AccessLogs configures the output for access logs. | ||||||
If not configured, the access log is disabled. | ||||||
|
||||||
### access_logs.enabled | ||||||
ENV: <b>TYK_GW_ACCESSLOGS_ENABLED</b><br /> | ||||||
Type: `bool`<br /> | ||||||
|
||||||
Enabled controls enabling the transaction logs. Default: false. | ||||||
|
||||||
### access_logs.template | ||||||
ENV: <b>TYK_GW_ACCESSLOGS_TEMPLATE</b><br /> | ||||||
Type: `[]string`<br /> | ||||||
|
||||||
Template configures which fields to log into the access log. | ||||||
If unconfigured, all fields listed will be logged. | ||||||
|
||||||
Example: ["client_ip", "path"]. | ||||||
|
||||||
Template Options: | ||||||
|
||||||
- `api_key` will include they obfuscated or hashed key. | ||||||
- `client_ip` will include the ip of the request. | ||||||
- `host` will include the host of the request. | ||||||
- `method` will include the request method. | ||||||
- `path` will include the path of the request. | ||||||
- `protocol` will include the protocol of the request. | ||||||
- `remote_addr` will include the remote address of the request. | ||||||
- `upstream_addr` will include the upstream address (scheme, host and path) | ||||||
- `upstream_latency` will include the upstream latency of the request. | ||||||
- `latency_total` will include the total latency of the request. | ||||||
- `user_agent` will include the user agent of the request. | ||||||
- `status` will include the response status code. | ||||||
|
||||||
### tracing | ||||||
Section for configuring OpenTracing support | ||||||
Deprecated: use OpenTelemetry instead. | ||||||
|
@@ -1980,7 +2014,7 @@ global session lifetime, in seconds. | |||||
ENV: <b>TYK_GW_KV_KV</b><br /> | ||||||
Type: `struct`<br /> | ||||||
|
||||||
See more details https://tyk.io/docs/migration-to-tyk#store-configuration-with-key-value-store/ | ||||||
See more details https://tyk.io/docs/tyk-configuration-reference/kv-store/ | ||||||
|
||||||
### kv.consul.address | ||||||
ENV: <b>TYK_GW_KV_CONSUL_ADDRESS</b><br /> | ||||||
|
@@ -2064,7 +2098,17 @@ KVVersion is the version number of Vault. Usually defaults to 2 | |||||
ENV: <b>TYK_GW_SECRETS</b><br /> | ||||||
Type: `map[string]string`<br /> | ||||||
|
||||||
Secrets are key-value pairs that can be accessed in the dashboard via "secrets://" | ||||||
Secrets configures a list of key/value pairs for the gateway. | ||||||
When configuring it via environment variable, the expected value | ||||||
is a comma separated list of key-value pairs delimited with a colon. | ||||||
|
||||||
Example: `TYK_GW_SECRETS=key1:value1,key2:/value2` | ||||||
Produces: `{"key1": "value1", "key2": "/value2"}` | ||||||
|
||||||
The secret value may be used as `secrets://key1` from the API definition. | ||||||
In versions before gateway 5.3, only `listen_path` and `target_url` fields | ||||||
have had the secrets replaced. | ||||||
See more details https://tyk.io/docs/tyk-configuration-reference/kv-store/#how-to-access-the-externally-stored-data | ||||||
|
||||||
### override_messages | ||||||
Override the default error code and or message returned by middleware. | ||||||
|
@@ -2094,7 +2138,7 @@ Sample Override Message Setting | |||||
ENV: <b>TYK_GW_CLOUD</b><br /> | ||||||
Type: `bool`<br /> | ||||||
|
||||||
Cloud flag shows the Gateway runs in migration-to-tyk#begin-with-tyk-cloud. | ||||||
Cloud flag shows the Gateway runs in Tyk-cloud. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
||||||
### jwt_ssl_insecure_skip_verify | ||||||
ENV: <b>TYK_GW_JWTSSLINSECURESKIPVERIFY</b><br /> | ||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be Tyk Classic API definition