Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix backend matches if hostname uses wildcard #752

Merged
merged 1 commit into from
Mar 18, 2021

Conversation

jcmoraisjr
Copy link
Owner

Some hostname+path matches happen in the backend to identify if a configuration should or should not be applied. Examples are whitelist, cors, hsts and rewrite path. Frontend matches are correctly using a regex if a wildcard hostname is used. Backends also work but only if all paths share the same configuration, in this case a path ACL is not used. However backends that have distinct path configurations were not properly configuring regex based ACLs - they were trying to match wildcard hostnames with -m begin.

This update adds to the backend the same hostname check used in the frontend, which converts begin match to a regex match if a wildcard hostname is used.

Some hostname+path matches happen in the backend to identify if a
configuration should or should not be applied. Examples are whitelist,
cors, hsts and rewrite path. Frontend matches are correctly using a
regex if a wildcard hostname is used. Backends also work but only if all
paths share the same configuration, in this case a path ACL is not used.
However backends that have distinct path configurations were not
properly configuring regex based ACLs - they were trying to match
wildcard hostnames with -m begin.

This update adds to the backend the same hostname check used in the
frontend, which converts begin match to a regex match if a wildcard
hostname is used.
@jcmoraisjr
Copy link
Owner Author

#751

@jcmoraisjr jcmoraisjr merged commit 67c6d40 into release-0.10 Mar 18, 2021
@jcmoraisjr jcmoraisjr deleted the jm-fix-backend-wildcard branch March 18, 2021 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant