Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 21 additions & 5 deletions docs/src/content/docs/guides/network-configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,26 +128,42 @@ network:
allowed:
- python # Ecosystem identifier
- node # Ecosystem identifier
- "api.example.com" # Custom domains still allowed
````

When strict mode rejects a domain, the error message suggests the correct ecosystem:
### Error Messages

When strict mode rejects a domain that belongs to a known ecosystem, the error message suggests the ecosystem identifier:

````text
error: strict mode: network domains must be from known ecosystems (e.g., 'defaults',
'python', 'node') for all engines in strict mode. Custom domains are not allowed for
security. Did you mean: 'pypi.org' belongs to ecosystem 'python'?
````
Comment on lines 137 to 141

Copilot AI Feb 13, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The strict-mode error string in code always appends "Set 'strict: false' to use custom domains. See: https://github.github.com/gh-aw/reference/network/" (even when a "Did you mean" ecosystem suggestion is present). This example currently stops after the suggestion, so it doesn’t match actual output.

This issue also appears on line 145 of the same file.

Copilot uses AI. Check for mistakes.

Disable strict mode for development or testing:
When strict mode rejects a custom domain:

````text
error: strict mode: network domains must be from known ecosystems (e.g., 'defaults',
'python', 'node') for all engines in strict mode. Custom domains are not allowed for
security. Set 'strict: false' to use custom domains.
````

### Using Custom Domains

To use custom domains (domains not in known ecosystems), disable strict mode:

````yaml
strict: false
---
strict: false # Required for custom domains
network:
allowed:
- "pypi.org" # Now allowed
- python # Ecosystem identifier
- "api.example.com" # Custom domain (only allowed with strict: false)
---
Comment on lines 155 to +162

Copilot AI Feb 13, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The codebase’s other docs show strict: false examples without YAML document delimiters (---). Including --- here can be confusing (it reads like a multi-document YAML file rather than just the relevant config/frontmatter snippet). Consider removing the --- lines or explicitly labeling them as Markdown frontmatter delimiters (and aligning the snippet format with the rest of the docs).

See below for a potential fix:

strict: false    # Required for custom domains
network:
  allowed:
    - python           # Ecosystem identifier
    - "api.example.com"  # Custom domain (only allowed with strict: false)

Copilot uses AI. Check for mistakes.
````

**Security Note**: Custom domains bypass ecosystem validation. Only disable strict mode when necessary and ensure you trust the custom domains you allow.

## Security Best Practices

1. **Start minimal** - Only add ecosystems you actually use
Expand Down