From 7dc933b74187e974dd774aa1fbaa55bfe4abe8f3 Mon Sep 17 00:00:00 2001 From: Bojan Serafimov Date: Tue, 1 Feb 2022 12:36:32 -0500 Subject: [PATCH] Fix decoding --- proxy/src/db.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/src/db.rs b/proxy/src/db.rs index 0491c3668b..c23d086561 100644 --- a/proxy/src/db.rs +++ b/proxy/src/db.rs @@ -42,7 +42,7 @@ impl From for tokio_postgres::Config { match auth_info.auth_secret { AuthSecret::Scram(scram_secret) => { config.add_scram_key( - scram_secret.salt_base64.into_bytes(), // TODO test this + base64::decode(scram_secret.salt_base64).unwrap(), scram_secret.iterations, scram_secret.client_key.bytes.to_vec(), scram_secret.server_key.bytes.to_vec(),