Skip to content

feat(services/cos): support object restoration - #8286

Open
suyanhanx wants to merge 2 commits into
mainfrom
feat/cos-restore
Open

suyanhanx wants to merge 2 commits into
mainfrom
feat/cos-restore

Conversation

@suyanhanx

@suyanhanx suyanhanx commented Sep 12, 2026

Copy link
Copy Markdown
Member

Which issue does this PR close?

Part of #8158.

Rationale for this change

Make COS support object restoration.

What changes are included in this PR?

  • Implement restore
  • Implement version-selected restore and source-version copy through the existing COS copy request.
  • Check x-cos-delete-marker before reporting a successful marker removal.
  • Document restore requirements and add behavior coverage for prefix collisions.

Are there any user-facing changes?

Yes. COS supports restore, restore_with(...).version(...), and copying a specified source version. Restore requires bucket versioning and the relevant version-listing, deletion, and copy permissions. Conditional restore with if_not_exists remains unsupported.

Breaking changes

None.

AI Usage Statement

Codex with GPT-6-Astra

@suyanhanx
suyanhanx marked this pull request as ready for review September 16, 2026 09:28
@suyanhanx
suyanhanx requested a review from Xuanwo as a code owner September 16, 2026 09:28
@github-actions github-actions Bot added releases-note/feat The PR implements a new feature or has a title that begins with "feat" services/cos size:L This PR changes 100-499 lines, ignoring generated files. labels Sep 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

releases-note/feat The PR implements a new feature or has a title that begins with "feat" services/cos size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant