Bonitasoft-Community / docker_bonita

:whale: Source of the official Bonita Docker image
https://hub.docker.com/_/bonita/
18 stars 16 forks source link

Improve Azure Support #10

Closed domtoupin closed 6 years ago

domtoupin commented 6 years ago

By adding USE_SSL mode and handling user@hostname for MySQL and PostgreSQL, it will simplify the configuration of Bonita for when using an Azure Managed Database Services for PostgreSQL or MySQL.

JeremJR commented 6 years ago

Thank you for your work! I've just opened an Azure account to test the current behavior and I effectively get an error :

Caused by: org.postgresql.util.PSQLException: FATAL: Invalid Username specified. Please check the Username and retry connection. The Username should be in username@hostname format.

I need to take more time to discover the SSL configuration as I'm not yet familiar with Azure and I will come back to you later. In the mean time we have published 7.7.0 and will publish soon another release. So if we accept your PR you may have to report the change accordingly. Have a nice week-end

domtoupin commented 6 years ago

@JeremJR I am confortable with moving my change, just let me know when would be a good time. Thanks!

laurentleseigneur commented 6 years ago

Thank for this contribution.

As explained in Microsoft documentation https://docs.microsoft.com/fr-fr/azure/mysql/howto-configure-ssl (french version), it seems you also need to add system properties to add a ssl keystore.

what is unclear for me is how you configure this path to .pem file in your PR ?

domtoupin commented 6 years ago

@laurentleseigneur I read the page you sent and it puzzle me as well because what I did was to use the default which is to only enforce ssl on the managed service and with the addition of the changes made in this PR it works fine although I am unsure as to how secure that setup is. However, since bonita will also stands on Azure, I do not believe any further issues should arise from such a configuration.

JeremJR commented 6 years ago

sorry I made a mistake with git subtree so it automatically closes this PR, I will let you know when I fix this in order you can reopen it

JeremJR commented 6 years ago

So I've fixed the content into this repo yesterday (in fact we also work with a private repo and we perform a sync time to time). My first feedback about your PR are :

Due to the fact that the image requires also a review from the Docker team to be accepted into the library and as we have several modifications I suggest :

I'm sorry that it takes so long.

domtoupin commented 6 years ago

@JeremJR That all sounds reasonable to me, we are in no rush as we were only submitting back to the community what we did for our own private image. Just ping me when it will be time for rebase!

JeremJR commented 6 years ago

Ok thanks @domtoupin FYI the related PR to fix issue with @ https://github.com/docker-library/official-images/pull/4572

JeremJR commented 6 years ago

@domtoupin the PR has been merged, you can perform the rebase when you have time

domtoupin commented 6 years ago

@JeremJR This will probably be only next week, I have a lot to do right now.