Skip to content

Add proposal OS API and OS internal Traffic TLS encryption and PKI - #370

Closed
fdobrovolny wants to merge 1 commit into
mainfrom
proposal/OpenStack-API-and-OpenStack-internal-Traffic-TLS-encryption-and-PKI-Infrastructure
Closed

fdobrovolny wants to merge 1 commit into
mainfrom
proposal/OpenStack-API-and-OpenStack-internal-Traffic-TLS-encryption-and-PKI-Infrastructure

Conversation

@fdobrovolny

Copy link
Copy Markdown
Contributor

@fdobrovolny fdobrovolny self-assigned this Nov 1, 2023
@fdobrovolny fdobrovolny added the SCS-VP04 Related to tender lot SCS-VP04 label Nov 1, 2023
@fdobrovolny
fdobrovolny force-pushed the proposal/OpenStack-API-and-OpenStack-internal-Traffic-TLS-encryption-and-PKI-Infrastructure branch from 407793e to 38bd256 Compare November 1, 2023 09:15
@fkr fkr added the IaaS Issues or pull requests relevant for Team1: IaaS label Nov 1, 2023
@fkr fkr added this to the R6 (v7.0.0) milestone Nov 1, 2023
## Introduction

OpenStack is a platform used for the SCS IaaS layer (Infrastructure as a Service).
Currently, the deployment is mostly done using [Kolla](https://opendev.org/openstack/kolla-ansible).

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Currently, the deployment is mostly done using [Kolla](https://opendev.org/openstack/kolla-ansible).
Currently, the deployment is done via [OSISM](https://github.com/osism/) which makes heavy use of [Kolla](https://opendev.org/openstack/kolla-ansible).


OpenStack is a platform used for the SCS IaaS layer (Infrastructure as a Service).
Currently, the deployment is mostly done using [Kolla](https://opendev.org/openstack/kolla-ansible).
This ADR document current status of Kolla in regard to end-to-end TLS encryption of selected OpenStack services shown below.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
This ADR document current status of Kolla in regard to end-to-end TLS encryption of selected OpenStack services shown below.
This ADR documents the current status of Kolla in regard to end-to-end TLS encryption of selected OpenStack services shown below.

@fkr

fkr commented Nov 2, 2023

Copy link
Copy Markdown
Member

@artificial-intelligence can you read this and share your thoughts?

@artificial-intelligence artificial-intelligence left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll add more remarks later.

Libvirt TLS is not discussed at all, so I would really at least like to see a paragraph about it.
I'll also need to check if we are missing other important services.

One thing coming to my mind is e.g. nonvnc transport encryption via vencrypt and binding of the communication channel to the novnc proxyserver, as is discussed here:

https://bugs.launchpad.net/kolla-ansible/+bug/2043709


The communication between external clients and the OpenStack services is crucial. It needs to be secured to prevent data leakage and unauthorized access as this data often travels across the open internet, is highly susceptible to interception, and has considerable potential for misuse.

Kolla, out of the box, provides the ability to encrypt external traffic using a HAProxy. [Details](https://docs.openstack.org/kolla-ansible/latest/admin/tls.html#tls-configuration-for-internal-external-vip)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should probably switch these URLs to stable releases and not use latest here, because the latest link might change at any point in time and result in broken links.

the current latest link would be:

Suggested change
Kolla, out of the box, provides the ability to encrypt external traffic using a HAProxy. [Details](https://docs.openstack.org/kolla-ansible/latest/admin/tls.html#tls-configuration-for-internal-external-vip)
Kolla, out of the box, provides the ability to encrypt external traffic using a HAProxy. [Details](https://docs.openstack.org/kolla-ansible/2023.1/admin/tls.html#tls-configuration-for-internal-external-vip)


The communication from within the OpenStack is the second most vulnerable communication. This kind of communication usually serves to manage resources from CI/CD tools or services such as the SCS KaaS layer. For the attacker to gain access, they can intercept this kind of communication, for example, from a compromised ci build.

Kolla, out of the box, can encrypt internal traffic using a HAProxy. [Details](https://docs.openstack.org/kolla-ansible/latest/admin/tls.html#tls-configuration-for-internal-external-vip)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see above:

Suggested change
Kolla, out of the box, can encrypt internal traffic using a HAProxy. [Details](https://docs.openstack.org/kolla-ansible/latest/admin/tls.html#tls-configuration-for-internal-external-vip)
Kolla, out of the box, can encrypt internal traffic using a HAProxy. [Details](https://docs.openstack.org/kolla-ansible/2023.1/admin/tls.html#tls-configuration-for-internal-external-vip)

8. Heat
13. OpenVSwitch

Only RabbitMQ is not currently supported.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there is interest in adding an internal CA for rabbitmq and libvirt TLS support, see:

https://etherpad.opendev.org/p/kolla-caracal-ptg#L283

the problematic part currently is, choosing the appropriate CA software, which has many challenges, as can be seen in the linked document where we evaluated various alternatives.


Only RabbitMQ is not currently supported.

[Details](https://docs.openstack.org/kolla-ansible/latest/admin/tls.html#back-end-tls-configuration)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
[Details](https://docs.openstack.org/kolla-ansible/latest/admin/tls.html#back-end-tls-configuration)
[Details](https://docs.openstack.org/kolla-ansible/2023.1/admin/tls.html#back-end-tls-configuration)


##### Memcached

Memcached does support TLS; however, this support is only [experimental](https://github.com/memcached/memcached/commit/ee1cfe3bf9384d1a93545fc942e25bed6437d910), and custom build binaries are needed. For our use case, this is a no-go.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so what do we do with this?

Kolla currently does not support TLS encryption.

Note: We had issues with `oslo.cache` connecting via TLS to redis, minor upstream change might be needed.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@artificial-intelligence

artificial-intelligence commented Dec 1, 2023 •

Copy link
Copy Markdown
Contributor

another service - which is used in SCS - which is not covered here is cloudkitty, mostly used for billing purposes afaik.

see e.g. this commit to enable internal TLS usage, but the cert is not trusted during bootstrap, which might or might not be a problem:

https://review.opendev.org/c/openstack/kolla-ansible/+/866598

In general I would advice to go through each openstack service one-by-one and make a detailed review if each service uses any networking and what is transmitted via which network channels and which of these are already encrypted and if not why not.

So I don't know if this was already done and the above mentioned services where just missed - this would bring up the interesting question why they where missed - or if this has just not happened.

I would strongly encourage to do this, if it hasn't happened yet, because otherwise we have no complete picture and the work done here might be incomplete and ultimately lead to a false sense of security by suggesting that everything is encrypted when it really isn't.

I hope this helps, thank you all for all the work put into this so far!

@fkr
fkr deleted the proposal/OpenStack-API-and-OpenStack-internal-Traffic-TLS-encryption-and-PKI-Infrastructure branch March 4, 2026 11:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

IaaS Issues or pull requests relevant for Team1: IaaS SCS-VP04 Related to tender lot SCS-VP04

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants