Skip to content

add bypass header config option to maxmind_acl plugin - #13160

Merged
traeak merged 5 commits into
apache:masterfrom
traeak:maxmind_bypass
Jun 8, 2026
Merged

add bypass header config option to maxmind_acl plugin#13160
traeak merged 5 commits into
apache:masterfrom
traeak:maxmind_bypass

Conversation

@traeak

@traeak traeak commented May 13, 2026

Copy link
Copy Markdown
Contributor

This adds support to use an optional header/value to bypass running this plugin in the TSRemapDoRemap stage.

maxmind config yaml looks like:

maxmind:
 bypass:
  header: "@BypassMe"
  value: someval

If this option is not provided then the plugin runs as normal in enforcing mode.
Exact header and value is required.

This comment was marked as outdated.

@zwoop

zwoop commented May 19, 2026

Copy link
Copy Markdown
Contributor

@traeak ping me when the Copilot issues has been addressed.

zwoop
zwoop previously approved these changes May 21, 2026

@zwoop zwoop left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One real comment here, and one nitpick. The question on the new function returning an unused bool is real, but if it's intended, you can leave it. Just reads oddly. The nitpick is up to you.

Approving, but feel free to make one or both of the raised questions.

Comment thread plugins/experimental/maxmind_acl/mmdb.cc Outdated
Comment thread plugins/experimental/maxmind_acl/mmdb.cc
Copilot AI review requested due to automatic review settings May 22, 2026 14:35

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 5 comments.

Comment thread plugins/experimental/maxmind_acl/mmdb.cc
Comment thread plugins/experimental/maxmind_acl/mmdb.cc
Comment thread plugins/experimental/maxmind_acl/mmdb.cc Outdated
Comment thread doc/admin-guide/plugins/maxmind_acl.en.rst
Comment thread doc/admin-guide/plugins/maxmind_acl.en.rst Outdated

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

Comment thread plugins/experimental/maxmind_acl/mmdb.cc Outdated
Comment thread plugins/experimental/maxmind_acl/mmdb.cc
Copilot AI review requested due to automatic review settings May 22, 2026 16:32

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

Comment thread plugins/experimental/maxmind_acl/mmdb.cc
Copilot AI review requested due to automatic review settings May 26, 2026 14:54

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

Comment thread plugins/experimental/maxmind_acl/mmdb.cc Outdated
Comment thread plugins/experimental/maxmind_acl/mmdb.cc
Comment thread plugins/experimental/maxmind_acl/mmdb.cc
@traeak
traeak merged commit f891fe9 into apache:master Jun 8, 2026
15 checks passed
cmcfarlen pushed a commit to cmcfarlen/trafficserver that referenced this pull request Jul 29, 2026
* add bypass header config option to maxmind_acl plugin

* fix for header value check, update docs with warning about usage of this new feature

* require both header and value. clean up review suggestions

* more explicit documentation about value match, limit debug log

* maxmind: tighten up checks on yaml node
cmcfarlen pushed a commit to cmcfarlen/trafficserver that referenced this pull request Jul 29, 2026
* add bypass header config option to maxmind_acl plugin

* fix for header value check, update docs with warning about usage of this new feature

* require both header and value. clean up review suggestions

* more explicit documentation about value match, limit debug log

* maxmind: tighten up checks on yaml node

(cherry picked from commit f891fe9)
@cmcfarlen cmcfarlen moved this to Picked v10.2.0 in ATS v10.2.x Jul 29, 2026
@github-project-automation github-project-automation Bot moved this from Picked v10.2.0 to For v10.2.0 in ATS v10.2.x Jul 29, 2026
@cmcfarlen cmcfarlen modified the milestones: 11.0.0, 10.2.0 Jul 29, 2026
@cmcfarlen cmcfarlen moved this from For v10.2.0 to Picked v10.2.0 in ATS v10.2.x Jul 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Picked v10.2.0

Development

Successfully merging this pull request may close these issues.

5 participants