Workload Security
Bring your Kubernetes clusters and your pipeline jobs under the same access policy as everything else.
Before you start
You need the Manage private access permission. Go to Configuration → Workload Security. Its pages are Clusters, Services, Containers and Pipelines.
Clusters need the Workload Security add-on, added on Plan. Node agents are counted by the minute; the cluster gateway is included.
Add a cluster
- Issue a cluster license under Dashboard → Licenses → Cluster Licenses. See Licenses and Seats.
- Install the image and Helm chart with the commands shown. See Installing Fowlguard.
Until you have a cluster, Clusters shows the same install steps under Install a Cluster.
Clusters
Each cluster in the Mesh you are viewing, with its Status, Gateway Replicas, Nodes Now, Node-Hours This Month and when it was Created.
| Status | Means |
|---|---|
| Pending | No gateway or node has joined yet. |
| Active | A gateway or node has been heard from in the last five minutes. |
| Offline | None has been heard from in five minutes. |
| Revoked | Its cluster license was revoked. |
Press a cluster's name to see, for the month you choose, each gateway and node with its minutes and when it was last seen, and the node minutes for each day. Each gateway is also a Router under Private Access → Routers.
Services
The cluster gateway advertises the Kubernetes Services you choose, and keeps them up to date as the cluster changes. Nothing is advertised until you choose it:
| To | Do this |
|---|---|
| Advertise a Service | Annotate it fowlguard.com/advertise: "true". |
| Advertise every Service in a namespace | List the namespace in the chart's gateway.advertise.namespaces. |
| Keep a Service out | Annotate it fowlguard.com/advertise: "false". This wins over its namespace. |
| Give it your own Mesh Hostname | Annotate it fowlguard.com/mesh-hostname: <name>. |
Services lists each one with its namespace, Mesh Hostname, ports, gateway and cluster. The list is read only: the cluster decides it.
Advertising makes a Service reachable by name; your Private Access rules still decide who reaches it and on which ports. Each Service carries the tags k8s-ns:<namespace> and k8s-svc:<namespace>.<service>, so one rule can cover a whole namespace, including Services added to it later.
Containers
Containers lists your clusters for the inspection root in pods, which you set in each cluster's chart. Clusters do not report it to the console, so each shows Not Reported.
Pipelines
A GitHub Actions or GitLab CI job can join your Mesh for the length of the job, to reach a private system such as a database or a server it deploys to, then leave. It proves who it is with the token its CI already issues it, so you store no key or password in your CI. Changing issuers and trust rules needs permission to write rules.
- Under Issuers, press Add and choose GitHub Actions or GitLab CI. For github.com and gitlab.com, name your GitHub organizations or GitLab groups in Owners.
- Under Trust Rules, press Add. Enter the Repository (
acme/web, oracme/*for every repository of an owner), and optionally the Ref, Environment, Workflow and Events. Give the run an Identity Name and Tags. The first rule a job matches decides; a job no rule matches is refused. - Write Private Access rules for the run's tags, for the systems and services it needs.
- In the job, use the Fowlguard GitHub Action or GitLab template with the Organization ID shown under Connection.
Each run lasts until the job ends, and never longer than the issuer's Longest Run (Minutes). Runs are listed under Runs, with the repository, run, commit, workflow and branch of each, not among your Servers. What a run may reach on the internet is set by the Build Runner Preset in Access Policy.
Runners must be Linux with systemd, such as GitHub-hosted Ubuntu runners or your own Linux runners.