Skip to content
This repository has been archived by the owner on Aug 9, 2024. It is now read-only.

Commit

Permalink
fix: set `AuthAltTypes="auth/jwt" for jwt authentication
Browse files Browse the repository at this point in the history
This enables using `slurmrestd` to comunicate with `slurmdbd`.
  • Loading branch information
jedel1043 committed Jul 25, 2024
1 parent 43403eb commit 20947e7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"'
)
Expand Down

0 comments on commit 20947e7

Please sign in to comment.