Open
Description
Version
3.7.0
What Kubernetes platforms are you running on?
Openshift
Steps to reproduce
Creating the following secret:
apiVersion: v1
kind: Secret
metadata:
name: apikey-secret
type: nginx.org/apikey
stringData:
client1: "demo"
client2: "showcase"
Then attaching it to a policy:
apiVersion: k8s.nginx.org/v1
kind: Policy
metadata:
name: apikey-policy
spec:
apiKey:
clientSecret: apikey-secret
suppliedIn:
header:
- x-api-key
When deleting an api key using oc apply
the object does not update, when deleting via OCP UI it deletes.
In addition when changing the name of a client the configuration will break and remove the api key authentication from the config file.
Only way that i have managed to delete/change name of API Keys is to completely delete the secret and re-create it.