Commit Graph

110 Commits

Author SHA1 Message Date
Thomas Lamprecht
bede4e949c update proxmox-subscription to 0.5
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2024-11-10 19:11:14 +01:00
Thomas Lamprecht
ceadf4de50 update proxmox-notify to 0.5
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2024-11-10 19:10:58 +01:00
Lukas Wagner
9b0714c4ed pmg-rs: acme: simplify acount config saving
We already depend on proxmox_sys, so we can just use
`replace_file`. Fixing a clippy warning (missing
truncate setting for OpenOptions) is an added benefit.

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
2024-11-10 19:04:30 +01:00
Lukas Wagner
dc38e4736e pmg-rs: acme: clippy: reference is immediately deref'd by the compiler
Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
2024-11-10 19:04:30 +01:00
Lukas Wagner
b9e227eedb pmg-rs: tfa: clippy: useless conversion to the same type
Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
2024-11-10 19:04:30 +01:00
Lukas Wagner
1c3af08a37 pmg-rs: tfa: clippy: the borrowed expression implements the required traits
Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
2024-11-10 19:04:30 +01:00
Lukas Wagner
f4164a056a pmg-rs: tfa: clippy: this function has too many arguments
Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
2024-11-10 19:04:30 +01:00
Lukas Wagner
e3dd69e832 pmg-rs: tfa: clippy: question mark operator is useless here
Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
2024-11-10 19:04:30 +01:00
Lukas Wagner
3d28612fa8 pmg-rs: tfa: clippy: unnecessary pub(self)
Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
2024-11-10 19:04:30 +01:00
Wolfgang Bumiller
ae27b307b8 pve: fix use vs mod grouping
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2024-08-29 10:31:31 +02:00
Wolfgang Bumiller
a3e466af88 bump pmg-rs to 0.7.6
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2024-08-09 14:20:50 +02:00
Lukas Wagner
ea4d87816b cache: add bindings for SharedCache
This is a simple, cache implementation which can be accessed from
multiple processes. It also supports storing a range of historical
values.

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
[wb: also update pmg-rs/Cargo.toml and both d/control files]
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2024-08-09 13:21:01 +02:00
Fabian Grünbichler
9a91594ee6 update to proxmox-log 0.2
Reviewed-by: Lukas Wagner <l.wagner@proxmox.com>
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2024-08-06 14:13:31 +02:00
Wolfgang Bumiller
885830935c update to sys 0.6 and proxmox-log crate
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2024-07-17 12:44:46 +02:00
Lukas Wagner
6789b14986 pve-rs: common: send apt update notification via proxmox-notify
For PMG we for now only provide an empty stub and warn to syslog -
we need basic notification system integration there first.
On PMG, we still use a pure Perl implementation at the moment,
so this should not be an issue unless we change that.

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
2024-07-08 15:33:58 +02:00
Dietmar Maurer
89d9debadb perl-rs: add further apt api calls
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2024-07-08 15:33:57 +02:00
Dietmar Maurer
5c994bf942 perl-rs: use api functions from proxmox-apt
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2024-07-08 15:33:32 +02:00
Dietmar Maurer
9eda29d688 perl-rs: use proxmox-apt-api-types
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2024-07-08 15:33:29 +02:00
Wolfgang Bumiller
83427e9204 bump proxmox-tfa to 5.0
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2024-07-04 10:48:48 +02:00
Wolfgang Bumiller
61b2f69a45 bump proxmox-time to 2.0
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2024-06-20 14:11:34 +02:00
Fabian Grünbichler
c873ac57d5 build: adapt Makefile to moved cargo config
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2024-06-20 12:20:42 +02:00
Lukas Wagner
7e3ea35595 pve-rs: pmg-rs: move deprecated .cargo/config to .cargo/config.toml
Fixes the following new warning that appeared after switching
to rust 1.77:

