Skip to content

Commit 32fa12c

Browse files
SNOW-1405682 - disable use of GCS default credentials as a default (#2117)
1 parent ef81582 commit 32fa12c

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/main/java/net/snowflake/client/core/SFBaseSession.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public abstract class SFBaseSession {
145145
private boolean enableExactSchemaSearch = false;
146146

147147
/** Disable lookup for default credentials by GCS library */
148-
private boolean disableGcsDefaultCredentials = false;
148+
private boolean disableGcsDefaultCredentials = true;
149149

150150
private Map<String, Object> commonParameters;
151151

src/main/java/net/snowflake/client/jdbc/cloud/storage/SnowflakeGCSClient.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1372,8 +1372,7 @@ private static void overrideHost(StageInfo stage, StorageOptions.Builder builder
13721372

13731373
private static boolean areDisabledGcsDefaultCredentials(SFSession session) {
13741374
return session != null && session.getDisableGcsDefaultCredentials()
1375-
|| convertSystemPropertyToBooleanValue(
1376-
DISABLE_GCS_DEFAULT_CREDENTIALS_PROPERTY_NAME, false);
1375+
|| convertSystemPropertyToBooleanValue(DISABLE_GCS_DEFAULT_CREDENTIALS_PROPERTY_NAME, true);
13771376
}
13781377

13791378
private static boolean isSuccessStatusCode(int code) {

0 commit comments

Comments
 (0)