[Fleet] Enrollment API keys in Fleet can go out of sync with security state #190708
Labels
bug
Fixes for quality problems that affect the customer experience
Team:Fleet
Team label for Observability Data Collection Fleet team
Kibana version:
All versions
Steps to reproduce:
The api key is still marked as
active
, even though it was marked as invalidated from security apis.Context
When we register a new api key, we create it through the security apis (see
kibana/x-pack/plugins/fleet/server/services/api_keys/enrollment_api_key.ts
Line 270 in c2933de
.fleet-enrollment-api-keys
.On the other side, when the
GET /api/fleet/enrollment_api_keys
gets called, we only query the fleet index. If the api key got invalidated from outside, fleet doesn't know and keeps reporting the api key as active.We should find a way to sync the state of the api keys in
.fleet-enrollment-api-keys
with the actual state registered through security to avoid this type of issues.The text was updated successfully, but these errors were encountered: