Any way to know how a secret got deleted from kubernetes namespace

9/4/2019

A secret went missing in one of my Kubernetes namespaces. Either some process or somebody deleted this accidentally. Is there a way to find out how this got deleted.

-- Frqa
kubernetes

1 Answer

9/4/2019

If audit logging was enabled on the cluster at the time, then yes. Some hosted Kubernetes clusters (GKR, AKS, ...) can be enabled for this too, but you haven't specified the kind of cluster/provider. Otherwise there is no way.

-- Janos Lenart
Source: StackOverflow