Repository navigation
Fix/clarify services filter by url docs - #1616
Open
vedantikapatil wants to merge 2 commits into
Open
vedantikapatil wants to merge 2 commits into
vedantikapatil wants to merge 2 commits into
Conversation
vedantikapatil
commented
Nov 30, 2026
- Example lines now say public base URL instead of backend endpoint, with an explicit sentence that it is not matched against the API backend. This is the reported issue.
- Added that the match is on the host name only — no scheme, port, or path — and called out that a scheme-prefixed regex yields an empty config. This is the latent trap.
- Wrapped the example in a fenced code block. Previously those were bare lines, so Markdown collapsed all five into one run-on paragraph. The fence also stops GFM from autolinking the example URLs — which is why markdown-lint-check-config.json needed ignorePatterns for .foo/.bar in the first place.
The example contradicted the prose above it: the text said the filter matches the public base URL, while every example line was labelled "backend endpoint". The filter is applied by Service:match_host, which matches against proxy.hosts -- the gateway's own hostnames -- and never against the API backend address. The example also prefixed the regexp with a scheme (http://). Since hosts holds bare hostnames, such a filter matches nothing and leaves APIcast with an empty configuration, so the documented example could not work as written. Document the hostname-only matching explicitly and warn about the scheme. Also wrap the example in a code block; it previously rendered as a single run-on paragraph. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
The example contradicted the prose above it: the text said the filter matches the public base URL, while every example line was labelled "backend endpoint". The filter is applied by Service:match_host, which matches against proxy.hosts -- the gateway's own hostnames -- and never against the API backend address. The example also prefixed the regexp with a scheme (http://). Since hosts holds bare hostnames, such a filter matches nothing and leaves APIcast with an empty configuration, so the documented example could not work as written. Document the hostname-only matching explicitly and warn about the scheme. Also wrap the example in a code block; it previously rendered as a single run-on paragraph. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
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.