Heroku Postgresql with Google Datastudio

拈花ヽ惹草 提交于 2019-11-29 01:07:38

问题


I'm having troubles to connect an existing heroku database to Google Datastudio. I'm trying to add the connection and I get the following:

Access denied, please check your username and password.

Now, I'm 100% sure that I'm correct on those credentials and the problem comes from somewhere else.

I've tried with different setup, either a free or a paid PSQL instance, nothing works.

I've also setup a dummy account on elephantsql and the connection worked the first time without any issue.

Do you have any idea of the cause of that problem?

Edit:

Just found https://www.en.advertisercommunity.com/t5/Data-Studio/Heroku-Postgres-lt-gt-Google-Data-Studio/m-p/1031729 which is not helpful at the time of writing this post.


回答1:


With February 6, 2018 update Google DataStudio now allows SSL connection with PostgreSQL

If you enable SSL you need to provide client key+cert and server cert, i've used the following tools to generate them:

1.) I've generated a self signed cert + key with openssl for client key + cerficate openssl req -newkey rsa:2048 -nodes -keyout client.key -x509 -days 365 -out client.crt

2.) i've used postgres_get_server_cert.py to get the self signed server cert from heroku psql:

https://raw.githubusercontent.com/thusoy/postgres-mitm/master/postgres_get_server_cert.py




回答2:


The problem is that Heroku Postgres requires an SSL connection which doesn't seem possible with Data Studio at the moment. Hopefully Google will add that option soon.



来源:https://stackoverflow.com/questions/42386975/heroku-postgresql-with-google-datastudio

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!