Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

[awf] mcp-gateway-config schema rejects private registry image refs with explicit port

Open
#8,937 1 comment 1 reaction 2 assignees View on GitHub

Maintainers usually reply within 1 day

@lpcox is already working on this.

Since Sep 24, 2026.

Assessment

This issue has not been assessed yet.

Description

awf-triage

Problem
The mcp-gateway-config JSON schema's container field regex only allows a single colon (reserved for :tag), so valid Docker image refs like registry.example.com:5000/team/service-image:latest fail schema validation at MCP Gateway (gh-aw-mcpg) startup, causing the entire gateway process to exit before any MCP server starts — even unrelated, correctly-configured servers.

Context
Reported upstream: github/gh-aw#61678. Affects gh-aw-mcpg v0.4.9; gh aw compile does not catch this since the compiler doesn't validate the pattern.

Root Cause
Current pattern ^[a-zA-Z0-9][a-zA-Z0-9./_-]*(:([a-zA-Z0-9._-]+|latest))?$ cannot distinguish a registry_host:port prefix from a trailing :tag, so any second colon fails.

Proposed Solution
Update the schema's container pattern (likely in AWF's enclave/mcp-gateway config schema or wherever this JSON schema is owned/vendored) to allow an optional :<port> immediately after the registry host, before path segments, following Docker's reference grammar, e.g. ^[a-zA-Z0-9][a-zA-Z0-9.-]*(:[0-9]+)?(/[a-zA-Z0-9._-]+)*(:[a-zA-Z0-9._-]+)?$. Add a schema unit test covering host:port/path:tag, host/path:tag, and bare path forms.

Generated by Firewall Issue Dispatcher · copilot · auto · 26 AIC · ⊞ 9.2K · ◷

Dominant language
TypeScript
Stars
145
Forks
63
Avg merge
6h 15m
Merged PRs (30d)
248

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from github/gh-aw-firewall

All issues in github/gh-aw-firewall

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.