Skip to content

Fix issue 1192: Authorization key rejected by Storage daemon since upgrading director and storage daemons#431

Merged
arogge merged 2 commits intobareos:masterfrom
arogge:dev/arogge/master/fix-1192
Feb 27, 2020
Merged

Fix issue 1192: Authorization key rejected by Storage daemon since upgrading director and storage daemons#431
arogge merged 2 commits intobareos:masterfrom
arogge:dev/arogge/master/fix-1192

Conversation

@arogge
Copy link
Member

@arogge arogge commented Feb 25, 2020

Bug bareos#1192: Authorization key rejected by Storage daemon since upgrading
director and storage daemons

This test runs a set of backups on a client with TLS disabled. This
triggers a problem in the SD where the authentication of an unencrypted
FD will fail sometimes.
Fixes bareos#1192: Authorization key rejected by Storage daemon since
upgrading director and storage daemons

Previously the sd_tls_policy member of the JCR in the sd was not
initialized properly. By using the uninitialized value, the SD may
close a valid non-TLS connection which eventually leads to a failing
job.
This patch initializes sd_tls_policy to kBnetTlsNone (0) which lets the
SD accept every connection on a job that was not configured otherwise by
the director.
@arogge arogge force-pushed the dev/arogge/master/fix-1192 branch from 7008bdb to 884a31e Compare February 25, 2020 14:00
@franku
Copy link
Contributor

franku commented Feb 26, 2020

Very good you found that!

@arogge arogge merged commit 63ba1f5 into bareos:master Feb 27, 2020
@arogge arogge deleted the dev/arogge/master/fix-1192 branch August 10, 2020 08:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants