You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Your Tyk Gateway API secret is stored in your tyk.conf file, the property is called secret, you will need to use this as a header called x-tyk-authorization to make calls to the Gateway API.
Requests for the Admin API will fail when I use the value in the json key secret from the file tyk.standalone.conf for the request header x-tyk-authorization:
{
"message": "Attempted administrative access with invalid or missing key!",
"status": "error"
}
Looking again to the docker-compose.yml file it looks like we have another secret declared:
environment:
- TYK_GW_SECRET=foo
Now if I use the foo as the secret for the request header x-tyk-authorization I have access to the Admin API:
Branch/Environment/Version
Tyk docs version 3.2
Relevant Document
https://tyk.io/docs/getting-started/create-api/#step-1-make-sure-you-know-your-api-secret
Describe the error
In the docs says:
When following the instructions to create an API with the Tyk Docker CE Docker installation the file
tyk.conf
doesn't exist, but from the docker-compose.yml file we can see that the tyk.standalone.conf is mapped totyk.conf
inside the docker container.Requests for the Admin API will fail when I use the value in the json key secret from the file
tyk.standalone.conf
for the request headerx-tyk-authorization
:Looking again to the docker-compose.yml file it looks like we have another secret declared:
Now if I use the
foo
as the secret for the request headerx-tyk-authorization
I have access to the Admin API:Possible Solution
The
docker-compose.yml
file variableTYK_GW_SECRET
could use thesecret
value as per current instructions in the docs.For example:
And then in the docker compose file:
The text was updated successfully, but these errors were encountered: