CodeCargo logo

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.

CargoWall Overview in the Enforcement view: an Overview header with Policy Manager and Add to workflows buttons above the Overview, Runs, Destinations and Baselines tabs, tiles for 312 denied connections, a 0.5% denial rate, 64904 allowed connections and 11 runs impacted, Connections over time and Denial rate over time charts, and a Top denied destinations table led by pastebin.com with 146 denials
ViewTilesCharts and lists
EnforcementDenied 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
ActivityTotal runs, Total connections, Unique destinations, New destinations, Connections per runConnections over time, New destinations over time
CoverageEnforcement coverage, Audit coverage, Unprotected jobs, Policy assignment, Active policiesEnforcement coverage over time
Audit ReadinessWould-deny connections, Would-deny rate, Projected impactWould-deny rate over time, Top audit-mode workflows
TrendsMean time in auditDenial 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.
Audit Readiness view: 1047 would-deny connections, a 0.3% would-deny rate and a projected impact of 41, a Would-deny rate over time chart that stays near 0%, and a Top audit-mode workflows table with Workflow, Repository, Would deny, Total and Rate columns, led by the ledger-service ci workflow with 986 would-deny connections out of 5,300
Trends view with a Mean time in audit tile of 10 days above four charts: Denial rate over time, Enforcement coverage over time, New destinations over time, and Would-deny rate over time

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.

CargoWall Runs tab: the header counts 28 runs, 4466 allowed, 5 denied and 16 would deny, with a Policy Manager button, above a Run history table with run number, workflow, repository, actor, denied and allowed counts. payments-api release #1284 shows 3 denied and ledger-service ci #1187 shows 4 would-deny in orange

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.

Run #1284 detail on the Jobs tab, filtered to Denied, as someone who can change the run's policies sees it: the Run analysis card shows Policy events for the build job in Enforce, with Manage policy beside its name and three denied connections from the Install dependencies step to api.ipify.org and pastebin.com, each with an Allow button, beside a Summary rail with the source link, duration, actor and counts
  • 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.

Visualizer tab for payments-api release #1284: the build job graph with the Install dependencies step flagged with 3 denials, and its panel listing Network events (5), allowed registry.npmjs.org connections and denied api.ipify.org and pastebin.com connections, with a Denied only checkbox

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.

CargoWall Destinations tab: the header counts 16 destinations, 47068 allowed, 312 denied and 1047 would deny, with a Policy Manager button. Below the tabs, search, the All, Would deny, Denied and Allowed filter, Include auto-allowed and Tag controls sit above a Destination activity table with connection counts, applied policies named by level (Org default policy, and Repository default policy on the two amazonaws.com destinations), tags such as Package registry and Paste site, and last-seen times
  • 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.

The Destinations tab searched for pastebin.com, with its row expanded: 152 connections, 146 denied and 6 would deny over 9 runs, a Ports table with HTTPS 443/tcp and HTTP 80/tcp, and runs grouped by repository for payments-api, identity-gateway and checkout-web, each workflow and job with links to its run numbers

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.

Destination Tags section of the Policy Manager with an Add Tag Rule button and five rules: Paste site for pastebin.com, IP lookup for api.ipify.org, Package registry for *.npmjs.org, Cloud for *.amazonaws.com, and Payments for api.stripe.com

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 as 10.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.com doesn't match api.github.com.
  • * matches exactly one DNS label: *.internal.example.com matches api.internal.example.com and misses api.dev.internal.example.com.
  • ** matches one or more labels: **.internal.example.com matches 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.

CargoWall Overview in the Payments project, Coverage view, with Policy Manager and Add to workflows in the header: 42.2% enforcement coverage, 53.3% audit coverage, 2 unprotected jobs, 100% policy assignment and 3 active policies
The CargoWall tab of the ledger-service repository: a CargoWall card, Runs and baselines for this repository, with Runs and Baselines toggles and a Policy Manager button, above the repository's runs (6 runs, 983 allowed, 0 denied, 10 would deny), a Last 90 days time range and the Run history table
The CargoWall tab of the ledger-service ci workflow in the Baselines view: Runs and Baselines toggles, Policy Manager and Create baseline buttons, and a stable ledger-service · ci baseline observed over 20 runs

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.

Public CargoWall run page for acme-oss/pdf-render run #512: run header with destination and connection counts, and the test job in audit mode showing a would-deny connection to telemetry.fontkit-analytics.io during Install dependencies

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.

The organization's Check Runs setting. The Strict options lock every repository to it.
The Acme Corp organization level in the Policy Manager's Chain view: under Settings, CargoWall Mode set to Audit and the Check Runs list open on Enabled, Enabled (Strict), Disabled and Disabled (Strict)

Notifications

CargoWall notifies the members who can see the affected repositories. Turn each notification off, or change how often it comes, in notification settings:

NotificationWhen
Blocked egressAs a job finishes with connections denied in enforce. Sent even when checks are off
New destinations to reviewDaily, for hosts first seen in the last 7 days
Baselines ready to enforceHourly, for learning baselines that reached their run target
Repositories not enforcingHourly, for repositories that report to CargoWall but still audit
Stalled baselinesHourly, for learning baselines short of their target with no run in 14 days