Safeguard Docs
Compliance ConnectorsSetup by categoryVersion Control

Gerrit

Connect Gerrit to Safeguard: what it provides, how to set it up, and the frameworks it provides evidence for.

Connect Gerrit to collect version control evidence with automated compliance tests, switched on per workspace.

CategoryVersion Control
Connect withAPI token
What a connection producesAutomated compliance tests
Gerrit's guidegerrit-review.googlesource.com

Connect with an API token

  1. In Gerrit:

    1. Sign in to Gerrit as the account Safeguard will use and open Settings.
    2. In the HTTP Credentials section, click Generate Password (or, on sites that configure it, Obtain Password and follow the site-specific instructions).
    3. Copy the generated HTTP password.
    4. As a Gerrit administrator, open the access rights settings of the root project All-Projects.
    5. Assign the global capability View All Accounts to a group containing the Safeguard account.
    6. Grant that group Read on refs/* and on refs/meta/config for the projects Safeguard should see.

    Where to find the other values:

    • Instance URL: The https base address of your Gerrit server.
    • Username: The username of the Gerrit account Safeguard signs in as.

    Global capabilities are set in the root project All-Projects. View All Accounts lists all accounts regardless of accounts.visibility but not all account data (secondary emails need View Secondary Emails). Docs do not say whether the generated password is shown only once. That the username is displayed in HTTP Credentials is not explicitly quoted in the fetched text. Verification: the BROWSE › Repositories menu path and the username being shown under HTTP Credentials were not in the fetched docs and were dropped.

    Source: gerrit-review.googlesource.com, gerrit-review.googlesource.com, checked 2026-10-07.

    The permissions Safeguard needs: Read on projects and refs/meta/config, View All Accounts.

  2. On Compliance › Connectors, open Gerrit, click Connect, choose API token and fill in:

    FieldWhat to enter
    Instance URLRequired. Your own server: an https address reachable from the internet.
    UsernameRequired.
    HTTP passwordRequired. Stored encrypted and never shown again.
  3. Click Connect with token.

Frameworks

Safeguard's automated tests read Gerrit and map to the controls below. When a test passes, the result is evidence toward each control it maps to, in every framework listed. It is evidence toward a control, not proof that the control is met on its own.

FrameworkEvidenceControlsTests
SOC2Automated testsCC6.2, CC6.3, CC8.15
ISO/IEC 27001Automated testsA.5.16, A.5.18, A.6.5, A.8.2, A.8.25, A.8.325
HIPAA Security RuleAutomated tests164.308(a)(1), 164.308(a)(3), 164.308(a)(4), 164.312(c)(1)5
PCI DSSAutomated tests6.5.1, 7.2.2, 7.2.4, 8.2.55
NIST CSF 2.0Automated testsPR.AA-01, PR.AA-05, PR.PS-01, PR.PS-065

These tests are switched on per workspace by the Safeguard team.

On this page