Skip to content
This repository was archived by the owner on Feb 16, 2026. It is now read-only.

HSH: Limit the number of non matching variants evaluated against the ban list during lookup#4253

Merged
walid-git merged 4 commits into
varnishcache:masterfrom
walid-git:fix_4236
Jan 22, 2025
Merged

HSH: Limit the number of non matching variants evaluated against the ban list during lookup#4253
walid-git merged 4 commits into
varnishcache:masterfrom
walid-git:fix_4236

Conversation

@walid-git
Copy link
Copy Markdown
Member

@walid-git walid-git commented Jan 15, 2025

This is an implementation of the solution suggested by @bsdphk in #4236 (comment)

It adds a parameter to limit the number of possibly non matching variants that we evaluate against the ban list during a lookup.

Leaving this as a draft until we agree on the parameter name.

Refs: #4236

@nigoroll nigoroll mentioned this pull request Jan 15, 2025
2 tasks
@nigoroll
Copy link
Copy Markdown
Member

after bugwash discussion:

  • we settled on ban_any_variant for the name
  • the default should be changed to 0 with a major release (added a reminder to 8.0 release checklist #3352)
  • the parameter should be copied to a local variable for consistency, otherwise both ban_checks related conditions or none could become true

@walid-git
Copy link
Copy Markdown
Member Author

  • we settled on ban_any_variant for the name
  • the default should be changed to 0 with a major release (added a reminder to 8.0 release checklist #3352)
  • the parameter should be copied to a local variable for consistency, otherwise both ban_checks related conditions or none could become true

Also added a paragraph in purging.rst about the new ban_any_variant parameter.

@walid-git walid-git marked this pull request as ready for review January 15, 2025 16:08
@walid-git
Copy link
Copy Markdown
Member Author

bugwash: make docs clearer

@walid-git
Copy link
Copy Markdown
Member Author

Added 744e840. @bsdphk let me know if this is clearer now.

@nigoroll
Copy link
Copy Markdown
Member

I was not addressed, but I think the document improvement is very good.

@walid-git walid-git merged commit c52abc1 into varnishcache:master Jan 22, 2025
@walid-git walid-git mentioned this pull request Jan 22, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants