From: "Shannon Sterz" <s.sterz@proxmox.com>
To: "Fabian Grünbichler" <f.gruenbichler@proxmox.com>
Cc: Proxmox Datacenter Manager development discussion
<pdm-devel@lists.proxmox.com>
Subject: Re: [pdm-devel] [PATCH datacenter-manager/yew-comp 0/8] openid support for PDM
Date: Fri, 17 Oct 2025 16:36:02 +0200 [thread overview]
Message-ID: <DDKO891F92MN.3IY3HME4B3SO0@proxmox.com> (raw)
In-Reply-To: <1760687955.r4ebnztngk.astroid@yuna.none>
On Fri Oct 17, 2025 at 10:01 AM CEST, Fabian Grünbichler wrote:
> On October 14, 2025 3:30 pm, Shannon Sterz wrote:
>> this series adds openid support to PDM. the implementation is based on
>> PBS' implementation with a some adaptions:
>>
>> - smaller refactorings to use more data types instead of simply putting
>> them together with serde_json::json!
>> - move variables into format strings where possible
>> - only support the HttpOnly variant of the authentication flow
>>
>> when going through this i at first wanted to put most of the api
>> endpoints' logic into a proxmox-rs crate. however, i decided against
>> that as that would have created a couple of other problems. i'll outline
>> different options below and why i decided against them:
>>
>> - access-control: the login endpoint needs to be able to sign a ticket.
>> currently access-control does not have access to the keyring that
>> would be necessary for that. the keyring is available in auth-api, but
>> making it public there has possible other downsides. such as suddenly
>> making it very hard to audit which parts of our code have access to
>> the keyring through auth-api.
>
> the keyring is technically public there already (else PDM couldn't sign
> tickets using it as below ;)) - so I would not object in principle to
> also using it in access-control, it's not like that is some random crate
> that has no business being concerned with that.
>
> I do get the point (raised off-list) that access-control parts could be
> used in the front-end as well, but that can be solved by either
> splitting it further or using feature guards where appropriate..
>
> the main benefit of having this in access-control would be at some point
> migrating PBS over as well, but that will surely cause more churn
> anyway, so as long as it is kept in mind that there is code duplication
> there (which is true for the whole auth stack anyway), it's not
> something that needs to be solved now IMHO.
>
hm in that case i'd leave these api endpoints where they are for now and
would focus on factoring out more parts of the realm management + these
api endpoints into access-control later.
_______________________________________________
pdm-devel mailing list
pdm-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pdm-devel
next prev parent reply other threads:[~2025-10-17 14:35 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-14 13:30 Shannon Sterz
2025-10-14 13:30 ` [pdm-devel] [PATCH yew-comp 1/5] login_panel/realm_selector: use default realm provided by api Shannon Sterz
2025-10-14 13:30 ` [pdm-devel] [PATCH yew-comp 2/5] login_panel/realm_selector: add support for openid realm logins Shannon Sterz
2025-10-14 13:30 ` [pdm-devel] [PATCH yew-comp 3/5] auth view: add openid icon to openid menu option Shannon Sterz
2025-10-14 13:30 ` [pdm-devel] [PATCH yew-comp 4/5] auth edit openid: add a default realm checkbox Shannon Sterz
2025-10-14 13:30 ` [pdm-devel] [PATCH yew-comp 5/5] utils/login panel: move openid redirection authorization helper to utils Shannon Sterz
2025-10-14 13:30 ` [pdm-devel] [PATCH datacenter-manager 1/3] api-types: add default field to openid realm config Shannon Sterz
2025-10-14 13:30 ` [pdm-devel] [PATCH datacenter-manager 2/3] server: api: add support for adding openid realms and openid logins Shannon Sterz
2025-10-17 7:57 ` Fabian Grünbichler
2025-10-17 13:36 ` Shannon Sterz
2025-10-14 13:30 ` [pdm-devel] [PATCH datacenter-manager 3/3] ui: enable openid realms in realm panel Shannon Sterz
2025-10-17 8:01 ` [pdm-devel] [PATCH datacenter-manager/yew-comp 0/8] openid support for PDM Fabian Grünbichler
2025-10-17 14:36 ` Shannon Sterz [this message]
2025-10-17 14:13 ` [pdm-devel] Superseded: " Shannon Sterz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=DDKO891F92MN.3IY3HME4B3SO0@proxmox.com \
--to=s.sterz@proxmox.com \
--cc=f.gruenbichler@proxmox.com \
--cc=pdm-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox