Clarify that Gitaly TLS does not verify client certificates

What does this MR do?

Adds a note to the Gitaly TLS page saying that when a client connects to Gitaly over TLS, only the server is authenticated. Gitaly does not request or verify a client certificate, so configuring one on a client changes nothing. The Gitaly token is the only client authentication.

The mutual TLS paragraph directly above the note can be read as Gitaly checking client certificates. On a test instance running 19.5.3, the TLS handshake carried no client certificate request, so a TLS client never sends the certificate it holds. A client configured with a certificate from a CA Gitaly had never seen succeeded with a valid token and failed with Unauthenticated without one. In the source the listener's tls.Config sets certificates, minimum version and cipher suites, with no client authentication option: server.go lines 103-107.

Outside FIPS packages, the Linux package leaves the token unset by default, so on that install requests succeed without one. Auth transitioning mode also lets requests through without a valid token. The note says both.

Statement Source
Gitaly sends no client certificate request TLS 1.2 and 1.3 handshake on the 19.5.3 listener showed zero requests, with a control server that does request one showing one
A client certificate has no effect No client certificate request in the handshake; a client configured with an unseen-CA certificate succeeded with a valid token and returned Unauthenticated without one
The Gitaly token is the only client authentication Same two results; the token decided each outcome
No token configured means requests without one are accepted Default Linux package listener answered a request carrying no token
Auth transitioning mode accepts requests without a valid token Source: the token check in internal/gitaly/server/auth/auth.go clears the error when transitioning is set
Holds on all versions git log -S ClientAuth over Gitaly history touches only test helpers and vendored code, never a server tls.Config. Praefect's listener uses the same tls.Config (internal/praefect/server_factory.go:88-92 at v19.5.3), checked in the source but not run
Link targets exist configure_gitaly.md, headings "About the Gitaly token" and "Enable auth transitioning mode"

Not tested: Praefect at runtime, the Unix socket, non-loopback peers.

Related to #634059

Author's checklist

If you are a GitLab team member and only adding documentation, do not add any of the following labels:

  • ~"frontend"
  • ~"backend"
  • ~"type::bug"
  • ~"database"

These labels cause the MR to be added to code verification QA issues.

Reviewer's checklist

Documentation-related MRs should be reviewed by a Technical Writer for a non-blocking review, based on Documentation Guidelines and the Style Guide.

If you aren't sure which tech writer to ask, use roulette or ask in the #docs Slack channel.

  • If the content requires it, ensure the information is reviewed by a subject matter expert.
  • Technical writer review items:
    • Ensure docs metadata is present and up-to-date.
    • Ensure the appropriate labels are added to this MR.
    • Ensure a release milestone is set.
    • If relevant to this MR, ensure content topic type principles are in use, including:
      • The headings should be something you'd do a Google search for. Instead of Default behavior, say something like Default behavior when you close an issue.
      • The headings (other than the page title) should be active. Instead of Configuring GDK, say something like Configure GDK.
      • Any task steps should be written as a numbered list.
      • If the content still needs to be edited for topic types, you can create a follow-up issue with the docs-technical-debt label.
  • Review by assigned maintainer, who can always request/require the reviews above. Maintainer's review can occur before or after a technical writer review.

Merge request reports

Loading
Loading