Skip to content

gh-aw compiler (Copilot BYOK): COPILOT_PROVIDER_BASE_URL from vars/secrets is not added to the network allowlist #80495

Done

Description

@sudivate

Where: gh-aw compiler, firewall allowlist generation. Seen with an Azure AI Gateway endpoint; affects any BYOK
endpoint.

What happens

When COPILOT_PROVIDER_BASE_URL is a literal in the workflow, its host is added to the firewall allowlist. When it
comes from ${{ vars.* }} or a secret, it isn't. The agent's requests to the BYOK endpoint are then blocked, unless
the user also adds the host to network.allowed by hand.

Why it matters

  • Keeping the endpoint in vars is the natural choice; it differs between environments and shouldn't be hard-coded.
  • The failure looks like a network error, and its cause isn't obvious.
  • Users who work around it may allow broader domains than needed.

Repro

engine:
  id: copilot
  env:
    COPILOT_PROVIDER_BASE_URL: ${{ vars.AI_GATEWAY_URL }}
    COPILOT_PROVIDER_WIRE_API: responses

Compile and run, and the requests to the endpoint are blocked by the firewall.

Suggested fix

Either:

  • resolve the host at runtime and allow exactly that host; or
  • fail compilation with a clear message telling the user to add the host to network.allowed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions