Hi,
I am using Tyk-OSS 5.4.0 and I was able to create a policy via API call (endpoint: /policies):
I got the following response from the API:
{
"key": "",
"status": "ok",
"action": "added"
}
However when inspecting the policies directory I took notice that the policy file was created without a name but only with the file extension : .json :
Should the API not generate a filename automatically likewise I can seen on this post: #5567
evel=error msg="Failed to create file! - open ZGVmYXVsdC9odHRwYmlu.json: read-only file system"
My Helm Configuration:
extraEnvs:
- name: TYK_LOGLEVEL
value: "debug"
- name: TYK_GW_POLICIES_POLICYSOURCE
value: ""
- name: TYK_GW_POLICIES_POLICYRECORDNAME
value: ""
- name: TYK_GW_POLICIES_POLICYPATH
value: "/opt/tyk-gateway/policies"
extraVolumes:
- name: tyk-policies-volume
extraVolumeMounts:
- name: tyk-policies-volume
mountPath: /opt/tyk-gateway/policies
readOnly: false
Thank you!