Skip to content

feat(engine): add allowed-models support under engine frontmatter#38275

Draft
Copilot wants to merge 2 commits into
mainfrom
copilot/add-support-allowed-models
Draft

feat(engine): add allowed-models support under engine frontmatter#38275
Copilot wants to merge 2 commits into
mainfrom
copilot/add-support-allowed-models

Conversation

Copilot AI commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Adds engine.allowed-models — an allowlist of model glob patterns the workflow may use. Any model not matching at least one pattern is rejected by the AWF firewall with HTTP 403 (model_blocked_by_policy). Backed by gh-aw-firewall#4406.

Example

engine:
  id: copilot
  allowed-models:
    - copilot/gpt-*
    - copilot/claude-sonnet-*

Pattern syntax: provider/glob, */glob, or bare glob. * is case-insensitive within a segment.

Changes

  • engine.goAllowedModels []string added to EngineConfig; parsed from allowed-models key in object-format engine frontmatter
  • awf_config.goAllowedModels added to AWFAPIProxyConfig (json:"allowedModels,omitempty"); populated in BuildAWFConfigJSON
  • awf-config.schema.jsonallowedModels added to apiProxy properties to pass schema validation

Note: This PR is draft pending merge of the upstream AWF firewall PR that adds enforcement.

Copilot AI and others added 2 commits June 10, 2026 03:55
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title feat(engine): add allowed-models support under engine frontmatter feat(engine): add allowed-models support under engine frontmatter Jun 10, 2026
Copilot AI requested a review from pelikhan June 10, 2026 04:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants