You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Implement ability for Ansible Kolla to deploy MariaDB with the ability to accept connections via TLS #466
As an SCS Operator, I want to deploy MariaDB using Ansible Kolla and have it listen for TLS connections so that I can have E2E encryption for OpenStack services.
Definition of Ready:
User Story is clear and understood by the whole team
Acceptance criteria are defined
Acceptance criteria are clear and understood by the whole team
Definition of Done:
Ansible Kolla is able to deploy MariaDB with TLS listener enabled
The patch has been submitted to upstream and merged.
@artificial-intelligence alongside this and #467 we came across the comment from Mark Goddard in the linked review that ProxySQL is the way to address this need.
Since we discussed the enablement of ProxySQL on Dec 13th in Team IaaS this seems to fit nicely together. Can you comment on this and assist here?
ProxySQL is already implemented in Kolla. I enabled TLS between ProxySQL and MariaDB according to this guide
and created a patch in upstream. There should be a discussion about which services will have TLS, around 20 services in Kolla use DB, do we need them all?
There should be a discussion about which services will have TLS, around 20 services in Kolla use DB, do we need them all?
No discussion necessary. In the upstream project we have to add TLS support for all the services, even if we do not use them here in SCS at the moment. Otherwise, the change has not been fully implemented there and is not mergeable.
If necessary, you may can split it into several reviews so that the services relevant to us are implemented first.
In Kolla, every service mentioned above has it's own user and ProxySQL can require_ssl SSL per user. We can make separate upstream PR for every service, that's the preferred way of work when developing Kolla.
However, there's also root user, which is used when seting up the cloud by kolla-ansible deploy. This user is utilized in all roles, meaning that if we turn require SSL for this user, we will have to at the very least add --ssl parameter to all the roles ( or ansible equivalent of --ssl). This could be done in one PR only, because turning require_ssl on for root user will break the roles that don't have --ssl
There is a question that if we need require SSL for root user at all, because it's only used during kolla deploying.
I am working on a patch that will allow use TLS between a service and proxysql (frontend TLS), this patch will be pushed upstream as soon as it's done.
Activity
fkr commentedon Jan 9, 2024
@artificial-intelligence alongside this and #467 we came across the comment from Mark Goddard in the linked review that ProxySQL is the way to address this need.
Since we discussed the enablement of ProxySQL on Dec 13th in Team IaaS this seems to fit nicely together. Can you comment on this and assist here?
MatusJenca2 commentedon Mar 8, 2024
ProxySQL is already implemented in Kolla. I enabled TLS between ProxySQL and MariaDB according to this guide
and created a patch in upstream. There should be a discussion about which services will have TLS, around 20 services in Kolla use DB, do we need them all?
MatusJenca2 commentedon Mar 26, 2024
I wrote a test for proxysql as requested by the reviews. You can check out progress in upstream
berendt commentedon Mar 26, 2024
No discussion necessary. In the upstream project we have to add TLS support for all the services, even if we do not use them here in SCS at the moment. Otherwise, the change has not been fully implemented there and is not mergeable.
If necessary, you may can split it into several reviews so that the services relevant to us are implemented first.
We deploy the following services at the moment:
MatusJenca2 commentedon Mar 28, 2024
In Kolla, every service mentioned above has it's own user and ProxySQL can
require_sslSSL per user. We can make separate upstream PR for every service, that's the preferred way of work when developing Kolla.However, there's also root user, which is used when seting up the cloud by
kolla-ansible deploy. This user is utilized in all roles, meaning that if we turn require SSL for this user, we will have to at the very least add--sslparameter to all the roles ( or ansible equivalent of--ssl). This could be done in one PR only, because turningrequire_sslon for root user will break the roles that don't have--sslThere is a question that if we need require SSL for root user at all, because it's only used during kolla deploying.
artificial-intelligence commentedon May 22, 2024
@MatusJenca2 could you address upstreams comment about removing the "when:" condition in your patch at https://review.opendev.org/c/openstack/kolla-ansible/+/915901 ?
Then we can merge it.
So just remove that when condition completely, just like Michal Arbet suggested and we can merge it.
Thanks!
MatusJenca2 commentedon Aug 1, 2024
I am working on a patch that will allow use TLS between a service and proxysql (frontend TLS), this patch will be pushed upstream as soon as it's done.