sensu / sensu-go

Simple. Scalable. Multi-cloud monitoring.
https://sensu.io
MIT License
1.02k stars 176 forks source link

Disabling agent account doesn’t terminate active connections - Fix #5055

Open SudhanshuBawane opened 6 months ago

SudhanshuBawane commented 6 months ago

closed 2608

Description

To fix the behavior of the agent not getting disconnected while user is disabled.

Fixed

The agent is now getting disconnected as soon as the user is disabled unlike before.

Added

Change verification

To verify the change as normal run backend and agent, as soon as both are running and connected, Disable the user via sensuctl command. In backend you will see a shutting down a agent session prompt and in agent will fail to do a handshake with bad credential prompt.