We’re using Tyk 4.1.0 (OSS) with pretty much everything defaulted. When I look in the /opt/tyk-gateway/polices directory I see a single policy that is the ‘default’ policy that I have seen in earlier versions.
When I call the tyk/policies endpoint however I get:
[
{
"_id": "",
"id": "",
"name": "",
"org_id": "",
"rate": 0,
"per": 0,
"quota_max": 0,
"quota_renewal_rate": 0,
"throttle_interval": 0,
"throttle_retry_limit": 0,
"max_query_depth": 0,
"access_rights": null,
"hmac_enabled": false,
"enable_http_signature_validation": false,
"active": false,
"is_inactive": false,
"tags": null,
"key_expires_in": 0,
"partitions": {
"quota": false,
"rate_limit": false,
"complexity": false,
"acl": false,
"per_api": false
},
"last_updated": "",
"meta_data": null,
"graphql_access_rights": null
}
]
which obviously is not named ‘default’ and doesn’t look like whats in policy.json.
I can add a policy using the tyk/policies POST, and it comes back and says its ok (although it doesn’t have a key)
{
"key": "",
"status": "ok",
"action": "added"
}
Has anyone else seen this? Are we doing something wrong?