Hey, I’m using kong 2.0.1with helm and I’m trying to config the JWT plugin so I can verify authenticated requests. I have setup the following KongPlugin and KongConsumer:
apiVersion: configuration.konghq.com/v1 kind: KongConsumer metadata: name: datashift-consumer username: global-consumer custom_id: global-consumer-id credentials: - ds-jwt-public
apiVersion: configuration.konghq.com/v1 kind: KongPlugin metadata: name: api-gateway-kong-plugin labels: global: "false" config: run_on_preflight: false plugin: jwt consumer: datashift-consumer-staging
and then I created the following secret:
k create secret generic ds-jwt-public --from-literal=kongCredType=jwt --from-literal=rsa_public_key="-----BEGIN PUBLIC KEY----- ...."
The jwt credential gets created (checked with
GET /jwts) but when I try to send a request with an issued JWT I get
"message": "No credentials found for given 'iss'"
- What I’m missing in the configuration that the plugin isn’t finding the credential to validate the token?
- In the secret creation, how can I set the key algorithm to RS256? I have tried with the option
--from-literal=algorithm=RS256but the credential doesn’t get created in