Add Aliyun OSS EventBridge integration from aliyun branch#9
Closed
Add Aliyun OSS EventBridge integration from aliyun branch#9
Conversation
- Add aliyun module with CDN API client and V3 signature - Add OSS EventBridge webhook handler for automatic CDN refresh - Add CDN API endpoints: describeRefreshTasks, refreshObjectCaches - Update configuration, state, auth, and routing for aliyun support - Add demo.jsonl with sample OSS events - Add .vscode/launch.json for debugging - All builds and clippy checks pass Co-authored-by: daflyinbed <21363956+daflyinbed@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add code related to /aliyun/events from aliyun branch
Add Aliyun CDN and OSS EventBridge integration from aliyun branch
Jan 17, 2026
Collaborator
|
@copilot 去掉/api/aliyun/events以外的两个接口 |
- Remove /api/aliyun/describeRefreshTasks endpoint - Remove /api/aliyun/refreshObjectCaches endpoint - Remove unused CDN request/response structures - Remove describe_refresh_tasks method from AliyunCdnClient - Update OpenAPI schemas to only include OSS event structures - Keep only the EventBridge webhook handler for OSS events Co-authored-by: daflyinbed <21363956+daflyinbed@users.noreply.github.com>
Contributor
Author
Copilot
AI
changed the title
Add Aliyun CDN and OSS EventBridge integration from aliyun branch
Add Aliyun OSS EventBridge integration from aliyun branch
Jan 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Merges Aliyun OSS EventBridge webhook handler from the
aliyunbranch. Enables automatic CDN cache invalidation when objects change in OSS buckets.Core Components
Aliyun API Client (
src/aliyun/)RefreshObjectCachesAPI for internal useAPI Endpoint (
src/routes/aliyun_handlers.rs)POST /api/aliyun/events- OSS EventBridge webhook (custom token viax-eventbridge-signature-tokenheader)Configuration (
src/config.rs,example.toml)Notable Changes
Claims.suboptional to support EventBridge JWT tokens without subject claimsmy_axum_templatetojanusmodule prefixsha2,hmac,base64,urlencoding,uuidEventBridge Webhook Flow
/api/aliyun/eventswith JWT token in custom headerbucket_url_map{object_key}replaced with percent-encoded object keyRefreshObjectCachesAPIExample event processing:
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.