Skip to content

Conversation

@dervoeti
Copy link
Member

@dervoeti dervoeti commented Oct 29, 2025

Description

Part of stackabletech/opa-operator#581

Needs stackabletech/opa-operator#774

Adds support for OPA with TLS for Trino.

The discovery currently happens via an additional attribute in the service discovery ConfigMap which provides the name of the SecretClass. TBD if doing it this way is fine for now.

The OPA test was adapted to test OPA with TLS enabled.

Definition of Done Checklist

  • Not all of these items are applicable to all PRs, the author should update this template to only leave the boxes in that are relevant
  • Please make sure all these things are done and tick the boxes

Author

  • Changes are OpenShift compatible
  • CRD changes approved
  • CRD documentation for all fields, following the style guide.
  • Helm chart can be installed and deployed operator works
  • Integration tests passed (for non trivial changes)
  • Changes need to be "offline" compatible
  • Links to generated (nightly) docs added
  • Release note snippet added

Reviewer

  • Code contains useful comments
  • Code contains useful logging statements
  • (Integration-)Test cases added
  • Documentation added or updated. Follows the style guide.
  • Changelog updated
  • Cargo.toml only contains references to git tags (not specific commits or branches)

Acceptance

  • Feature Tracker has been updated
  • Proper release label has been added
  • Links to generated (nightly) docs added
  • Release note snippet added
  • Add type/deprecation label & add to the deprecation schedule
  • Add type/experimental label & add to the experimental features tracker

@dervoeti dervoeti force-pushed the feat/opa-tls-support branch from fe2ed01 to 2767a27 Compare October 29, 2025 20:31
@dervoeti dervoeti moved this to Development: Waiting for Review in Stackable Engineering Oct 29, 2025
@dervoeti dervoeti self-assigned this Oct 29, 2025
@dervoeti dervoeti force-pushed the feat/opa-tls-support branch from 2ce7dba to 2f9083c Compare October 30, 2025 11:13
@maltesander maltesander self-requested a review October 31, 2025 13:04
@maltesander maltesander moved this from Development: Waiting for Review to Development: In Review in Stackable Engineering Oct 31, 2025
maltesander
maltesander previously approved these changes Oct 31, 2025
Copy link
Member

@maltesander maltesander left a comment

Choose a reason for hiding this comment

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

Works - one nitpick!

.is_some()
{
prepare_args.extend(command::add_cert_to_truststore(
&format!("/stackable/secrets/{OPA_TLS_VOLUME_NAME}/ca.crt"),
Copy link
Member

Choose a reason for hiding this comment

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

The format / naming be a method on the trino_opa_config returning the optional mount path? Used in the tls_volume_mounts method as well.

@dervoeti dervoeti force-pushed the feat/opa-tls-support branch from 707fc8f to 261b602 Compare October 31, 2025 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Development: In Review

Development

Successfully merging this pull request may close these issues.

3 participants