-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect project ID for secrets manager #298
Comments
I added this code to confirm that the google API is returning the correct information:
Which is displaying the correct project. |
I got things working but this issue is still present. The way I fixed it was to call getDefaultProjectID before starting the application and passing around a second property for the project name. And finally doing this in the application properties: It looks like there was an attempted fix here: e7bbac9 But I don't think it worked. |
@zjoyner-leageapps which version of Quarkus and the I also notice that you add a lot of dependencies that are managed by Quarkus and the Google Cloud extension pack, I strongly suggest to remove them to avoid possible dependency convergence issue :
There is also a Quarkus Kotlin support, you should use it, it'll be more easier to setup your application: https://quarkus.io/guides/kotlin |
This is the gradle deps relevant output: |
Ok so I got it fail in a way that tracks with what I was seeing with my workaround by excluding secret-manager from the bom: |
Ok so I got everything working. There were two issues:
I am back online so feel free to close this if you want. |
@zjoyner-leageapps yes, the fix was made on 1.1.1 that should be included in Quarkus 2.10 I think (I'll check as I was on vacation and not sure I update the Quarkus Platform).
If you didn't set a projectID, the default is to use Feel free to open a PR to enhance the documentation if you feel it must be more explicit ;) I'm closing it now. |
I just checked and it would be OK in Quarkus 2.10. |
I have quarkus based application running in a GKE cluster in a project however when I look up a secret I know to be in the project the secret URL is for a different project. This will not work as the secrets are project specific. In this case they are DB passwords.
As a workaround I tried the fix in: #108
Namely,
quarkus.google.cloud.access-token-enabled=false
however that gave me a Null pointer with this stack trace:If I apply the fix from: https://githubhot.com/repo/quarkiverse/quarkus-google-cloud-services/issues/209
That fixes the NPE but the application fails to start as it is still trying to get secrets from the other project.
This is my gradle dependancies:
If you would like additional information please let me know.
The text was updated successfully, but these errors were encountered: