Skip to content

Conversation

bneradt
Copy link
Contributor

@bneradt bneradt commented Oct 16, 2025

Updates the access_control plugin to use tsutil Regex instead of pcre.

@bneradt bneradt added this to the 10.2.0 milestone Oct 16, 2025
@bneradt bneradt self-assigned this Oct 16, 2025
@bneradt bneradt force-pushed the access_control_pcre branch from e7aca53 to 1137c70 Compare October 17, 2025 19:45
@bryancall bryancall added the pcre label Oct 20, 2025
Updates the access_control plugin to use tsutil Regex instead of pcre.
@bneradt bneradt force-pushed the access_control_pcre branch from 1137c70 to 258fabb Compare October 23, 2025 18:33
Copy link
Contributor

@bryancall bryancall left a comment

Choose a reason for hiding this comment

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

APPROVED

Excellent work! This PR successfully migrates the access_control plugin from raw PCRE to tsutil::Regex with proper attention to detail.

Key Strengths:

  1. RE_NOTEMPTY flag preserved in all 3 exec() calls (lines 205, 232, 268)
  2. Proper error handling with new RE_ERROR_NOMATCH and RE_ERROR_NULL constants
  3. Memory safety with std::unique_ptr and RAII
  4. Comprehensive testing including new unit tests for error codes

Verification:

  • All RE_NOTEMPTY flags present and correct
  • Error constants properly mapped and tested
  • No linter errors
  • Follows same pattern as PR #12576

Risk: LOW 🟢

  • Behavioral compatibility maintained
  • Good test coverage
  • Clean migration strategy

Ready for merge!

@bneradt bneradt merged commit 156e1af into apache:master Oct 23, 2025
15 checks passed
@bneradt bneradt deleted the access_control_pcre branch October 23, 2025 20:31
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.

2 participants