Get started
In this guide you will learn how to get started with bifrost and how to secure your application. At the end of this guide your application will be running with a security profile tailored to your needs.
Prerequisites
- A Kubernetes cluster.
- A bifrost organization.
- An application to secure, running in the Kubernetes cluster.
Install bifrost-agent
In the bifrost portal, create a new cluster and environment.
In this guide we create two environments: dev
and prod
.
Take note of the environments, since you will refer to it in the following steps.
This will generate an agent key that you will use to install the agent in your Kubernetes cluster.
Then, install the bifrost-agent in your Kubernetes cluster. Replace <AGENT_KEY>
with the agent key.
If using Kubernetes Pod Security Admission, label the namespace to allow the bifrost-agent to run with the required capabilities (AUDIT_READ, MAC_ADMIN, NET_BROADCAST).
You can verify that the agent is running by the number of nodes that should be listed in the bifrost portal. The agent is running as a daemonset, so it should be running on all nodes in your cluster.
Audit your application
After the agent is running, you can start auditing your application by adding the necessary label annotations to your pod. Usually you will add this to a pod template in your deployment. Here we are using podinfo as an example:
Now you will see a service in the bifrost portal.
Lock down your application
We can now redeploy podinfo in enforce mode to prevent undesired behavior. Podinfo will get a security profile based on its behavior during audit mode.
Let’s verify that the security profile is applied by triggering an unexpected behavior.
This will trigger an alert which can be seen in the portal.
Hurray! Your have completed the getting started guide for bifrost.