Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save eshleebien/779a20656b9d771d22fb3ec7d329b4dc to your computer and use it in GitHub Desktop.
Save eshleebien/779a20656b9d771d22fb3ec7d329b4dc to your computer and use it in GitHub Desktop.
For Kong Gateway in Kubernetes medium article
apiVersion: configuration.konghq.com/v1
kind: KongPlugin
metadata:
name: http-jwt
labels:
global: "true"
plugin: jwt
---
apiVersion: configuration.konghq.com/v1
kind: KongConsumer
metadata:
name: api-consumer
username: api
custom_id: api-1
---
apiVersion: configuration.konghq.com/v1
kind: KongCredential
metadata:
name: api-jwt
consumerRef: api-consumer
type: jwt
config:
algorithm: RS256
key: https://{tenant-name}}.auth0.com/
rsa_public_key: |-
-----BEGIN PUBLIC KEY-----
...........................
-----END PUBLIC KEY-----
---
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment