Documentation: state plainly that Gitaly TLS does not authenticate clients, and publish Zero Trust deployment guidance for NSS, DoD, and DIB operators
Finding
Operators are reading the Gitaly TLS page as a mutual-authentication capability. The page (Gitaly TLS support) says Gitaly supports TLS encryption and that Gitaly presents its certificate as a client certificate in connections to GitLab, which readers take to mean mutual TLS between GitLab and Gitaly. GitLab's infrastructure team noted in gl-infra/reliability#6484 that an earlier version wrongly claimed TLS credentials for gRPC authentication and that authentication is bearer-token based. The current text still does not state the limitation in the direction that matters: the Gitaly listener does not request or verify client certificates. Assessors, authorizing officials, and architects at IL5 and IL6 are making decisions on this page.
Standards
- NIST SP 800-53 Rev. 5 SA-4(1) Functional Properties of Controls and SA-5 System Documentation: documentation must accurately describe the security functions of the product.
- NIST SP 800-172 3.5.1e and NIST SP 800-53 Rev. 5 IA-3(1): operators need accurate statements to determine whether bidirectional authentication is implemented.
- NSA CSI Application and Workload Pillar (May 2024), "Software risk management": organizations must determine whether a product's security features meet requirements before implementation; that requires accurate vendor documentation.
Proposal
- Add a clearly marked statement at the top of the Gitaly TLS page: the Gitaly listener does not request or verify client certificates; client authentication is a shared static token; the client-certificate behavior described on the page applies only to Gitaly's outbound calls to the GitLab internal API.
- Document the shared-token trust model and its implications (single secret for all storages and clients; no caller identity; fleet-wide rotation) on the Configure Gitaly page.
- Publish a "Deploying GitLab in a Zero Trust architecture" page for NSS, DoD, and DIB operators that maps Gitaly's current model to NIST SP 800-53 Rev. 5, NIST SP 800-172 3.5.1e, NIST SP 800-207, the NSA Zero Trust Implementation Guidelines pillar CSIs, and the DoD Zero Trust Capability Execution Roadmap; states which compensating controls are available today (IPsec or WireGuard between nodes, Istio sidecars in
STRICTmode, Gitaly native TLS on FIPS images) and what each does and does not authenticate; and links META as the path to removing the deficiency. - Update the pages as I-1, I-2, I-3, I-4, I-7, and I-8 ship, with the staged rollout procedure (
none,verify-if-given,require).
Acceptance criteria
- The limitation statement is present on the Gitaly TLS page and the Configure Gitaly page.
- The Zero Trust deployment page is published and linked from the Gitaly administration index.
Related issues
- Documents: I-1, I-2, I-3, I-4, I-7, I-8
- Tracked by:
Context
Impacts programs operating self-hosted GitLab at DoD Impact Levels 5 and 6 and under CMMC Level 3. Google Public Sector is co-affected.