Skip to content

feat: add 10-digit code masking and force identity encoding to enable body scanning in GO check_pii plugin - #337

Open
mateustd-ciandt wants to merge 3 commits into
GoogleCloudPlatform:mainfrom
mateustd-ciandt:plugin-go-pii
Open

feat: add 10-digit code masking and force identity encoding to enable body scanning in GO check_pii plugin#337
mateustd-ciandt wants to merge 3 commits into
GoogleCloudPlatform:mainfrom
mateustd-ciandt:plugin-go-pii

Conversation

@mateustd-ciandt

Copy link
Copy Markdown
Contributor

This PR aligns the GO implementation and documentation of the check_pii plugin with the latest C++ version.

Added masking for 10-digit numeric codes and removed the google-run-pii-check bypass requirement, mirroring plugin.cc.

Optimized OnHttpResponseBody to manipulate []byte directly, avoiding unnecessary string heap allocations.

Switched to a fail-open strategy (ActionContinue) instead of returning 500s (ActionPause) on buffer read failures.
Updated README.md with the new expected behavior and added plugin_go.wasm to the proxy_wasm_tests array in BUILD.

@mateustd-ciandt
mateustd-ciandt marked this pull request as ready for review April 17, 2026 16:17
@mateustd-ciandt
mateustd-ciandt requested a review from a team as a code owner April 17, 2026 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant