Skip to content

[enterprise-docs] Network Configuration guide says custom domains need strict: false, but strict mode allows them #80672

Done

Description

@github-actions

Overview

The Network Configuration Guide says custom domains are rejected in strict mode and that strict: false is required to use them. The Network Permissions reference on the same published site says custom domains produce no warnings under strict mode. The compiler at checkout ba221813ca9fde1075bdc63c12ef9b978955ff7d agrees with the reference. An operator who follows the guide to add an internal host turns off strict-mode validation when it is not needed.

User task and impact

  • Question: How do I allow an internal or custom HTTPS hostname in network.allowed while keeping strict mode on?
  • Platform: Compile-time behavior that does not depend on GHEC, GHES, or runner topology. The persona is a Linux self-hosted runner with restricted egress. No GHES release was checked.
  • Expected answer: Custom hostnames are allowed under default strict mode. Only the wildcard * is rejected.
  • Actual obstacle: The guide documents a rejection error and tells the reader to set strict: false.
  • Operational consequence: Operators who follow the guide turn off the enhanced security validation that strict mode applies, just to add one host. The frontmatter reference says strict: false workflows cannot run on public repositories. Teams that see the quoted error also go looking for a validator that no longer exists, instead of editing network.allowed.

Reproduction and evidence

Verified by walking the published site and reading the checked-out source. The Go unit tests did not run: the sandbox Go toolchain download failed on TLS validation, and that was not worked around. Compile-time behavior therefore rests on source reading and existing test assertions.

Reproduction steps and supporting evidence
  1. Home (https://github.github.com/gh-aw/), site search corporate proxy certificate: no results.
  2. Home, site search network firewall domains: 37 results. The first hit is Network Permissions (/gh-aw/reference/network/).
  3. Network Permissions, tip link to the Network Configuration Guide (/gh-aw/guides/network-configuration/, opened by URL).
  4. Guide, Strict Mode and Ecosystem Identifiers (#strict-mode-and-ecosystem-identifiers): a "Rejected in strict mode" example for pypi.org, and an Error Messages block quoting error: strict mode: network domains must be from known ecosystems ... Custom domains are not allowed for security.
  5. Guide, Using Custom Domains (#using-custom-domains): strict: false # Required for custom domains, with "api.example.com" # Custom domain (only allowed with strict: false).
  6. Network Permissions, Strict Mode Validation (/gh-aw/reference/network/#strict-mode-validation) on the same site: "Custom domains outside known ecosystems produce no warnings", with a strict: true example that lists "api.example.com" and is marked "No warnings".

Source comparison at ba221813ca9fde1075bdc63c12ef9b978955ff7d:

Claim Published page Source
Custom domains need strict: false Guide, docs/src/content/docs/guides/network-configuration.md:132-146 pkg/workflow/strict_mode_permissions_validation.go:163-166 allows truly custom domains under strict mode
Ecosystem-member domain rejected (pypi.org) Guide, lines 98-105 Same file, lines 170-181: informational "recommend using ecosystem identifiers" message only
Strict network validation rejects custom domains Guide, lines 114-130 pkg/workflow/strict_mode_network_validation.go:33-40 rejects only the wildcard *
Quoted error text Guide, lines 114-130 Not present in pkg/ at this checkout
Reference behavior docs/src/content/docs/reference/network.md:190-192 Matches source
Unit tests n/a pkg/workflow/strict_mode_llm_gateway_test.go:82-99 expects no error and zero warnings for pypi.org and registry.npmjs.org in strict mode
Strict default and strict: false limit docs/src/content/docs/reference/frontmatter.md:896-906 Default true; strict: false workflows cannot run on public repositories

Source versus deployment: the deployed guide shows the same headings, examples, and error blocks as guides/network-configuration.md lines 96-146. The deployed reference shows the same strict-mode text as reference/network.md lines 190-216. The site showed no version or deployment SHA, so this comparison rests on matching content.

Related history: #15425 (closed as completed, 2026-02-13) reports an earlier strict-mode guard that rejected custom network domains during CI. The guide quoted error resembles that earlier message. The current source contains neither message. #15425 is context only, not a prior docs fix.

Audit run: §45356734885

Proposed improvement and acceptance criteria

Rewrite the guide strict-mode section to match the current validator:

  • Ecosystem-member domains produce an informational recommendation, not an error.
  • Custom hostnames are allowed under default strict mode. Only * is rejected.
  • Remove the quoted error blocks and the strict: false requirement. Keep the security note that custom domains bypass ecosystem validation and should be reviewed.
  • Link the section to /gh-aw/reference/network/#strict-mode-validation so both pages say the same thing.

Acceptance criteria:

  • The guide no longer says custom domains require strict: false or are rejected in strict mode.
  • The guide no longer quotes the "network domains must be from known ecosystems" error text.
  • The guide and the reference agree: ecosystem-member domains get an informational recommendation, and custom domains are allowed.
  • Repeating the path (home, search custom domain strict mode, Network Configuration Guide) gives the answer: add the host to network.allowed and keep strict mode on.
  • After deployment, the published guide matches the corrected source.

Dedup and limits

References: §45356734885

Generated by Enterprise Docs Audit · pi · routed: haiku55 xhigh · ~77 AIC · ⌖ ~2 AIC · ⊞ 5.8K · history

  • expires on Nov 26, 2026, 12:45 AM UTC-08:00

Activity

  1. added
    cookie
    backlog:docs
    on Nov 24, 2026
  2. github-actions commented on Nov 24, 2026

    @github-actions
    ContributorAuthor

    🍪 Issue Monster selected this for Copilot

    I've identified this issue as a good candidate for automated resolution and requested assignment to the Copilot coding agent.

    If assignment succeeds, Copilot will analyze the issue and create a pull request with the fix.

    Om nom nom! 🍪

    🍪 Om nom nom by Issue Monster · pi · gpt50 · ~1 AIC · ⌖ ~2 AIC · ⊞ 10.2K · history

  3. linked a pull request that will close this issueCorrect strict-mode custom domain guidance #80685on Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

backlog:docscookie

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions