Skip to content

feat(storage): support copying CSEK-encrypted files to non-CSEK destinations - #26

Open
thiyaguk09 wants to merge 6 commits into
mainfrom
feat/7351-copy-csek-to-unencrypted
Open

feat(storage): support copying CSEK-encrypted files to non-CSEK destinations#26
thiyaguk09 wants to merge 6 commits into
mainfrom
feat/7351-copy-csek-to-unencrypted

Conversation

@thiyaguk09

Copy link
Copy Markdown
Owner

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Fixes #<issue_number_goes_here> 🦕

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds support for null encryption keys to allow copying CSEK-encrypted files to standard non-CSEK destinations. The review identifies a critical bug in the copy logic where the source file's encryption key is mutated and the destination file is left in an inconsistent state by bypassing setEncryptionKey. Feedback also suggests correcting the corresponding unit tests to avoid asserting on this buggy behavior and to use the proper setter method instead of manually assigning dummy properties.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread handwritten/storage/src/file.ts Outdated
Comment thread handwritten/storage/test/file.ts Outdated
Comment thread handwritten/storage/test/file.ts Outdated
@thiyaguk09
thiyaguk09 force-pushed the feat/7351-copy-csek-to-unencrypted branch 2 times, most recently from 76c3932 to ea8daaa Compare July 10, 2026 12:30
@thiyaguk09
thiyaguk09 force-pushed the feat/7351-copy-csek-to-unencrypted branch 5 times, most recently from a74b4bf to 657755f Compare July 27, 2026 06:48
@thiyaguk09
thiyaguk09 force-pushed the feat/7351-copy-csek-to-unencrypted branch 7 times, most recently from c916584 to 6cb250f Compare August 4, 2026 06:08
@thiyaguk09
thiyaguk09 force-pushed the feat/7351-copy-csek-to-unencrypted branch 5 times, most recently from d620144 to c0104eb Compare August 6, 2026 03:36
release-please Bot and others added 6 commits August 6, 2026 14:45
🤖 I have created a release *beep* *boop*
---


<details><summary>pack-n-play: 5.0.1</summary>

##
[5.0.1](googleapis/google-cloud-node@pack-n-play-v5.0.0...pack-n-play-v5.0.1)
(2026-08-05)


### Bug Fixes

* **core:** Discovery url handling, error code review helper, and
pack-n-play test timeouts
([googleapis#9061](googleapis#9061))
([340364f](googleapis@340364f))
</details>

<details><summary>gcp-metadata: 9.0.1</summary>

##
[9.0.1](googleapis/google-cloud-node@gcp-metadata-v9.0.0...gcp-metadata-v9.0.1)
(2026-08-05)


### Bug Fixes

* **core:** Discovery url handling, error code review helper, and
pack-n-play test timeouts
([googleapis#9061](googleapis#9061))
([340364f](googleapis@340364f))
</details>

<details><summary>googleapis-common: 9.0.1</summary>

##
[9.0.1](googleapis/google-cloud-node@googleapis-common-v9.0.0...googleapis-common-v9.0.1)
(2026-08-05)


### Bug Fixes

* **core:** Discovery url handling, error code review helper, and
pack-n-play test timeouts
([googleapis#9061](googleapis#9061))
([340364f](googleapis@340364f))
</details>

<details><summary>bigquery: 9.0.1</summary>

##
[9.0.1](googleapis/google-cloud-node@bigquery-v9.0.0...bigquery-v9.0.1)
(2026-08-05)


### Bug Fixes

* **bigquery:** Remove owlbot configs
([googleapis#8936](googleapis#8936))
([7f8e23c](googleapis@7f8e23c))
</details>

<details><summary>bigtable: 7.1.0</summary>

##
[7.1.0](googleapis/google-cloud-node@bigtable-v7.0.0...bigtable-v7.1.0)
(2026-08-05)


### Features

* **bigtable:** Split gapic and proto usage from the handwritten library
into bigtable-api
([googleapis#8934](googleapis#8934))
([f63f914](googleapis@f63f914))
</details>

<details><summary>databasecenter: 0.4.1</summary>

##
[0.4.1](googleapis/google-cloud-node@databasecenter-v0.4.0...databasecenter-v0.4.1)
(2026-08-05)


### Bug Fixes

* Upgrade types sinon for databasecenter
([googleapis#9098](googleapis#9098))
([23aee11](googleapis@23aee11))
</details>

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
…apis#9099)

Add Node.js 22 and pnpm v7 runtime setup steps to
`.github/workflows/generation_check.yaml` prior to tool installation and
generation verification.

On default GitHub hosted CI runners (`ubuntu-latest`), `pnpm` is not
pre-installed on the system `$PATH`, so executing `librarian install`
immediately fails due to `exec: "pnpm": executable file not found in
$PATH`.
…SEK and fix copy behavior for non-encrypted destinations
@thiyaguk09
thiyaguk09 force-pushed the feat/7351-copy-csek-to-unencrypted branch from c0104eb to a016a7a Compare August 7, 2026 05:04
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.

3 participants