-
Notifications
You must be signed in to change notification settings - Fork 34
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
Disable service authentication #82
Comments
It's a little more complexe, see https://github.com/quarkiverse/quarkus-google-cloud-services#authenticating-to-google-cloud Your issue is that you want to use Storage in some env and something else on other env. The issue is that somewhere inside your code you inject the To workaround this, you can provide an alternative bean that mock the Another solution would be to have a CDI producer that will conditionaly produce a |
@fabrii do you successfully workaround the issue with my explaintations ? Can I close this issue now ? |
Hi @loicmathieu. I couldn't workaround the issue. quarkus.google.cloud.enabled=false (optional, true by default) And use that property internally to disable the initialization of the component. If this approach is not correct, you can close the issue. Thanks! |
We managed to solve it in an easier way. We moved the @Inject Storage to a @RequestScoped bean. |
It seems that the credentials file is mandatory. If we don't provide one, the application cannot start.
In my case, I am using Google Storage to persist files. In some dev environments I want to save the files directly to the filesystem without providing a ".json" file with credentials.
Is there any way of doing this?
Thanks!
The text was updated successfully, but these errors were encountered: