Skip to content

Re-enable database TLS#2245

Open
seunghun1ee wants to merge 3 commits into
stackhpc/2026.1from
enable-database-tls
Open

Re-enable database TLS#2245
seunghun1ee wants to merge 3 commits into
stackhpc/2026.1from
enable-database-tls

Conversation

@seunghun1ee

@seunghun1ee seunghun1ee commented Mar 31, 2026

Copy link
Copy Markdown
Member

Upstream Kolla-Ansible 2026.1 brought ProxySQL 3.0.x.
It has a fix for the bug sysown/proxysql#4877 which prevented using TLS between database and ProxySQL.
Re-enable Database TLS and add tasks for creating certificates for ProxySQL.

Note: Two variables database_enable_tls_internal and database_enable_tls_backend have default value true but these are still explicitly set to true to ensure existing systems can also get effect.

Summary by CodeRabbit

  • New Features

    • Added automatic generation of ProxySQL internal TLS certificates and CA files when ProxySQL is enabled.
    • Added support for the RabbitMQ 4.1 container image.
  • Configuration

    • Removed explicit database TLS override settings, allowing the deployment’s default behavior to apply.

@seunghun1ee seunghun1ee self-assigned this Mar 31, 2026
@seunghun1ee
seunghun1ee requested a review from a team as a code owner March 31, 2026 15:34

@gemini-code-assist gemini-code-assist Bot 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.

Code Review

This pull request enables internal and backend database TLS by upgrading ProxySQL to version 3.0.x and adding the necessary certificate generation tasks. A review comment identifies a hardcoded path in the root CA copy task that should be parameterized with the stackhpc_ca_secret_store variable to support different secret store backends.

Comment thread etc/kayobe/ansible/secret-store/secret-store-generate-internal-tls.yml Outdated
@seunghun1ee
seunghun1ee force-pushed the enable-database-tls branch 2 times, most recently from b34e018 to 6a816f6 Compare March 31, 2026 15:45
@Alex-Welsh

Copy link
Copy Markdown
Member

@seunghun1ee what's the intention here? This PR has been stuck in draft for a while. Is it waiting for something else to merge?

@seunghun1ee

seunghun1ee commented Apr 27, 2026

Copy link
Copy Markdown
Member Author

This is currently actively worked on and dependent on https://review.opendev.org/c/openstack/kolla-ansible/+/986381
Once the upstream change is merged, it can be moved to Open state.

@Alex-Welsh

Copy link
Copy Markdown
Member

Should we just include this in 2026.1?

@github-actions

github-actions Bot commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

Happy Friday @seunghun1ee, this is a friendly reminder that this PR is waiting for your changes or response. Please take a look when you have a moment!

Note: Once your changes are ready, remove the waiting-author-response label and add the waiting-review label.

6 similar comments
@github-actions

Copy link
Copy Markdown
Contributor

Happy Friday @seunghun1ee, this is a friendly reminder that this PR is waiting for your changes or response. Please take a look when you have a moment!

Note: Once your changes are ready, remove the waiting-author-response label and add the waiting-review label.

@github-actions

Copy link
Copy Markdown
Contributor

Happy Friday @seunghun1ee, this is a friendly reminder that this PR is waiting for your changes or response. Please take a look when you have a moment!

Note: Once your changes are ready, remove the waiting-author-response label and add the waiting-review label.

@github-actions

Copy link
Copy Markdown
Contributor

Happy Friday @seunghun1ee, this is a friendly reminder that this PR is waiting for your changes or response. Please take a look when you have a moment!

Note: Once your changes are ready, remove the waiting-author-response label and add the waiting-review label.

@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Happy Friday @seunghun1ee, this is a friendly reminder that this PR is waiting for your changes or response. Please take a look when you have a moment!

Note: Once your changes are ready, remove the waiting-author-response label and add the waiting-review label.

@github-actions

Copy link
Copy Markdown
Contributor

Happy Friday @seunghun1ee, this is a friendly reminder that this PR is waiting for your changes or response. Please take a look when you have a moment!

Note: Once your changes are ready, remove the waiting-author-response label and add the waiting-review label.

@github-actions

Copy link
Copy Markdown
Contributor

Happy Friday @seunghun1ee, this is a friendly reminder that this PR is waiting for your changes or response. Please take a look when you have a moment!

Note: Once your changes are ready, remove the waiting-author-response label and add the waiting-review label.

@coderabbitai

coderabbitai Bot commented Jul 23, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: b9535e22-f990-43f2-8793-fbc34afc057a

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch enable-database-tls

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🧹 Nitpick comments (1)
etc/kayobe/ansible/secret-store/secret-store-generate-internal-tls.yml (1)

62-62: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick win

Normalize the feature flag in the conditional.

If this value is supplied as the string "false", Ansible treats the non-empty string as truthy and still generates the ProxySQL private key. Use | bool; this is harmless for actual booleans and prevents false-positive generation. (docs.ansible.com)

Proposed fix
-      when: kolla_enable_proxysql
+      when: kolla_enable_proxysql | bool
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@etc/kayobe/ansible/secret-store/secret-store-generate-internal-tls.yml` at
line 62, Update the conditional associated with kolla_enable_proxysql to
normalize the feature flag through Ansible’s bool filter, preserving key
generation for enabled values while treating the string "false" as disabled.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Nitpick comments:
In `@etc/kayobe/ansible/secret-store/secret-store-generate-internal-tls.yml`:
- Line 62: Update the conditional associated with kolla_enable_proxysql to
normalize the feature flag through Ansible’s bool filter, preserving key
generation for enabled values while treating the string "false" as disabled.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 4bd407f0-b800-4cb6-bc04-139fbed8c001

📥 Commits

Reviewing files that changed from the base of the PR and between ee9b5e7 and 42ddeb3.

📒 Files selected for processing (2)
  • etc/kayobe/ansible/secret-store/secret-store-generate-internal-tls.yml
  • etc/kayobe/kolla/globals.yml
💤 Files with no reviewable changes (1)
  • etc/kayobe/kolla/globals.yml

@Alex-Welsh

Copy link
Copy Markdown
Member

@seunghun1ee the bot has raised a good nitpick about slapping | bool on the kolla_enable_proxysql flag

@seunghun1ee

Copy link
Copy Markdown
Member Author

@seunghun1ee the bot has raised a good nitpick about slapping | bool on the kolla_enable_proxysql flag

Slapped

Comment thread etc/kayobe/kolla/globals.yml
Kolla-Ansible bumped ProxySQL to 3.0.x and merged [1].
These fix the problem of using database TLS with intermediate
certificate.

[1] https://review.opendev.org/c/openstack/kolla-ansible/+/994258
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

waiting-review PR is waiting for a review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants