Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Connection from google data studio to google cloud sql postgres with SSL

Tags:

I've created one instance on Google Cloud with PostgreSql and I've connected the data studio with this database adding all the addresses specified in white list specified at link below

[https://support.google.com/datastudio/answer/7288010?hl=en]

With that solution I have to open access to my database to a lot of addresses. And this issue, associated to the fact that SSL is not supported is a big lack of security. Is there any different way to use google data studio for reports? Maybe using CloudSqlProxy and considering google data studio as an external application from the GC environment?

Thanks for cooperation

Michele

like image 759
Michele Ferrari Avatar asked Oct 12 '17 10:10

Michele Ferrari


1 Answers

I am assuming you are concerned about data being exposed due to the lack of support for SSL. Though that is a valid concern in a lot of cases, for your specific use case, it should not matter:

  • All the ip addresses that you have to whitelist here are Google Server/infrastructure addresses.
  • Data Studio as an application runs on Google's servers. So the communication between Google Cloud SQL and Google Data Studio will be entirely within Google's network. Even if it is not SSL, that traffic should not be exposed to outside world.
  • The connection between any client computer (where report is being viewed) and Data Studio will always be HTTPS.

However, if you still want to have an SSL connection, you can create a Community Connector in Apps Script that uses the JDBC service to connect to databases using SSL.

like image 80
Minhaz Kazi Avatar answered Sep 25 '22 14:09

Minhaz Kazi