Skip to content

Commit 8073ebf

Browse files
committed
Feature: libcrmcommon: Deprecate anonymous authentication.
This is an insecure authentication method where we an encrypted TLS channel for communication, but there's no authentication on the channel beyond that. Well, that's not completely true - for remote CIB operations, you do still need a username and password. However, the username is always the same so that's easy for people to figure out. Instead, people should be using X509 certificates or PSK. A future release will remove support for anonymous authentication and require use of one of those other mechanisms. Fixes T961
1 parent 4c9ee77 commit 8073ebf

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

lib/common/tls.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,10 @@ pcmk__init_tls(pcmk__tls_t **tls, bool server, bool have_psk)
182182
(*tls)->server = server;
183183

184184
if ((*tls)->cred_type == GNUTLS_CRD_ANON) {
185+
pcmk__warn("Using anonymous authentication. This is insecure and will "
186+
"be removed in a future release. Use PSK or X509 certificates "
187+
"instead.");
188+
185189
if (server) {
186190
gnutls_anon_allocate_server_credentials(&(*tls)->credentials.anon_s);
187191
gnutls_anon_set_server_dh_params((*tls)->credentials.anon_s,

0 commit comments

Comments
 (0)