Thanks to visit codestin.com
Credit goes to github.com

Skip to content

DirectPath Misconfiguration emitted for incorrect Credentials but DirectPath still works #2423

@frankyn

Description

@frankyn

Environment details

  1. GCE
  2. artifact version(s): google-cloud-storage:2.32.1, gax 2.41.0

Issue

Run the following code in GCE with DirectPath enabled causes the following warning to be logged.

InstantiatingGrpcChannelProvider logDirectPathMisconfig
WARNING: DirectPath is misconfigured. Please make sure the credential is an instance of com.google.auth.oauth2.ComputeEngineCredentials .

Code example

RetrySettings retrySettings = StorageOptions.getDefaultRetrySettings().toBuilder().build();
StorageOptions retryStorageOptions =
    StorageOptions.grpc().setRetrySettings(retrySettings).setAttemptDirectPath(true).build();
Storage storageClient = retryStorageOptions.getService();

Metadata

Metadata

Assignees

Labels

priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions