Skip to content

FoundationDB: Respect 'tls_ca_file' and 'tls_password' config options #19865

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

jamesreprise
Copy link

@jamesreprise jamesreprise commented Mar 18, 2025

What does this PR do?

Fix the FoundationDB check so that the 'tls_ca_file' and 'tls_password' options are respected.

Motivation

They weren't being respected.

Review checklist (to be filled by reviewers)

  • Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
  • Add the qa/skip-qa label if the PR doesn't need to be tested during QA.
  • If you need to backport this PR to another branch, you can add the backport/<branch-name> label to the PR and it will automatically open a backport PR once this one is merged

@jamesreprise jamesreprise changed the title FoundationDB: Respect 'tls_ca_file' config option FoundationDB: Respect 'tls_ca_file' and 'tls_password' config options Mar 18, 2025
if 'tls_certificate_file' in self.instance:
fdb.options.set_tls_cert_path(self.instance.get('tls_certificate_file'))
if 'tls_password' in self.instance:
Copy link
Author

Choose a reason for hiding this comment

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

See https://apple.github.io/foundationdb/api-python.html

fdb.options.set_tls_password(password)
Sets the passphrase for encrypted private key. Password should be set before setting the key for the password to be used.

Copy link

codecov bot commented Mar 18, 2025

Codecov Report

Attention: Patch coverage is 0% with 4 lines in your changes missing coverage. Please review.

Project coverage is 88.69%. Comparing base (3fd29a6) to head (6e06bc0).
Report is 40 commits behind head on master.

Additional details and impacted files
Flag Coverage Δ
activemq ?
cassandra ?
foundationdb 82.89% <0.00%> (-0.99%) ⬇️
hive ?
hivemq ?
ignite ?
jboss_wildfly ?
kafka ?
presto ?
solr ?

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants