Security
Monitoring
CargoWall records every outbound connection a job makes, with the step and process that made it, and whether the job's policy allowed it. You read that record in CargoWall in your organization's sidebar, on four tabs: Overview, Runs, Destinations and Baselines. Baselines has its own page. A Policy Manager button on each tab opens the Policy Manager.
Overview
The Overview tab has five views: Enforcement, Activity, Coverage, Audit Readiness and Trends. Each shows summary tiles and charts for the selected time range. Hover a tile for what it counts.
The Overview opens on Enforcement once any job enforces. While every job only audits, as when the Migration Assistant brings an organization onto CargoWall, it opens on Audit Readiness, which shows what enforcing would deny. Enforcement would show only zeros. A link that names a view always opens that view.
| View | Tiles | Charts and lists |
|---|---|---|
| Enforcement | Denied connections, Denial rate, Allowed connections, Runs impacted (runs with a denied connection) | Connections over time (allowed, denied and would deny), Denial rate over time, Top denied destinations |
| Activity | Total runs, Total connections, Unique destinations, New destinations, Connections per run | Connections over time, New destinations over time |
| Coverage | Enforcement coverage, Audit coverage, Unprotected jobs, Policy assignment, Active policies | Enforcement coverage over time |
| Audit Readiness | Would-deny connections, Would-deny rate, Projected impact | Would-deny rate over time, Top audit-mode workflows |
| Trends | Mean time in audit | Denial rate over time, Enforcement coverage over time, New destinations over time, Would-deny rate over time |
- Top denied destinations lists up to ten of the most-denied hosts, with their tags. Each count opens the Destinations tab on denied connections, searched for that host, and View all opens them all.
- Coverage counts the jobs CargoWall has seen in your default-branch workflows, by the mode CodeCargo gives them. Enforcement coverage is the share set to enforce, and Audit coverage the share set to audit. A job counts once its CargoWall step has reported, and keeps counting if the step is later removed. A job that has never run the step isn't counted. Ready to Enforce checks whether a workflow still runs the step. Policy assignment is the share of active repositories with a named policy assigned to the repository itself. Policies assigned to the organization, and default policies, don't count toward it.
- Top audit-mode workflows ranks up to ten audit-mode workflows by would-deny connections, so you can tell which to work on before enforcing. For a verdict on one scope, see Ready to Enforce.
- Mean time in audit is the average number of days a scope spent in audit before it switched to enforce. See Mode History.
When no run falls in the time range, every view but Coverage says No runs in this time range and suggests a longer one. Before any workflow has reported, the Overview shows Get started with CargoWall instead. See Add CargoWall to Workflows.
Time Range
The Overview, Runs and Destinations tabs, and the runs on a repository's or workflow's CargoWall tab, share a time range selector:
- Quick ranges run from Last Hour to Last 90 Days.
- Absolute time range takes a From and To, typed (such as
now-7d) or picked from a calendar, then Apply time range.
How far back you can go is your plan's CargoWall history: 30 days on the free plan, 90 days on other plans. Longer quick ranges are hidden, the calendar stops there, and an earlier start is moved up to it. The Overview opens on the last 7 days and Runs on your whole history. The Destinations tab's selector always runs to Last 90 Days, whatever your plan, and opens on it. On the free plan it still shows only the last 30 days.
Runs
The Runs tab lists the workflow runs CargoWall has recorded, with each run's denied and allowed connections. The list opens newest first. Sort it by Workflow, Repository or Actor. A run with would-deny connections shows that count in orange in Denied. Filter by Workflow, Repository or Actor from the column headers. Active filters show as chips above the table, and stay in the page's URL.
When the time range or filters leave the list empty, it says which one matched no run and how to widen it: choose a longer time range, or clear a filter. Before any workflow has reported, it reads No CargoWall runs yet. Someone who can install CargoWall gets Add to workflows there. Anyone else is told to ask an organization admin.
The Runs and Destinations tabs show at most 500 rows. Past that, a banner asks you to narrow the time range or filter.
A run from a repository that isn't active in CodeCargo offers Activate repository to someone who can activate it.
Run Detail
Click a run to open it. The header shows the run number, whether anything was denied or would have been, the workflow and repository, and Open in Policy Manager when you can change the workflow's default policy. The run's analysis has two tabs, Jobs and Visualizer.
Jobs
Pick a job from the Jobs list to see its Policy events: every outbound connection, with the Step and process that made it, the Destination with its tags, the Port (DNS lookups are marked DNS), the Status, and the Timestamp. Above the list are the job's destinations, and its allowed, denied (or would deny) and total connections.
Search the events, switch between All and Denied (Would deny in audit mode), or tick Include auto-allowed to see the connections CargoWall always allows.
- Allow, on a denied or would-deny row, adds the destination to a policy without leaving the run. It appears when you can change a policy that applies to the run. See Allow a Destination.
- Manage policy, beside the job's name, opens the Policy Manager on that job, when you can change its default policies.
- A connection that reached its destination through a CNAME of an allowed host expands to show the CNAME chain, from the name the job looked up to the one it reached.
Visualizer
The Visualizer draws the workflow from its file at the run's commit, with each job's and step's network activity on its node. A matrix job is one node, built from the variants that ran, and its counts add up all of them. Click a job for its summary and unique destinations. Click a step for its Network events, with Denied only (Would-deny only in audit mode) to narrow them.
Summary
The Summary beside the tabs shows the run's duration, who started it and when, its status, and its allowed, denied (or would deny) and destination counts. Its Source links to the run, the branch, tag or pull request, and the commit on GitHub. On narrower screens it sits above the tabs.
Destinations
The Destinations tab lists every host your workflows connected to in the time range, with allowed, denied and would-deny counts, its Applied policies, its tags, and when it was last seen. Applied policies lists the policies in your organization with a hostname rule written exactly as that host, or a CIDR rule containing its address. A default policy is named by its level, such as Workflow default policy. A wildcard or parent-domain rule such as *.npmjs.org doesn't show there, even when it allows the host. The Policy Manager's Effective view shows what a job really gets.
- All, Would deny, Denied or Allowed narrows the list to destinations with those connections.
- Search destinations... matches hostnames and IP addresses. Press Enter to search.
- Include auto-allowed, off at first, adds the hosts CargoWall always allows, such as GitHub, DNS and your cloud's metadata service.
- Tag shows only destinations with one tag. It appears once your organization has tag rules.
Click a destination's row, or its chevron, to expand it. Clicking the hostname copies it instead. The expanded row shows its connection counts, a Ports table of the ports and services it was reached on, and, per repository, the workflows and jobs that connected to it, with links to their runs.
An organization admin can allow a destination from here: open its actions menu (⋯) and choose Add to policy. See Allow a Destination.
IP-Only Destinations
A connection to an IP address that wasn't looked up by name, such as an internal service, is listed by its IP address. Only CIDR rules, in a policy or a tag rule, match it.
A hostname that resolved to one IP address in the time range shows that address too, and CIDR rules that contain it match the hostname as well. A hostname seen at several addresses is matched by hostname rules only.
Destination Tags
Tags label destinations by hostname pattern or IP range, such as Package registry or Paste site, so you can spot and filter them. Tags show on the Destinations tab, on a run's events, and in the Overview's Top denied destinations. They are labels only: they don't allow or deny anything.
To add one, open the Policy Manager, select your organization at the top of Entities, and click Add Tag Rule under Destination Tags. Then set:
- Label — the text on the tag, up to 50 characters
- Color — the badge's color
- Type — Hostname or CIDR Block
- Value — a hostname pattern, such as
*.npmjs.org, or a CIDR range, such as10.0.0.0/8 - Description — optional, shown on hover
Only organization admins add, edit and delete tag rules. A destination can match several rules and shows every tag it matches.
A hostname tag rule matches differently from a policy's hostname rule:
- A plain pattern matches that exact hostname only:
github.comdoesn't matchapi.github.com. *matches exactly one DNS label:*.internal.example.commatchesapi.internal.example.comand missesapi.dev.internal.example.com.**matches one or more labels:**.internal.example.commatches both.- Matching ignores case.
Project, Repository, and Workflow Views
- A project — choose CargoWall in the project's sidebar. It has the same Overview, Runs, Destinations and Baselines tabs, limited to the project's repositories. Its Policy Manager shows only the project's repositories.
- A repository — open its CargoWall tab, then switch between its Runs and Baselines. Policy Manager opens the Policy Manager on the repository.
- A workflow — open its CargoWall tab, with the same Runs and Baselines for the workflow, and Policy Manager on the workflow and its jobs.
On a repository's or workflow's tab, an organization admin can also Create baseline. See Create a Baseline.
Public Run Pages
A run from a public repository has a public page that anyone with the link can open, signed in or not:
/cargowall/github/{owner}/{repo}/actions/runs/{runId}
It shows the run's header, with links to GitHub, and the same Jobs and Visualizer tabs, read-only. It has no Allow or policy links. A signed-in member who can see the whole organization is taken to the run in CargoWall instead.
A public repository doesn't need to be connected to CodeCargo to get a public page. Its runs report on their own, and CodeCargo keeps them for 30 days. The step in such a repository runs on its own inputs, since there's no policy in CodeCargo for it. See How the Step Gets Its Policy.
In CodeCargo, a run older than its organization's CargoWall history says Workflow run logs have expired. Its public page no longer opens, and neither does one whose repository is made private.
CargoWall Checks
CargoWall posts a GitHub check run for each job it watched, on the job's commit, so it shows on pull requests beside your other checks. The check is named CargoWall / {workflow} / {job} and concludes:
- Failure — the job had a denied connection, in enforce.
- Neutral — the job had would-deny connections, in audit.
- Success — nothing was denied or would have been.
The check's summary links to the run in CodeCargo, with its connection counts and up to ten failing hosts. Each host has Add allow rule, and Add allow rules for all N hosts adds them together. Both open the Policy Manager. When the rules you add there cover every denial, the check is updated to pass. Only a rule added from the check's own links updates it. Allow on the run page doesn't. Removing a rule never fails a check again. A public repository that isn't connected to CodeCargo gets no check.
Turning Checks On or Off
Checks are on until you turn them off. Set Check Runs in the Policy Manager's Chain view, under Settings, for the organization or a repository:
- The organization: Enabled or Disabled, which repositories inherit. Enabled (Strict) and Disabled (Strict) lock every repository to that value.
- A repository: Inherit, Enabled or Disabled, unless the organization's setting is strict.
An organization admin changes the organization's setting. A repository's needs an organization admin, or write access to the repository on GitHub.
Notifications
CargoWall notifies the members who can see the affected repositories. Turn each notification off, or change how often it comes, in notification settings:
| Notification | When |
|---|---|
| Blocked egress | As a job finishes with connections denied in enforce. Sent even when checks are off |
| New destinations to review | Daily, for hosts first seen in the last 7 days |
| Baselines ready to enforce | Hourly, for learning baselines that reached their run target |
| Repositories not enforcing | Hourly, for repositories that report to CargoWall but still audit |
| Stalled baselines | Hourly, for learning baselines short of their target with no run in 14 days |
