Skip to content

feat: Add a cpp plugin for geo routing#306

Open
mateustd-ciandt wants to merge 7 commits intoGoogleCloudPlatform:mainfrom
mateustd-ciandt:cpp-plugin-geo-origin
Open

feat: Add a cpp plugin for geo routing#306
mateustd-ciandt wants to merge 7 commits intoGoogleCloudPlatform:mainfrom
mateustd-ciandt:cpp-plugin-geo-origin

Conversation

@mateustd-ciandt
Copy link
Contributor

This PR adds a C++ plugin that reads the client's country code from load balancer properties (request.client_region) and sets it as an x-country-code request header.
This header enables URL Map routing rules to direct traffic to geographically appropriate backend services.

The plugin includes security measures to prevent header spoofing and is optimized for performance (~55-58μs latency per request following the quotas and limits for Service Extensions.).

@mateustd-ciandt mateustd-ciandt marked this pull request as ready for review January 16, 2026 17:10
@mateustd-ciandt mateustd-ciandt requested a review from a team as a code owner January 16, 2026 17:10
@snippet-bot
Copy link

snippet-bot bot commented Jan 16, 2026

Here is the summary of changes.

You are about to add 1 region tag.

This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run label or use the checkbox below:

  • Refresh this comment

@mpwarres mpwarres self-assigned this Feb 11, 2026
@mpwarres
Copy link
Collaborator

Merge from main broke this, @mateustd-ciandt can you take a look?

@mateustd-ciandt
Copy link
Contributor Author

@mpwarres this one should be good too, let me know if we run into any build files issues again!

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.

2 participants