Google Secret Manager client fails to retrieve secret when executed from native image #775
Labels
info: workaround available
A workaround is available for the issue
relates-to: graal
status: awaiting validation
Waiting to be validated as a real issue
Expected Behavior
Successful retrieval and reading of a secret stored in Secret Manager.
Actual Behaviour
The following stack trace is generated when attempting to retrieve a secret:
Steps To Reproduce
secret_txt
(see line 16 of bug/nativeCompile/googleSecretManager/ApplicationSecretsClient.java).gcp.project-id
in application.yml to the relevant value.sdk use java 22.2.r17-grl
./gradlew nativeCompile
../build/native/nativeCompile/bug-nativeCompile-googleSecretManager
io.grpc.auth.GoogleAuthLibraryCallCredentials createJwtHelperOrNull WARNING: Failed to create JWT helper. This is unexpected java.lang.NoSuchMethodException: com.google.auth.oauth2.ServiceAccountCredentials.getQuotaProjectId()
error is generated. The above error is not generated whenever./gradlew run
is executed.Environment Information
Example Application
https://github.com/montesmoci/bug-nativeCompile-googleSecretsManager
Version
3.8.6
The text was updated successfully, but these errors were encountered: