[pmg-devel] [PATCH pmg-api 0/3] rename realms.cfg to realms.conf

Stoiko Ivanov s.ivanov at proxmox.com
Wed Feb 26 18:37:34 CET 2025


this series  is based on Markus' v8 for OIDC:
https://lore.proxmox.com/pmg-devel/20250226140740.55612-1-m.frank@proxmox.com/T/#t

it addresses the naming of realms.cfg vs. realms.conf
additionally I moved the part of the schema definitions to Auth::Plugin,
in order to not have a cyclical include.

the third patch adds realms conf to the cluster sync.
(backup already contains everything in /etc/pmg anyways - so no special
consideration needed).

tested by installing this on 2 nodes in the cluster, and logging in
via keycloak on the non-master node)

Stoiko Ivanov (3):
  auth: plugin: move schema definitions from Utils to Auth::Plugin
  access control: rename realms.cfg to realms.conf
  cluster: add realms.conf to config-sync

 src/PMG/API2/AuthRealm.pm | 16 ++++++++--------
 src/PMG/API2/OIDC.pm      |  5 +++--
 src/PMG/AccessControl.pm  |  4 ++--
 src/PMG/Auth/Plugin.pm    | 30 ++++++++++++++++++++++++------
 src/PMG/Cluster.pm        |  1 +
 src/PMG/Utils.pm          | 21 ++-------------------
 6 files changed, 40 insertions(+), 37 deletions(-)

-- 
2.39.5





More information about the pmg-devel mailing list