-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Adds Universe Domain support #2362
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just comment on how to track when the code blocks and be remove / updated.
@@ -323,6 +323,16 @@ public HttpStorageRpcFactory() {} | |||
public ServiceRpc create(StorageOptions options) { | |||
if (options instanceof HttpStorageOptions) { | |||
HttpStorageOptions httpStorageOptions = (HttpStorageOptions) options; | |||
// todo: In the future, this step will be done automatically, and the getResolvedApiaryHost |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a tracking bug to know when this will be addressed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added!
🤖 I have created a release *beep* *boop* --- ## [2.33.0](https://togithub.com/googleapis/java-storage/compare/v2.32.1...v2.33.0) (2024-02-07) ### Features * Adds TPC support ([#2362](https://togithub.com/googleapis/java-storage/issues/2362)) ([8b636db](https://togithub.com/googleapis/java-storage/commit/8b636dbe8a16b9b81afbb51b8d0032bcbdbef635)) ### Bug Fixes * Temporarily restoring storage_grpc_service_config.json to fix broken test ([#2365](https://togithub.com/googleapis/java-storage/issues/2365)) ([50b6610](https://togithub.com/googleapis/java-storage/commit/50b6610de94d44815d80381649e7d3a86c38f894)) ### Dependencies * Update dependency com.google.apis:google-api-services-storage to v1-rev20240202-2.0.0 ([#2393](https://togithub.com/googleapis/java-storage/issues/2393)) ([3391e1d](https://togithub.com/googleapis/java-storage/commit/3391e1d3d925604fe57a69c40c823e863ce7593e)) * Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.24.0 ([#2389](https://togithub.com/googleapis/java-storage/issues/2389)) ([9e4e00d](https://togithub.com/googleapis/java-storage/commit/9e4e00db40e8235b513f7f798674aba31631ddf4)) * Update dependency org.graalvm.buildtools:native-maven-plugin to v0.10.0 ([#2390](https://togithub.com/googleapis/java-storage/issues/2390)) ([59ac502](https://togithub.com/googleapis/java-storage/commit/59ac502ee4c063ff46aa9dd0409df2e6fda7bc99)) * Update dependency org.junit.vintage:junit-vintage-engine to v5.10.2 ([#2394](https://togithub.com/googleapis/java-storage/issues/2394)) ([8dbd4bf](https://togithub.com/googleapis/java-storage/commit/8dbd4bfb4f76634f97b2e9cd3487128f4c98f58a)) * Update junit-platform.version to v5.10.2 ([#2395](https://togithub.com/googleapis/java-storage/issues/2395)) ([0c5aef3](https://togithub.com/googleapis/java-storage/commit/0c5aef34682ee56786f2006156f4cd645c22d8a8)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please).
This PR adds an intercept when
UniverseDomain
is set inStorageOptions
, which overrides the host in StorageOptions. It also changes signed URLs to respect custom hosts, including a specified universe domain.There are no tests for this because Kokoro is not able to access any universes yet. I tested all these changes locally, and they're working against the staging universe.