warning: `proxmox-perl-rs/pve-rs/.cargo/config` is deprecated in
favor of `config.toml`

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
2024-06-20 12:19:01 +02:00
Fabian Grünbichler
a34b31054d build: force debug symbols in release build
they then get stripped into their own package anyway, but without this we don't
get debug symbols at all with rustc >= 1.77

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2024-06-20 10:09:19 +02:00
Wolfgang Bumiller
da068b1a47 pmg: add api-types feature of proxmox-acme
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2024-06-10 12:47:03 +02:00
Wolfgang Bumiller
d0633ac98e pve,pmg: bump proxmox-notify to 0.4
build fixes for pve follow

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2024-06-04 10:40:53 +02:00
Wolfgang Bumiller
2860777e61 buildsys improvements for generated files
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2024-06-03 14:00:03 +02:00
Wolfgang Bumiller
199be72401 pve,pmg: bump proxmox-notify dependency to 0.3.1
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2024-01-10 14:11:09 +01:00
Wolfgang Bumiller
d6df8340c5 pve, pmg: bump perlmod-bin to 0.3.0-3
fixes a syntax error in the generated pm file

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2024-01-02 14:20:12 +01:00
Wolfgang Bumiller
a5330e34d2 pmg: upgrade perlmod-bin dependency to 0.2
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2023-12-18 10:22:18 +01:00
Wolfgang Bumiller
fb5f1be6dc bump pmg-rs to 0.7.5
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2023-12-07 09:58:06 +01:00
Wolfgang Bumiller
86706cc049 pmg: load SslProbe in Proxmox/Lib/PMG.pm
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2023-12-07 09:56:05 +01:00
Wolfgang Bumiller
9525623c19 bump pmg-rs to 0.7.4
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2023-12-06 11:23:09 +01:00
Wolfgang Bumiller
089e555d51 fixate openssl-probe dependency, probe env vars in perl
This fixes an issue with `openssl-probe` calling `setenv` when (issued
via the `native-tls` crate with the ACME client) which crashes perl.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2023-12-06 11:21:25 +01:00
Wolfgang Bumiller
b9185327f4 update d/control
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2023-12-04 11:58:36 +01:00
Folke Gleumes
ce550d06e2 acme: add eab fields for pmg
Signed-off-by: Folke Gleumes <f.gleumes@proxmox.com>
2023-12-04 11:54:05 +01:00
Wolfgang Bumiller
5ac44c9fbb pmg: bump acme-rs to 0.5
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2023-12-04 11:54:05 +01:00
Thomas Lamprecht
61ab181b01 cargo: depend on notify 0.3
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-11-17 13:38:28 +01:00
Wolfgang Bumiller
a04d26b0d2 expose use_safe_putenv via Proxmox::Lib::PMG
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2023-10-09 08:47:23 +02:00
Wolfgang Bumiller
c8d4db7836 bump perlmod to 0.13.4 for use_safe_putenv
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2023-10-06 09:09:15 +02:00
Wolfgang Bumiller
e3bc763de4 pmg: switch acme to use magic
Instead of blessed raw pointers as these can easily lead to double
free corruptions when they're copied in perl.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2023-10-04 09:07:23 +02:00
Wolfgang Bumiller
e9c2ba606d pmg: buildsys: add notify related dependencies
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2023-10-04 09:07:23 +02:00
Fabian Grünbichler
4c6cc7e241 update to env_logger 0.10
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2023-10-03 10:00:27 +02:00
Wolfgang Bumiller
cd8984a954 buildsys: both: check crate vs debian version
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2023-07-05 13:50:17 +02:00
Wolfgang Bumiller
225b640f1f bump pmg-rs to 0.7.3
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2023-07-05 13:35:43 +02:00
Wolfgang Bumiller
e2c950bf4c pmg: bump d/control
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2023-07-05 11:03:08 +02:00
Wolfgang Bumiller
470849f974 pmg: reset tfa failure count on unlock
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2023-07-05 11:01:45 +02:00
Wolfgang Bumiller
06f325fd9d bump proxmox-tfa dependency to 4.0.4
This allows resetting the tfa failure counters on unlock.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2023-07-05 10:59:52 +02:00
Wolfgang Bumiller
3df4aecac0 bump pmg-rs to 0.7.2
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2023-06-27 16:01:55 +02:00
Wolfgang Bumiller
fdcdd326c3 pmg: enable tfa lockout
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2023-06-27 15:59:39 +02:00
Wolfgang Bumiller
aed1657598 pmg: add tfa_lock_status_query and api_unlock_tfa
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2023-06-27 15:59:14 +02:00