[pdm-devel] [PATCH datacenter-manager v3 1/3] server/api-types: move AccessControlConfig to shared api types
Shannon Sterz
s.sterz at proxmox.com
Thu Nov 13 11:23:55 CET 2025
On Thu Nov 13, 2025 at 11:15 AM CET, Lukas Wagner wrote:
> On Thu Nov 6, 2025 at 3:38 PM CET, Shannon Sterz wrote:
>> this doesn't really contain any information that is secret. moving it
>> to the shared api types allows re-using it in the ui to check what
>> privileges a user needs to access certain features.
>>
>
> I'm not sure if pdm-api-types is the correct place for this, since it
> does not really contain any... well... API types, as far as I can tell
> :)
>
> Maybe this should be in `lib/pdm-ui-shared` or it's own small
> micro-crate under `lib/`? What do you think?
well my thinking was that we already define all privileges and roles
here. keeping all of that in one place made sense to me, especially
because roles and privileges aren't "types" in the traditional sense,
but rather constants. so if we move that out, i'd like to move the roles
and privileges etc. too. but i have no hard feelings on whether these
stay here or get moved somewhere else and re-exported here.
More information about the pdm-devel
mailing list