From 20947e78dead616791c83e118e853358b0a7e2a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Juli=C3=A1n=20Espina?= Date: Thu, 25 Jul 2024 10:36:46 -0600 Subject: [PATCH] fix: set `AuthAltTypes="auth/jwt" for jwt authentication This enables using `slurmrestd` to comunicate with `slurmdbd`. --- src/charm.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/charm.py b/src/charm.py index d2ee8f5..b9b3366 100755 --- a/src/charm.py +++ b/src/charm.py @@ -247,6 +247,7 @@ def _write_config_and_restart_slurmdbd( } if self._slurmctld.is_joined: + slurmdbd_full_config["AuthAltTypes"] = "auth/jwt" slurmdbd_full_config["AuthAltParameters"] = ( '"jwt_key=/var/spool/slurmdbd/jwt_hs256.key"' )