Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
36bb132
docs(logging): fix property key, copy-pasted Javadocs, and typos in L…
lqiu96 Nov 24, 2026
9e8b3ae
docs(bigquery): document BigQueryOptions and BigQueryRetryConfig retr…
lqiu96 Nov 24, 2026
0f1c8ab
fix(auth): preserve serialization compatibility in JwtCredentials (#1…
lqiu96 Nov 24, 2026
c09d099
fix(gax-httpjson): resolve OperationsStubSettings endpoint from unive…
lqiu96 Nov 24, 2026
5cd6025
fix(bigquery): forward universe domain to BigQueryReadSettings in Con…
lqiu96 Nov 24, 2026
19df4ef
ci(bigtable): add bigtable-classic-it profile and use it in CFE/Direc…
igorbernstein2 Nov 24, 2026
c14aebb
chore(bigtable): add bigtable-team to CODEOWNERS for Bigtable CI conf…
igorbernstein2 Nov 24, 2026
32bd4df
chore(ci): configure Maven Resolver HTTP retry backoff for 429/5xx in…
jinseopkim0 Nov 24, 2026
d8c934c
chore(bigquery-jdbc): use universe domain terminology (#15210)
lqiu96 Nov 24, 2026
2b00c9e
fix(bigtable): ignore blank client-config-override and enforce IT pro…
igorbernstein2 Nov 24, 2026
02502e0
chore(bigquerystorage): remove unused testUniverseDomain methods (#15…
lqiu96 Nov 24, 2026
6d5103c
chore(auth): use universe domain terminology (#15212)
lqiu96 Nov 24, 2026
7dff1ea
fix(auth): propagate universeDomain to JwtCredentials from service ac…
lqiu96 Nov 24, 2026
4939c37
chore: use universe domain terminology in spanner and storage changel…
lqiu96 Nov 24, 2026
600e96f
ci(bigtable): set expected-protocol=CLASSIC in bigtable-classic-it pr…
igorbernstein2 Nov 24, 2026
bb2296a
chore(shared-dependencies): skip checkstyle in upper-bound-check POM …
jinseopkim0 Nov 24, 2026
b92f845
test(gax): capture first attempt future before submit in testSuccessW…
jinseopkim0 Nov 24, 2026
f9c5fa2
docs(auth): document default universe domain on access token construc…
lqiu96 Nov 25, 2026
836185c
chore(spanner): harden URI startup property handling (#15237)
olavloite Nov 25, 2026
0256e16
feat(auth): support universeDomain in OAuth2CredentialsWithRefresh (#…
lqiu96 Nov 25, 2026
7dbeb7f
feat(auth): support universeDomain in OAuth2CredentialsWithRefresh (#…
lqiu96 Nov 25, 2026
01e8b1f
fix(auth): mask access_boundary_session_key in SLF4J logs (#15221)
lqiu96 Nov 25, 2026
e82b3dd
fix(firestore): propagate universe domain and resolve default endpoin…
wu-hui Nov 25, 2026
d4f941d
fix(auth): mask access_boundary_session_key in SLF4J logs (#15221)
lqiu96 Nov 25, 2026
8eb9529
fix(bigquerystorage): support universe domain and stop pinning defaul…
jinseopkim0 Nov 25, 2026
cadc868
fix(auth): honor universe_domain and iamEndpointOverride in Impersona…
whowes Nov 25, 2026
25eebb6
fix(bigquery-jdbc): bound BigDecimal scale in epoch-decimal timestamp…
Neenu1995 Nov 25, 2026
c33b2d1
fix(auth,gax): skip universe domain validation for ApiKeyCredentials …
lqiu96 Nov 25, 2026
571a013
fix(bigtable): delegate MaterializedView/LogicalView toString() to pr…
igorbernstein2 Nov 25, 2026
15310ae
fix(bigquery-jdbc): honor GOOGLE_CLOUD_UNIVERSE_DOMAIN and preserve c…
Neenu1995 Nov 25, 2026
9f21dd0
feat(spanner): add BatchWrite timeout configurator, client context su…
alkatrivedi Nov 26, 2026
f067ab2
fix(spanner): honor GOOGLE_CLOUD_UNIVERSE_DOMAIN when universe domain…
sakthivelmanii Nov 26, 2026
420f49e
fix(spanner): reject point-at-infinity and non-canonical EC points in…
sakthivelmanii Nov 27, 2026
1c0a358
fix(spanner): skip Cloud Monitoring built-in metrics for unauthentica…
sakthivelmanii Nov 27, 2026
d61b6d3
fix(bigquery-jdbc): use loopback binding, PKCE, and state verificatio…
keshavdandeva Nov 27, 2026
cff532d
fix(bigquery-jdbc): enforce JDBC connection pooling lifecycle, state …
keshavdandeva Nov 27, 2026
1d01c6c
chore(spanner): bound streaming server retry delays and fall back on …
sakthivelmanii Nov 27, 2026
2c52d5e
fix(spanner): disable built-in Cloud Monitoring metrics for custom no…
sakthivelmanii Nov 27, 2026
9b7ef2b
fix(bigquery-jdbc): record adoption features once per object (#15044)
Neenu1995 Nov 28, 2026
c4fe829
fix(bigquery-jdbc): harden log file creation with 0600/0700 permissio…
Neenu1995 Nov 28, 2026
5ae9558
fix(bigquery-jdbc): add cross-process global log lock fallback and in…
Neenu1995 Nov 28, 2026
a756d92
fix(bigquery-jdbc): add 1 GiB log file rotation and truncation fallba…
Neenu1995 Nov 28, 2026
718e941
fix(bigquery-jdbc): replace String log parameter routing with typed C…
Neenu1995 Nov 28, 2026
35ae16b
fix(bigquery-jdbc): isolate per-connection log levels, directories, a…
Neenu1995 Nov 28, 2026
312e4aa
fix(bigquery-jdbc): gate log writer lifecycle, mask URL secrets, and …
Neenu1995 Nov 28, 2026
1413eeb
perf(spanner): make async query execution event-driven (#14933)
olavloite Nov 30, 2026
1e3d32e
test(bigtable): add shared Data IT resource setup and lazy CloudEnv a…
igorbernstein2 Nov 30, 2026
ae3f433
chore(ci): remove unused scorecard.yml workflow (#15219)
jinseopkim0 Nov 30, 2026
5121d5c
chore(ci): cache JDK 8 toolcache and upgrade setup-java in java-stora…
jinseopkim0 Nov 30, 2026
8df2782
chore(firestore): ignore flaky ITQueryWatchTest.shutdownNowTerminates…
jinseopkim0 Nov 30, 2026
a46429d
fix(auth): reject non-default universe refreshes for ServiceAccountCr…
lqiu96 Nov 30, 2026
56cdb1c
chore(auth): synchronize async refresh tests with CountDownLatch in C…
jinseopkim0 Nov 30, 2026
a337423
test(bigtable): use shared AuthorizedView across Data ITs (#15247)
igorbernstein2 Nov 30, 2026
884dea1
chore: bump fmt-maven-plugin to 2.29 and enable long string reflowing…
zhumin8 Nov 30, 2026
2c38865
fix(spanner): unify streaming retry delay sanitization and backoff (#…
sakthivelmanii Nov 30, 2026
e902bb0
feat(spanner): support per-client built-in Cloud Monitoring metrics (…
sakthivelmanii Nov 30, 2026
60ee626
docs(gax): fix broken URLs, invalid Javadoc tags, and raw Markdown sy…
lqiu96 Nov 22, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,9 @@
/librarian.yaml @googleapis/cloud-sdk-java-team @googleapis/cloud-sdk-librarian-team
/java-cloud-bom/ @googleapis/cloud-sdk-java-team
/java-shared-config/ @googleapis/cloud-sdk-java-team

# Bigtable CI configs
/.kokoro/bigtable-* @googleapis/bigtable-team @googleapis/cloud-sdk-java-team
/.kokoro/presubmit/bigtable-* @googleapis/bigtable-team @googleapis/cloud-sdk-java-team
/.kokoro/nightly/bigtable-* @googleapis/bigtable-team @googleapis/cloud-sdk-java-team
/.github/workflows/java-bigtable-* @googleapis/bigtable-team @googleapis/cloud-sdk-java-team
9 changes: 7 additions & 2 deletions .github/workflows/java-storage-nio-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,12 @@ jobs:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
with:
persist-credentials: false
- uses: actions/setup-java@c1e323688fd81a25caa38c78aa6df2d33d3e20d9 # v4.8.0
- name: Cache Temurin JDK 8
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
with:
path: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/8.*
key: ${{ runner.os }}-temurin-jdk8
- uses: actions/setup-java@1bcf9fb12cf4aa7d266a90ae39939e61372fe520 # v5.4.0
with:
java-version: 8
distribution: temurin
Expand All @@ -87,7 +92,7 @@ jobs:
# https://maven.apache.org/surefire/maven-surefire-plugin/test-mojo.html#jvm
run: echo "SUREFIRE_JVM_OPT=-Djvm=${JAVA_HOME}/bin/java -P !java17" >> $GITHUB_ENV
shell: bash
- uses: actions/setup-java@c1e323688fd81a25caa38c78aa6df2d33d3e20d9 # v4.8.0
- uses: actions/setup-java@1bcf9fb12cf4aa7d266a90ae39939e61372fe520 # v5.4.0
with:
java-version: 17
distribution: temurin
Expand Down
72 changes: 0 additions & 72 deletions .github/workflows/scorecard.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .kokoro/presubmit/bigtable-integration-cfe.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ env_vars: {

env_vars: {
key: "INTEGRATION_TEST_ARGS"
value: "-P bigtable-cfe-it,enable-verbose-grpc-logs -Dbigtable.project=gcloud-devel -Dbigtable.instance=google-cloud-bigtable -Dbigtable.table=integration-tests"
value: "-P bigtable-cfe-it,bigtable-classic-it,enable-verbose-grpc-logs -Dbigtable.project=gcloud-devel -Dbigtable.instance=google-cloud-bigtable -Dbigtable.table=integration-tests"
}

env_vars: {
Expand Down
2 changes: 1 addition & 1 deletion .kokoro/presubmit/bigtable-integration-dp.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ env_vars: {

env_vars: {
key: "INTEGRATION_TEST_ARGS"
value: "-P bigtable-directpath-it,enable-verbose-grpc-logs -Dbigtable.project=gcloud-devel -Dbigtable.instance=google-cloud-bigtable -Dbigtable.table=integration-tests"
value: "-P bigtable-directpath-it,bigtable-classic-it,enable-verbose-grpc-logs -Dbigtable.project=gcloud-devel -Dbigtable.instance=google-cloud-bigtable -Dbigtable.table=integration-tests"
}

env_vars: {
Expand Down
2 changes: 1 addition & 1 deletion .kokoro/presubmit/bigtable-integration.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ env_vars: {

env_vars: {
key: "INTEGRATION_TEST_ARGS"
value: "-P bigtable-prod-it,enable-verbose-grpc-logs -Dbigtable.project=gcloud-devel -Dbigtable.instance=google-cloud-bigtable -Dbigtable.table=integration-tests"
value: "-P bigtable-prod-it,enable-verbose-grpc-logs -Dbigtable.project=gcloud-devel -Dbigtable.instance=google-cloud-bigtable -Dbigtable.table=integration-tests -Dbigtable.expected-protocol=CLASSIC"
}

env_vars: {
Expand Down
4 changes: 4 additions & 0 deletions .mvn/maven.config
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
-Daether.remoteRepositoryFilter.prefixes=false
-Daether.remoteRepositoryFilter.groupId=false
-Daether.syncContext.named.time=900
-Daether.connector.http.retryHandler.count=5
-Daether.connector.http.retryHandler.interval=5000
-Daether.connector.http.retryHandler.intervalMax=60000
-Daether.connector.http.retryHandler.serviceUnavailable=429,502,503,504
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,12 @@
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertThrows;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;

import com.google.api.client.http.HttpTransport;
import com.google.api.client.http.LowLevelHttpRequest;
import com.google.api.client.util.Clock;
import com.google.auth.Credentials;
import com.google.auth.TestUtils;
Expand Down Expand Up @@ -67,6 +69,7 @@
import java.security.GeneralSecurityException;
import java.time.Duration;
import java.util.Base64;
import java.util.Date;
import java.util.Map;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.TimeUnit;
Expand All @@ -91,17 +94,23 @@ class ClientSideCredentialAccessBoundaryFactoryTest {

static class MockStsTransportFactory implements HttpTransportFactory {
MockStsTransport transport = new MockStsTransport();
private CountDownLatch refreshEntryLatch = new CountDownLatch(0);
private volatile CountDownLatch refreshEntryLatch = new CountDownLatch(0);
private volatile CountDownLatch refreshRequestLatch = new CountDownLatch(0);

void setRefreshEntryLatch(CountDownLatch refreshEntryLatch) {
this.refreshEntryLatch = refreshEntryLatch;
}

/** Sets a latch counted down once a refresh request has been issued to the mock transport. */
void setRefreshRequestLatch(CountDownLatch refreshRequestLatch) {
this.refreshRequestLatch = refreshRequestLatch;
}

@Override
public HttpTransport create() {
// Request 0 is the initial token fetch. On subsequent refresh requests (requestCount >= 1)
// in multi-threaded tests, pause the in-flight STS request until all concurrent threads have
// evaluated determineRefreshType() and attached to the existing refreshTask.
// in concurrent/async tests, pause the in-flight STS request until the test releases
// refreshEntryLatch, then signal refreshRequestLatch once buildRequest() has recorded it.
if (transport.getRequestCount() >= 1) {
try {
if (!refreshEntryLatch.await(5, TimeUnit.SECONDS)) {
Expand All @@ -111,6 +120,14 @@ public HttpTransport create() {
Thread.currentThread().interrupt();
throw new RuntimeException(e);
}
return new HttpTransport() {
@Override
protected LowLevelHttpRequest buildRequest(String method, String url) {
LowLevelHttpRequest request = transport.buildRequest(method, url);
refreshRequestLatch.countDown();
return request;
}
};
}
return transport;
}
Expand Down Expand Up @@ -158,10 +175,7 @@ void fetchIntermediateCredentials() throws Exception {
@Test
void fetchIntermediateCredentials_withCustomUniverseDomain() throws IOException {
String universeDomain = "foobar";
GoogleCredentials sourceCredentials =
getServiceAccountSourceCredentials(mockTokenServerTransportFactory).toBuilder()
.setUniverseDomain(universeDomain)
.build();
GoogleCredentials sourceCredentials = getCustomUniverseSourceCredentials(universeDomain);

ClientSideCredentialAccessBoundaryFactory factory =
ClientSideCredentialAccessBoundaryFactory.newBuilder()
Expand All @@ -174,7 +188,7 @@ void fetchIntermediateCredentials_withCustomUniverseDomain() throws IOException

// Verify domain.
String url = mockStsTransportFactory.transport.getRequest().getUrl();
assertEquals(url, String.format(TOKEN_EXCHANGE_URL_FORMAT, universeDomain));
assertEquals(String.format(TOKEN_EXCHANGE_URL_FORMAT, universeDomain), url);
}

@Test
Expand Down Expand Up @@ -282,37 +296,41 @@ void refreshCredentialsIfRequired_blockingSingleThread() throws IOException {
}

@Test
void refreshCredentialsIfRequired_asyncSingleThread() throws IOException {
void refreshCredentialsIfRequired_asyncSingleThread() throws IOException, InterruptedException {
final ClientSideCredentialAccessBoundaryFactory factory =
getClientSideCredentialAccessBoundaryFactory(RefreshType.ASYNC);
CountDownLatch allowAsyncRefresh = new CountDownLatch(1);
CountDownLatch refreshCompleted = new CountDownLatch(1);
mockStsTransportFactory.setRefreshEntryLatch(allowAsyncRefresh);
mockStsTransportFactory.setRefreshRequestLatch(refreshCompleted);

// Call refreshCredentialsIfRequired() once to initialize the intermediate credentials. This
// should make one request to the STS endpoint.
factory.refreshCredentialsIfRequired();
assertEquals(1, mockStsTransportFactory.transport.getRequestCount());

// Subsequent calls to refreshCredentialsIfRequired() in an async mode should NOT
// immediately call the STS endpoint. They should schedule an asynchronous refresh.
int numRefresh = 3;
for (int i = 0; i < numRefresh; i++) {
factory.refreshCredentialsIfRequired();
}

// Verify that only the initial call resulted in an immediate STS request. The async refresh
// is still pending.
assertEquals(1, mockStsTransportFactory.transport.getRequestCount());

// Introduce a small delay to allow the asynchronous refresh task to complete. This is
// necessary because the async task runs on a separate thread.
try {
Thread.sleep(1000);
} catch (InterruptedException e) {
throw new IOException(e);
// Subsequent calls to refreshCredentialsIfRequired() in an async mode should NOT
// immediately call the STS endpoint. They should schedule an asynchronous refresh.
int numRefresh = 3;
for (int i = 0; i < numRefresh; i++) {
factory.refreshCredentialsIfRequired();
}

// Verify that only the initial call resulted in an immediate STS request. The async refresh
// is still paused behind allowAsyncRefresh.
assertEquals(1, mockStsTransportFactory.transport.getRequestCount());
} finally {
allowAsyncRefresh.countDown();
}

// After the delay, the request count should be 2 (initial fetch + one async refresh).
// Subsequent calls to refreshCredentialsIfRequired() in ASYNC mode re-use the in-progress
// refresh task, so they don't trigger additional STS requests.
assertTrue(
refreshCompleted.await(5, TimeUnit.SECONDS),
"Timed out waiting for asynchronous refresh request");

// After the async refresh executes, the request count should be 2 (initial fetch + one async
// refresh). Subsequent calls to refreshCredentialsIfRequired() in ASYNC mode re-use the
// in-progress refresh task, so they don't trigger additional STS requests.
assertEquals(2, mockStsTransportFactory.transport.getRequestCount());
}

Expand Down Expand Up @@ -354,8 +372,10 @@ void refreshCredentialsIfRequired_asyncMultiThread() throws IOException, Interru
// Wait for all 5 threads to make both clock.currentTimeMillis() calls (outside and inside
// synchronized (refreshLock)) before the background STS refresh completes.
CountDownLatch refreshEntryLatch = new CountDownLatch(numThreads * 2);
CountDownLatch refreshCompleted = new CountDownLatch(1);
final ClientSideCredentialAccessBoundaryFactory factory =
getClientSideCredentialAccessBoundaryFactory(RefreshType.ASYNC, refreshEntryLatch);
mockStsTransportFactory.setRefreshRequestLatch(refreshCompleted);

// Call refreshCredentialsIfRequired() once to initialize the intermediate credentials. This
// should make one request to the STS endpoint.
Expand All @@ -367,15 +387,12 @@ void refreshCredentialsIfRequired_asyncMultiThread() throws IOException, Interru
// trigger additional refreshes while the background refresh is still pending.
triggerConcurrentRefresh(factory, numThreads, refreshEntryLatch);

// Introduce a small delay to allow the asynchronous refresh task to complete.
try {
Thread.sleep(100);
} catch (InterruptedException e) {
throw new IOException(e);
}
assertTrue(
refreshCompleted.await(5, TimeUnit.SECONDS),
"Timed out waiting for asynchronous refresh request");

// After the delay, the request count should be 2, indicating that the initial fetch and a
// single async refresh occurred (not one per thread).
// After the async refresh executes, the request count should be 2, indicating that the initial
// fetch and a single async refresh occurred (not one per thread).
assertEquals(2, mockStsTransportFactory.transport.getRequestCount());
}

Expand Down Expand Up @@ -611,6 +628,17 @@ private static GoogleCredentials getServiceAccountSourceCredentials(
return sourceCredentials.createScoped("https://www.googleapis.com/auth/cloud-platform");
}

private static GoogleCredentials getCustomUniverseSourceCredentials(String universeDomain) {
return new GoogleCredentials(GoogleCredentials.newBuilder().setUniverseDomain(universeDomain)) {
@Override
public AccessToken refreshAccessToken() {
return new AccessToken(
"customUniverseAccessToken",
new Date(System.currentTimeMillis() + TimeUnit.HOURS.toMillis(1)));
}
};
}

private ClientSideCredentialAccessBoundaryFactory getClientSideCredentialAccessBoundaryFactory(
RefreshType refreshType) throws IOException {
return getClientSideCredentialAccessBoundaryFactory(refreshType, new CountDownLatch(0));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,20 @@
* GoogleCredentials/OAuth2Credentials, as it does not provide an access token and is not considered
* an OAuth2 credential.
*
* <p><b>WARNING:</b> API keys do not carry universe domain metadata and <b>cannot be validated</b>
* against a client's configured universe domain or endpoint. When no universe domain is configured
* on the client, requests default to {@code googleapis.com}. <b>Callers are solely responsible for
* ensuring the API key matches the client's configured universe domain</b>, as the client will not
* prevent sending an API key to an unintended universe domain.
*
* <p><b>Quota project:</b> {@code ApiKeyCredentials} does not support overriding the quota project
* ID. The Google Cloud project associated with the API key is used as the quota and billing
* project. Setting a quota project ID on the client sends {@code x-goog-user-project}, which is
* ignored for resource-based APIs and rejected for client-based APIs because standard API keys do
* not identify an IAM principal. See <a
* href="https://docs.cloud.google.com/docs/quotas/set-quota-project#set-project-credentials">Set
* the quota project</a> for details.
*
* <pre><code>
* Credentials credentials = ApiKeyCredentials.create("your api key");
* </code></pre>
Expand All @@ -60,6 +74,19 @@ public class ApiKeyCredentials extends Credentials {
this.apiKey = apiKey;
}

/**
* Creates an {@link ApiKeyCredentials} instance for the given API key.
*
* <p><b>WARNING:</b> API keys do not carry universe domain metadata and <b>cannot be
* validated</b> against a client's configured universe domain or endpoint. <b>Callers are solely
* responsible for ensuring the API key matches the client's configured universe domain</b> (which
* defaults to {@code googleapis.com}), as the client will not prevent sending an API key to an
* unintended universe domain.
*
* @param apiKey the API key string
* @return the credentials instance
* @throws IllegalArgumentException if {@code apiKey} is null or empty
*/
public static ApiKeyCredentials create(String apiKey) {
if (apiKey == null || apiKey.isEmpty()) {
throw new IllegalArgumentException("API key cannot be null or blank");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -881,9 +881,8 @@ public byte[] sign(byte[] toSign) {
try {
String account = getAccount();
return IamUtils.sign(
account,
String.format(IamUtils.IAM_SIGN_BLOB_ENDPOINT_FORMAT, this.getUniverseDomain(), account),
this,
this.getUniverseDomain(),
transportFactory.create(),
toSign,
Collections.<String, Object>emptyMap());
Expand Down
Loading