I am curious under what situations a generated API...
# community-help
a
I am curious under what situations a generated API key becomes invalid. I have a long running cluster which I generated a key for which is no longer accepted by the cluster. The cluster has lost quorum since the key was generated (and there have been forced resets), but there should have been no loss of persisted data. We are running in k8s
j
There’s an
expires_at
param that controls the expiration.
You can fetch API key metadata by doing a
GET /keys
API call, to see all the active API keys
If you had created a scoped api key, that can have its own expiration embedded
a
hmm. I did not set
expires_at
when creating the key. GET /keys returns no results
are the keys a cluster knows persisted to disk? Or only in memory?
j
Keys are persisted to disk
It’s possible that enough nodes were replaced afresh, so the older cluster lost quorum and the new nodes might have ended up forming a quorum among themselves as a brand new cluster with an empty data directory, instead of syncing data from the existing cluster.