diff --git a/velox/connectors/hive/storage_adapters/gcs/GCSFileSystem.cpp b/velox/connectors/hive/storage_adapters/gcs/GCSFileSystem.cpp index 6f452d80ad79..07d85f5746b5 100644 --- a/velox/connectors/hive/storage_adapters/gcs/GCSFileSystem.cpp +++ b/velox/connectors/hive/storage_adapters/gcs/GCSFileSystem.cpp @@ -269,7 +269,7 @@ class GCSFileSystem::Impl { constexpr std::string_view kHttpsScheme{"https://"}; auto options = gc::Options{}; auto endpointOverride = hiveConfig_->gcsEndpoint(); - // Use insecure credentials by default. + // Use secure credentials by default. if (!endpointOverride.empty()) { options.set(endpointOverride); // Use Google default credentials if endpoint has https scheme. @@ -281,7 +281,8 @@ class GCSFileSystem::Impl { gc::MakeInsecureCredentials()); } } else { - options.set(gc::MakeInsecureCredentials()); + options.set( + gc::MakeGoogleDefaultCredentials()); } options.set(kUploadBufferSize);