Repository navigation
Conversation
This branch has not been deployed
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.
Description
System-owned OSS storage can now use
OSS_AUTH_TYPE=ram_role_arn. A low-privilege caller key assumesOSS_ROLE_ARN, and the Alibaba Cloud credential SDK caches and refreshes the temporary credentials used by OSS requests. The adapter serializes provider access and shares it across the main/temporary buckets and repeated service resolutions.Presigned links cannot outlive the STS token. The credential SDK does not accept a request context: an already-running fetch may complete its bounded network wait before cancellation is returned. This adds ARN-based AssumeRole only; it does not implement ECS instance metadata roles from #4115/#4116.
Type of Change
Related Issue
Fixes #5068
Testing
Local tests use a TLS STS fixture and an HTTP OSS fixture with dummy credentials. They cover AssumeRole parameters and signature presence, refresh before expiry, GET/PUT presigned security tokens, 20 concurrent requests sharing one refresh, sanitized failures without source-key fallback, deployment/workspace identity separation, and shared main/temporary bucket credentials.
Passed with Go 1.26.0:
The container command verifies compilation; no matching container tests exist. Changed Go files pass
gofmt; the patch passesgit diff --check. Compose parses with the standard Ruby YAML parser and forwards all six new settings.The service regression test fails against the original implementation (unknown deployment auth silently uses static keys) and passes with this change. No live Alibaba Cloud account was used. Full-repository checks were not run; validation was scoped to the affected storage packages. On macOS, tests used
SDKROOT=/Library/Developer/CommandLineTools/SDKs/MacOSX15.4.sdkfor compatibility with the installed linker.Checklist
This contribution was prepared with AI assistance.