We’re struggling to limit exposure to a single endpoint for a given service. We do not want all endpoints exposed. However, no matter what we try, ALL endpoints are exposed. Here’s a sample API definition:
{
"api_definition": {
"api_id": "my_api",
"auth": {
"auth_header_name": "Authorization"
},
"info": {
"name": "my_api",
"slug": "my_api"
},
"CORS": {
"allowed_headers": [
"Origin",
"Accept",
"Content-Type",
"X-Requested-With",
"Authorization"
],
"allowed_methods": [
"GET",
"POST",
"OPTIONS",
"HEAD"
],
"allowed_origins": [
"*"
],
"debug": true,
"enable": true,
"options_passthrough": false
},
"disable_quota": true,
"do_not_track": false,
"id": "my_api",
"name": "my_api",
"org_id": "default",
"proxy": {
"listen_path": "/my_api/",
"strip_listen_path": true,
"target_url": "http://my-api.my-api.svc.cluster.local:8888"
},
"slug": "my_api",
"use_keyless": false,
"version_data": {
"not_versioned": true,
"default_version": "",
"versions": {
"": {}
}
},
"extended_paths": {
"white_list": [
{
"path": "^v2/cats",
"method_actions": {
"POST": {
"action": "pass",
"code": 200,
"data": "",
"headers": {}
}
}
}
]
}
}
}
We’re also tried with OAS definitions, and no luck there either.
We’re using Tyk OSS 5.3.0. Other than this, the gateway is working fine.
Any advice would be much appreciated. Thank you!