This repository has been archived by the owner on May 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
Debug API Key invalid authentication
Scott Ganyo edited this page Jul 31, 2018
·
1 revision
Check the Istio Services section. Remember, the service name must be a fully qualified Istio service name. For example, helloworld.default.svc.cluster.local
is the helloworld
service in the default
namespace.
Remember, a path like /
or /**
will match any path. You may also use '*' or '**' wildcards for matching.
curl localhost/hello -H "x-api-key: wwTcvmHvQ7Dui2qwj43GlKJAOwmo"
See the Mixer-logging-and-metrics page on how to set up and view the logs.
Check the logs for a line that looks something like this:
Resolve api: helloworld.default.svc.cluster.local, path: /hello, scopes: [scope1 scope2]
Selected: [helloworld]
Eliminated: [helloworld2 doesn't match path: /hello]
This should give you the information you need as to why your request was rejected.