Skip to content

Commit

Permalink
fix default to secure credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
majetideepak committed Oct 11, 2024
1 parent 7c8b9c5 commit 2caafa0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions velox/connectors/hive/storage_adapters/gcs/GCSFileSystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<gcs::RestEndpointOption>(endpointOverride);
// Use Google default credentials if endpoint has https scheme.
Expand All @@ -281,7 +281,8 @@ class GCSFileSystem::Impl {
gc::MakeInsecureCredentials());
}
} else {
options.set<gc::UnifiedCredentialsOption>(gc::MakeInsecureCredentials());
options.set<gc::UnifiedCredentialsOption>(
gc::MakeGoogleDefaultCredentials());
}
options.set<gcs::UploadBufferSizeOption>(kUploadBufferSize);

Expand Down

0 comments on commit 2caafa0

Please sign in to comment.