Skip to content

dird: allow to disable TLS-PSK downgrades#1398

Merged
arogge merged 7 commits intobareos:masterfrom
alaaeddineelamri:dev/alaaeddineelamri/master/s5346-allow-disable-tls-psk-downgrade
Mar 30, 2023
Merged

dird: allow to disable TLS-PSK downgrades#1398
arogge merged 7 commits intobareos:masterfrom
alaaeddineelamri:dev/alaaeddineelamri/master/s5346-allow-disable-tls-psk-downgrade

Conversation

@alaaeddineelamri
Copy link
Contributor

@alaaeddineelamri alaaeddineelamri commented Mar 2, 2023

Thank you for contributing to the Bareos Project!

Description

This PR disables TLS-PSK downgrades and allows to manually enable them in the configuration.

Please check

  • Short description and the purpose of this PR is present above this paragraph
  • Your name is present in the AUTHORS file (optional)

If you have any questions or problems, please give a comment in the PR.

Helpful documentation and best practices

Checklist for the reviewer of the PR (will be processed by the Bareos team)

Make sure you check/merge the PR using devtools/pr-tool to have some simple automated checks run and a proper changelog record added.

General
  • Is the PR title usable as CHANGELOG entry?
  • Purpose of the PR is understood
  • Commit descriptions are understandable and well formatted
  • Check backport line
Source code quality
  • Source code changes are understandable
  • Variable and function names are meaningful
  • Code comments are correct (logically and spelling)
  • Required documentation changes are present and part of the PR
Tests
  • Decision taken that a test is required (if not, then remove this paragraph)
  • The choice of the type of test (unit test or systemtest) is reasonable
  • Testname matches exactly what is being tested
  • On a fail, output of the test leads quickly to the origin of the fault

@alaaeddineelamri alaaeddineelamri force-pushed the dev/alaaeddineelamri/master/s5346-allow-disable-tls-psk-downgrade branch 2 times, most recently from 9a76186 to b688b58 Compare March 3, 2023 10:15
@alaaeddineelamri alaaeddineelamri marked this pull request as ready for review March 3, 2023 10:46
@alaaeddineelamri alaaeddineelamri requested a review from arogge March 3, 2023 16:13
{ "NdmpLogLevel", CFG_TYPE_PINT32, ITEM(res_client, ndmp_loglevel), 0, CFG_ITEM_DEFAULT, "4", NULL, NULL },
{ "NdmpBlockSize", CFG_TYPE_SIZE32, ITEM(res_client, ndmp_blocksize), 0, CFG_ITEM_DEFAULT, "64512", NULL, NULL },
{ "NdmpUseLmdb", CFG_TYPE_BOOL, ITEM(res_client, ndmp_use_lmdb), 0, CFG_ITEM_DEFAULT, "true", NULL, NULL },
{ "TlsDowngrade", CFG_TYPE_BOOL, ITEM(res_client, tls_downgrade), 0, CFG_ITEM_DEFAULT, "false", "23.0.0",
Copy link
Member

Choose a reason for hiding this comment

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

I'm not sure that I'm happy with that naming.
Maybe it is worth investigating how TLS Require = yes would behave in that context. I think setting TLS Require = yes should not allow a downgrade to cleartext.

@alaaeddineelamri alaaeddineelamri force-pushed the dev/alaaeddineelamri/master/s5346-allow-disable-tls-psk-downgrade branch 4 times, most recently from ddb210d to 605de11 Compare March 15, 2023 09:07
@alaaeddineelamri alaaeddineelamri requested a review from arogge March 20, 2023 09:21
@alaaeddineelamri alaaeddineelamri force-pushed the dev/alaaeddineelamri/master/s5346-allow-disable-tls-psk-downgrade branch 2 times, most recently from 52fbfd6 to a943d28 Compare March 30, 2023 13:16
Copy link
Member

@arogge arogge left a comment

Choose a reason for hiding this comment

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

Looks good to me.
We should probably have a follow-up PR that changes the default for TLS Required to yes.

@arogge arogge force-pushed the dev/alaaeddineelamri/master/s5346-allow-disable-tls-psk-downgrade branch from cce4232 to 39762de Compare March 30, 2023 16:59
@arogge arogge merged commit 49608e1 into bareos:master Mar 30, 2023
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