The key auth plugin mentions that is possible to set a ttl
" The number of seconds the key is going to be valid. If missing or set to zero, the ttl
of the key is unlimited. If present, the value must be an integer between 0 and 100000000."
I’m deploying Kong ingress controller on Kubernetes as follows, however not sure where to configure the ttl parameter
kind: Ingress
metadata:
name: baas
annotations:
konghq.com/plugins: key-auth-example
konghq.com/strip-path: “true”
spec:
ingressClassName: kong
rules:
- host: test.example.com
…
kind: KongPlugin
metadata:
name: key-auth-example
config:
key_names:
- apikey
key_in_body: false
key_in_header: true
key_in_query: true
hide_credentials: false
run_on_preflight: true
plugin: key-auth
data:
key: bXktc29vcGVyLXNlY3JldC1rZXk=
kongCredType: a2V5LWF1dGg=
kind: Secret
metadata:
name: harry-apikey
type: Opaque
kind: KongConsumer
metadata:
name: harry
annotations:
kubernetes.io/ingress.class: kong
username: harry
credentials:
- harry-apikey