chore(duo): allow the Go module proxy in Duo sessions

What

Duo sessions in this project can reach the Go module proxy and its checksum database, and no other new host. This adds .gitlab/duo/agent-config.yml with only a network_policy, so the image and setup stay the defaults.

Why

The MR Risk Labeler is being onboarded here in label-only mode, for gitlab-org/gitlab#638927. For a Go module bump, it downloads the two published versions from proxy.golang.org, checks each against sum.golang.org and go.sum, and shows the rater the diff between them. A Duo session here reaches only GitLab's own hosts. So without this file, every Go bump comes out not downloaded and rates medium.

Nothing here approves or merges anything. The labeler writes only test- labels and an internal note.

What it changes for Duo sessions

  • The two hosts are added to the ones the platform always allows.
  • include_recommended_allowed stays false, so the platform's recommended domains stay out.
  • No image or setup_script is set, so sessions keep the default image. It has the Ruby and git the labeler needs.

.gitignore ignores .gitlab/duo, so the file is force-added, as mr-review-instructions.yaml was.

Testing

I ran the labeler's upstream check outside a sandbox over three recent Renovate bumps here: go-jose v4.1.7 to v4.1.9 (!1107 (merged)), pgx v5.11.0 to v5.12.0 (!1054 (merged)) and labkit v2.70.0 to v2.72.1 (!1073 (merged)). Every version matched sum.golang.org and go.sum, and the check printed the diff of each. It has not yet run inside a Duo session here.

Review

This needs a code owner, because .gitlab/review-policy.md keeps .gitlab/duo/ human. It stays a draft until the labeler's rules for this project merge.

🤖 Generated with Claude Code

Edited by Connor Sanders

Merge request reports

Loading
Loading