Skip to content

feat: add Rust implementation and dependencies for cdn_token_generator plugin - #331

Open
mateustd-ciandt wants to merge 3 commits into
GoogleCloudPlatform:mainfrom
mateustd-ciandt:rust-plugin-cdn-token
Open

feat: add Rust implementation and dependencies for cdn_token_generator plugin#331
mateustd-ciandt wants to merge 3 commits into
GoogleCloudPlatform:mainfrom
mateustd-ciandt:rust-plugin-cdn-token

Conversation

@mateustd-ciandt

@mateustd-ciandt mateustd-ciandt commented Apr 2, 2026

Copy link
Copy Markdown
Contributor

This PR adds the Rust version of the CDN Token Generator, a Proxy-WASM sample plugin designed to authenticate media requests for Google Cloud Media CDN.

It works by intercepting HTTP response bodies, such as video streaming manifests (HLS or DASH), and dynamically appending HMAC-SHA256 signed tokens to any embedded URLs it finds before sending the response back to the client.

We're using protobuf configuration to securely load the secret key and token expiration settings only once during initialization. Additionally, this PR includes the necessary Rust dependencies (such as hmac, sha2, and base64) and their respective Bazel build configurations.

@mateustd-ciandt
mateustd-ciandt force-pushed the rust-plugin-cdn-token branch from a251f43 to 1429d0c Compare April 2, 2026 16:57
@mateustd-ciandt
mateustd-ciandt marked this pull request as ready for review April 2, 2026 17:02
@mateustd-ciandt
mateustd-ciandt requested a review from a team as a code owner April 2, 2026 17:02
@snippet-bot

snippet-bot Bot commented Apr 2, 2026

Copy link
Copy Markdown

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

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