public inbox for pbs-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pbs-devel] [PATCH proxmox 0/5] add proxmox-access crate
@ 2024-06-10 15:42 Shannon Sterz
  2024-06-10 15:42 ` [pbs-devel] [PATCH proxmox 1/5] access: add the proxmox-access crate to reuse acl trees Shannon Sterz
                   ` (6 more replies)
  0 siblings, 7 replies; 13+ messages in thread
From: Shannon Sterz @ 2024-06-10 15:42 UTC (permalink / raw)
  To: pbs-devel

the idea behind the `proxmox-access` crate is to enable us to easily
re-use the acl tree, user config and token shadow implementation of
proxmox backup server across multiple projects. this series factors out
the implementations from proxmox-backup's `pbs-config` crate.

to use this crate, a client simply needs to implement the `AcmConfig`
(Access Control Management Config) trait and providing a path to store
the configuration files in. for the cached configs, one also needs to
provide the product name and the location of the shared memory that will
be used to keep track of cache generations.

currently, i did not move proxmox-backup itself over to this crate, as
`pbs-config` has quite a few interdependencies within `proxmox-backup`
that would take some detangling. however, i can also get started on that
if desired.

proxmox:

Shannon Sterz (5):
  access: add the proxmox-access crate to reuse acl trees
  access: define shared `User`, `UserWithTokens` and `ApiTokens types
  access: make token shadow implementation re-usable
  access: factor out user config and cache handling
  access: increment user cache generation when saving acl config

 Cargo.toml                                 |    3 +
 proxmox-access/Cargo.toml                  |   30 +
 proxmox-access/src/acl.rs                  | 1008 ++++++++++++++++++++
 proxmox-access/src/cached_user_info.rs     |  242 +++++
 proxmox-access/src/config_version_cache.rs |  113 +++
 proxmox-access/src/init.rs                 |  139 +++
 proxmox-access/src/lib.rs                  |   11 +
 proxmox-access/src/token_shadow.rs         |   84 ++
 proxmox-access/src/types.rs                |  228 +++++
 proxmox-access/src/user.rs                 |  182 ++++
 10 files changed, 2040 insertions(+)
 create mode 100644 proxmox-access/Cargo.toml
 create mode 100644 proxmox-access/src/acl.rs
 create mode 100644 proxmox-access/src/cached_user_info.rs
 create mode 100644 proxmox-access/src/config_version_cache.rs
 create mode 100644 proxmox-access/src/init.rs
 create mode 100644 proxmox-access/src/lib.rs
 create mode 100644 proxmox-access/src/token_shadow.rs
 create mode 100644 proxmox-access/src/types.rs
 create mode 100644 proxmox-access/src/user.rs


Summary over all repositories:
  10 files changed, 2040 insertions(+), 0 deletions(-)

--
Generated by git-murpp 0.5.0


_______________________________________________
pbs-devel mailing list
pbs-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2024-06-13 12:54 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-10 15:42 [pbs-devel] [PATCH proxmox 0/5] add proxmox-access crate Shannon Sterz
2024-06-10 15:42 ` [pbs-devel] [PATCH proxmox 1/5] access: add the proxmox-access crate to reuse acl trees Shannon Sterz
2024-06-11 12:53   ` Wolfgang Bumiller
2024-06-10 15:42 ` [pbs-devel] [PATCH proxmox 2/5] access: define shared `User`, `UserWithTokens` and `ApiTokens types Shannon Sterz
2024-06-11 12:51   ` Wolfgang Bumiller
2024-06-10 15:42 ` [pbs-devel] [PATCH proxmox 3/5] access: make token shadow implementation re-usable Shannon Sterz
2024-06-10 15:42 ` [pbs-devel] [PATCH proxmox 4/5] access: factor out user config and cache handling Shannon Sterz
2024-06-11 13:07   ` Wolfgang Bumiller
2024-06-11 14:30     ` Shannon Sterz
2024-06-12 12:49       ` Wolfgang Bumiller
2024-06-10 15:42 ` [pbs-devel] [PATCH proxmox 5/5] access: increment user cache generation when saving acl config Shannon Sterz
2024-06-11 17:28 ` [pbs-devel] [PATCH proxmox 0/5] add proxmox-access crate Thomas Lamprecht
2024-06-13 12:54 ` Shannon Sterz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal