dird: fix tls protocol shown and document TLS Protocol & ciphers restriction#1319
Conversation
5abb6ca to
eb02b32
Compare
eb02b32 to
405d87c
Compare
alaaeddineelamri
left a comment
There was a problem hiding this comment.
Mostly typos and wording in the documentation.
I would suggest changing the PR name to be usable in the changelog.
bareos-check-sources modifies one file.
|
Suggestions applied, thanks for the rewording and fixes. |
alaaeddineelamri
left a comment
There was a problem hiding this comment.
ok for me!
Thanks!
|
@arogge maybe you want a final quick overview? Shall I do the squashing afterward, and create the changelog entry? |
arogge
left a comment
There was a problem hiding this comment.
I would really prefer not to do the openssl version-check at runtime.
Other than that it looks great.
systemtests/scripts/functions
Outdated
| # Used by tlsrestricted | ||
| skip_if_openssl_too_old() | ||
| { | ||
| openssl_version=$(openssl version | cut -d " " -f2 | sed 's/\([0-9]\)\.\([0-9]\).*/\1\2/' || 0) | ||
| if [ ${openssl_version} -le 10 ]; then | ||
| echo "${TestName} test skipped: test cannot be run without openssl > 1.1x" | ||
| exit 77; | ||
| fi | ||
| } | ||
|
|
There was a problem hiding this comment.
You can just check the OPENSSL_VERSION in CMake and disable the test. Should be a lot easier.
if(OPENSSL_VERSION VERSION_LESS "1.1.0")
somehow_set_test_disabled()
endif()
83a29ef to
61a2913
Compare
|
reordering and commit sentences have been reviewed to enter into the 50cols. |
changes were addressed, but not approved by reviewer
- replace SSL_get_cipher_version as this return the protocol version where the cipher was created. OP 5327 Signed-off-by: Bruno Friedmann <bruno.friedmann@bareos.com>
- filed: add cipher line to FD-SD connection joblog - dird: sd add line return for joblog messages
Signed-off-by: Bruno Friedmann <bruno.friedmann@bareos.com>
- Add basic systemtest for restricted TLS Protocol and TLS Cipher List cmake check to disable if openssl < 1.1.1 Signed-off-by: Bruno Friedmann <bruno.friedmann@bareos.com>
Co-authored-by: Alaa Eddine Elamri <46047750+alaaeddineelamri@users.noreply.github.com>
Signed-off-by: Bruno Friedmann <bruno.friedmann@bareos.com>
f146ebb to
32cceb9
Compare
This PR will fix
Please check
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)
General
Separate commit for CHANGELOG.md ("update CHANGELOG.md"). The PR number is correct.Source code quality
bareos-check-sources --since-mergedoes not report any problemsTests