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
The new watcher configuration for user has been added.
The session code has been modified to consume the new user configuration into the bus.
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.
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.