feat(engine): add allowed-models support under engine frontmatter#38275
Draft
Copilot wants to merge 2 commits into
Draft
feat(engine): add allowed-models support under engine frontmatter#38275Copilot wants to merge 2 commits into
allowed-models support under engine frontmatter#38275Copilot wants to merge 2 commits into
Conversation
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 Jun 10, 2026
allowed-models support under engine frontmatter
Copilot created this pull request from a session on behalf of
pelikhan
June 10, 2026 04:06
View session
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
Pattern syntax:
provider/glob,*/glob, or bareglob.*is case-insensitive within a segment.Changes
engine.go—AllowedModels []stringadded toEngineConfig; parsed fromallowed-modelskey in object-format engine frontmatterawf_config.go—AllowedModelsadded toAWFAPIProxyConfig(json:"allowedModels,omitempty"); populated inBuildAWFConfigJSONawf-config.schema.json—allowedModelsadded toapiProxyproperties to pass schema validation