Questions tagged [spring-cloud-gcp]

Ask questions about the Spring Cloud GCP project.

Integrations between Google Cloud Platform APIs and Spring.

The Spring Cloud GCP project makes the Spring Framework a first-class citizen of Google Cloud Platform (GCP).

Spring Cloud GCP lets you leverage the power and simplicity of the Spring Framework to:

  • Publish and subscribe to Google Cloud Pub/Sub topics

  • Configure Spring JDBC with a few properties to use Google Cloud SQL

  • Map objects, relationships, and collections with Spring Data Cloud Spanner and Spring Data Cloud Datastore

  • Write and read from Spring Resources backed up by Google Cloud Storage

  • Exchange messages with Spring Integration using Google Cloud Pub/Sub on the background

  • Trace the execution of your app with Spring Cloud Sleuth and Google Stackdriver Trace

  • Configure your app with Spring Cloud Config, backed up by the Google Runtime Configuration API

  • Consume and produce Google Cloud Storage data via Spring Integration GCS Channel Adapters

  • Use Spring Security via Google Cloud IAP

  • Analyze your images for text, objects, and other content with Google Cloud Vision

147 questions
0
votes
1 answer

Spring Boot 3 + Hibernate 6 migration: GCP Spanner Dialect latest v1.6.0 still refers to old ORM hibernate core

I'm in the process of upgrading a Spring Boot 2.7.7 + Hibernate 5 application to Spring Boot 3 and Hibernate 6. While updating I noticed that spring cloud spanner dialect latest v1.6.0 still refers to older hibernate package structure and coz of…
0
votes
0 answers

Anonymous caller does not have storage.objects.get access to the GCS object. Permission 'storage.objects.get' denied on resource

Ok so i have a spring boot application which is i stored many many files in google cloud storage server. Everything is ok but I have an issue when I try to delete any file (which is UI in my thymeleaf temp engine pressing DELETE button) it says…
0
votes
0 answers

Spring cloud stream Not able to log producer errors in error channel

I am trying to send the requests over stream bridge @GetMapping(value = "/sendmessage/{id}") String sendMessage( @PathVariable String id) { IntStream.rangeClosed(1, 2) .mapToObj(String::valueOf) .forEach(s->…
Patan
  • 17,073
  • 36
  • 124
  • 198
0
votes
0 answers

PubSub binder - Failed to create consumer binding; retrying in 30 seconds

I am using Google Cloud PubSub binder to consume event. Currently we did all the testing with Pubsub emulator and everything work perfectly fine. Issue: Now currently we want to stop the binding at the start of the application until I finailze…
0
votes
0 answers

spring cloud gcp pub/sub Jackson messageConverter deserialize fail

I'm trying to receive and process messages through GCP Pub/Sub. I tried to convert and receive the payload part of the message through JacksonPubSubMessageConverter, but it failed. It seems that I am not handling byte[] properly inside…
0
votes
0 answers

Add pattern to stack driver and console to display (line number/class name/function name) in app engine second gen

I'm currently building a spring boot application using gcp app engine version 2 and I would like to add a pattern to stack driver and console to display function name / line number / class name (like logs displayed in app engine first gen) I want to…
0
votes
0 answers

Consume from Existing GCP pubsub Subscription

I am trying to bind existing subscription channel using com.google.cloud spring-cloud-gcp-pubsub-stream-binder And appl properties spring: cloud: functions: …
0
votes
1 answer

Send trigger when a key in KMS is rotated

In the project I am working on, the key in the KMS would automatically rotate every 90 days, but at times may also be manually rotated in certain scenarios. I'm looking for a way to give a trigger to a microservice every time a rotation happens, be…
0
votes
1 answer

KMS : Incorrect key purpose

I'm trying to fetch the encryption key from the KMS for encrypting or decrypting data from a database. And the error suggests that the key purpose is wrong. What should be the actual key purpose for my use case? FAILED_PRECONDITION: Operation…
0
votes
1 answer

Any adapter available in Spring integration to make read/write to Spanner db?

I'm using Google cloud's Spanner database in my project. Does spring integration provide any adapter for that so that I can read/write to database without using spring's jpa or some other means?
0
votes
1 answer

Exactly once delivery semantics with Spring Cloud GCP

I have a project built with Spring Cloud GCP, which makes use of a subscription that is configured with Exactly once delivery enabled on GCP Pub/Sub subscription settings, and with Ack deadline set to 5 minutes (also in the GCP console). Using…
0
votes
1 answer

How to Connect to GCP Services without Using JSON file in Java

I am Trying to connect to GCP PUSUB Services using IAM authentication. I want to do this without the .json file. I tried using GoogleCredentials credential = GoogleCredentials.getApplicationDefault(() -> httpTransport); But this is too required…
Susheel Rao
  • 79
  • 1
  • 7
0
votes
1 answer

What all the PERMISSION required to call GCP Cloud Scheduler Create Job

I need to create a Job from the Java Code(Spring Boot) I am using java client library for the Cloud Scheduler, since we dont have Spring boot Integration. CloudSchedulerClient cloudSchedulerClient =…
chiranjeevigk
  • 1,636
  • 1
  • 23
  • 43
0
votes
0 answers

How to send byte array from one spring boot application to different spring boot application

I'm working on an issue where I've to pass some data from one spring boot application to another. The data size can range between 10-100MB. I get this byte array data from GCP blob storage as public byte[] downloadFileFromGCS(String objectName,…
0
votes
1 answer

GCP Automation with Spring Boot

I am using GCP to host my website. Now I have a scenario where I want a user to register themselves on my website and when I approve their request I want my backend application Java (Spring Boot) to create a database, subdomain, Load Balancer and…
Usama
  • 49
  • 2
  • 10