Display a warning if users do not have Agent K configured
Why are we doing this work
- Users are currently able to add Alerts to a policy even if they do not have AgentK or KAS installed and enabled for the project. This is a problem as users will then wonder why they are not getting any Alerts. As most users who have AgentK installed and configured are also likely to have KAS enabled, we are scoping this Alert to only display if AgentK is not enabled for the current project.
Design
- When AgentK is installed and configured for a project, then there will be no change to current designs.
- When AgentK is not installed or configured for a project, then a warning message will be displayed, including a link to documentation on how to install AgentK.
Non-functional requirements
-
Documentation: I am waiting until the end to update the documentation as this feature is behind a feature flag -
Feature flag: This feature is behind the threat_monitoring_alerts
feature flag -
Testing
Implementation plan
-
backend create an endpoint that will return true or false depending on whether or not AgentK is installed in the specified project. The database can be queried to get this information for the specific project. - Done with
query {project(fullPath: "root/agent_project") {
clusterAgents{
count
}
}
}
-
frontend conditionally add a warning message on the create/edit policy page.
Existing resources
Edited by Alexander Turinske