val blob = storage.get(BlobId.of(bucketName, attachment.location))
but the signUrl call fails with a permission exception. My service is running under a service account that has the appropriate permissions and I'm able to generate the URI locally by passing the service-account.json. I'm assuming the service account in my app is not the same that I have configured?
ServiceAccountCredentials
for the service account my cloudrun application is running on (or validate which account spring gcp is using)?
ConfigDataLocationResolver
and ConfigDataLoader
described here: https://spring.io/blog/2020/08/14/config-file-processing-in-spring-boot-2-4 (about adding new properties config locations). Very interested in implementing this for our secret manager module.
ConsulConfigData*
https://github.com/spring-cloud/spring-cloud-consul/tree/master/spring-cloud-consul-config/src/main/java/org/springframework/cloud/consul/configConfigServerConfigData*
https://github.com/spring-cloud/spring-cloud-config/tree/master/spring-cloud-config-client/src/main/java/org/springframework/cloud/config/client
spring.config.import
vs. using BootstrapConfiguration (via spring-cloud-starter-bootstrap
) ? Our project has a bootstrap configuration which loads a property source into the context. We're trying to understand if whether we need to implement those ConfigData classes or if we can get by just adding the spring-cloud-starter-bootstrap
dependency
Hey friends. I am trying to run unit tests in my spring-cloud-gcp-storage-starter application. The application works perfectly because it can pull the correct ENV variables to start the GCP client. In the unit test context, it crashes that the credentials are not available. Is there a recommended way to get this library to support running in a unit test context? I need to point the Storage client to a localhost GCP storage server and to run without passing credentials.
java.io.IOException: The Application Default Credentials are not available. They are available if running in Google Compute Engine. Otherwise, the environment variable GOOGLE_APPLICATION_CREDENTIALS must be defined pointing to a file defining the credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.