]> git.proxmox.com Git - proxmox-perl-rs.git/log
proxmox-perl-rs.git
2 weeks agopve: fix use vs mod grouping master
Wolfgang Bumiller [Thu, 29 Aug 2024 08:30:20 +0000 (10:30 +0200)]
pve: fix use vs mod grouping

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
5 weeks agobump common to 0.3.4
Wolfgang Bumiller [Fri, 9 Aug 2024 12:22:00 +0000 (14:22 +0200)]
bump common to 0.3.4

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
5 weeks agobump pmg-rs to 0.7.6
Wolfgang Bumiller [Fri, 9 Aug 2024 12:20:50 +0000 (14:20 +0200)]
bump pmg-rs to 0.7.6

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
5 weeks agopve: bump version to 0.8.10
Wolfgang Bumiller [Fri, 9 Aug 2024 11:46:22 +0000 (13:46 +0200)]
pve: bump version to 0.8.10

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
5 weeks agocache: add bindings for `SharedCache`
Lukas Wagner [Tue, 6 Aug 2024 12:59:57 +0000 (14:59 +0200)]
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>
6 weeks agoupdate to proxmox-log 0.2
Fabian Grünbichler [Thu, 25 Jul 2024 10:56:06 +0000 (12:56 +0200)]
update to proxmox-log 0.2

Reviewed-by: Lukas Wagner <l.wagner@proxmox.com>
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 months agoupdate to sys 0.6 and proxmox-log crate
Wolfgang Bumiller [Wed, 17 Jul 2024 10:44:46 +0000 (12:44 +0200)]
update to sys 0.6 and proxmox-log crate

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 months agoapt: minor parameter cleanup
Wolfgang Bumiller [Mon, 8 Jul 2024 12:06:26 +0000 (14:06 +0200)]
apt: minor parameter cleanup

We cannot use &[&str] - since this would be a poitner to a `[&str]`
data structure, that's not how perl stores strings.
But we *can* use Vec<&str> - here, the Vec will be allocated, but the
contents will borrow. We don't need to transform this afterwards.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 months agopve-rs: common: send apt update notification via proxmox-notify
Lukas Wagner [Wed, 3 Jul 2024 10:41:33 +0000 (12:41 +0200)]
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>
2 months agoperl-rs: add further apt api calls
Dietmar Maurer [Tue, 2 Jul 2024 12:15:04 +0000 (14:15 +0200)]
perl-rs: add further apt api calls

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2 months agoperl-rs: use api functions from proxmox-apt
Dietmar Maurer [Tue, 2 Jul 2024 09:55:24 +0000 (11:55 +0200)]
perl-rs: use api functions from proxmox-apt

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2 months agoperl-rs: use proxmox-apt-api-types
Dietmar Maurer [Mon, 1 Jul 2024 11:45:50 +0000 (13:45 +0200)]
perl-rs: use proxmox-apt-api-types

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2 months agobump proxmox-tfa to 5.0
Wolfgang Bumiller [Thu, 4 Jul 2024 08:48:48 +0000 (10:48 +0200)]
bump proxmox-tfa to 5.0

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 months agobump proxmox-time to 2.0
Wolfgang Bumiller [Thu, 20 Jun 2024 12:11:11 +0000 (14:11 +0200)]
bump proxmox-time to 2.0

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 months agobuild: adapt Makefile to moved cargo config
Fabian Grünbichler [Thu, 20 Jun 2024 10:20:42 +0000 (12:20 +0200)]
build: adapt Makefile to moved cargo config

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 months agopve-rs: pmg-rs: move deprecated .cargo/config to .cargo/config.toml
Lukas Wagner [Thu, 20 Jun 2024 08:59:11 +0000 (10:59 +0200)]
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>
2 months agobuild: force debug symbols in release build
Fabian Grünbichler [Thu, 20 Jun 2024 08:09:19 +0000 (10:09 +0200)]
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>
3 months agopmg: add api-types feature of proxmox-acme
Wolfgang Bumiller [Mon, 10 Jun 2024 10:46:37 +0000 (12:46 +0200)]
pmg: add api-types feature of proxmox-acme

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 months agopve: bump version to 0.8.9
Wolfgang Bumiller [Tue, 4 Jun 2024 09:01:09 +0000 (11:01 +0200)]
pve: bump version to 0.8.9

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 months agopve: the notify chagnes now break libpve-notify-perl <<8.0.7
Wolfgang Bumiller [Tue, 4 Jun 2024 08:04:06 +0000 (10:04 +0200)]
pve: the notify chagnes now break libpve-notify-perl <<8.0.7

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 months agonotify: adapt to Option<Vec<T>> to Vec<T> changes in proxmox_notify
Lukas Wagner [Tue, 21 May 2024 13:31:43 +0000 (15:31 +0200)]
notify: adapt to Option<Vec<T>> to Vec<T> changes in proxmox_notify

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
Tested-by: Max Carrara <m.carrara@proxmox.com>
Reviewed-by: Max Carrara <m.carrara@proxmox.com>
3 months agonotify: don't pass config structs by reference
Lukas Wagner [Tue, 21 May 2024 13:31:42 +0000 (15:31 +0200)]
notify: don't pass config structs by reference

proxmox_notify's api functions have been changed so that they take
ownership of config structs.

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
Tested-by: Max Carrara <m.carrara@proxmox.com>
Reviewed-by: Max Carrara <m.carrara@proxmox.com>
3 months agonotify: use file based notification templates
Lukas Wagner [Tue, 21 May 2024 13:31:41 +0000 (15:31 +0200)]
notify: use file based notification templates

Instead of passing literal template strings to the notification
system, we now only pass an identifier. This identifier will be used
load the template files from a product-specific directory.

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
Tested-by: Max Carrara <m.carrara@proxmox.com>
Reviewed-by: Max Carrara <m.carrara@proxmox.com>
3 months agopve,pmg: bump proxmox-notify to 0.4
Wolfgang Bumiller [Mon, 3 Jun 2024 12:14:59 +0000 (14:14 +0200)]
pve,pmg: bump proxmox-notify to 0.4

build fixes for pve follow

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 months agoremove old toplevel Makefile
Wolfgang Bumiller [Mon, 3 Jun 2024 12:25:34 +0000 (14:25 +0200)]
remove old toplevel Makefile

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 months agoremove old rustfmt.toml
Wolfgang Bumiller [Mon, 3 Jun 2024 12:25:29 +0000 (14:25 +0200)]
remove old rustfmt.toml

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 months agobuildsys improvements for generated files
Wolfgang Bumiller [Mon, 3 Jun 2024 11:55:37 +0000 (13:55 +0200)]
buildsys improvements for generated files

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 months agocommon: cleanup Proxmox/RS in make clean
Wolfgang Bumiller [Mon, 3 Jun 2024 11:25:32 +0000 (13:25 +0200)]
common: cleanup Proxmox/RS in make clean

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
8 months agopve: bump version to 0.8.8
Wolfgang Bumiller [Wed, 10 Jan 2024 13:20:00 +0000 (14:20 +0100)]
pve: bump version to 0.8.8

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
8 months agopve,pmg: bump proxmox-notify dependency to 0.3.1
Wolfgang Bumiller [Wed, 10 Jan 2024 13:11:09 +0000 (14:11 +0100)]
pve,pmg: bump proxmox-notify dependency to 0.3.1

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
8 months agopve, pmg: bump perlmod-bin to 0.3.0-3
Wolfgang Bumiller [Tue, 2 Jan 2024 13:20:12 +0000 (14:20 +0100)]
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>
9 months agopve: update testcase PVE.pm with fixed library path
Wolfgang Bumiller [Mon, 18 Dec 2023 09:39:30 +0000 (10:39 +0100)]
pve: update testcase PVE.pm with fixed library path

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
9 months agopmg: upgrade perlmod-bin dependency to 0.2
Wolfgang Bumiller [Mon, 18 Dec 2023 09:22:05 +0000 (10:22 +0100)]
pmg: upgrade perlmod-bin dependency to 0.2

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
9 months agopve: upgrade perlmod-bin dependency to 0.2
Wolfgang Bumiller [Mon, 18 Dec 2023 09:20:58 +0000 (10:20 +0100)]
pve: upgrade perlmod-bin dependency to 0.2

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
9 months agopve: build fix
Wolfgang Bumiller [Mon, 18 Dec 2023 09:18:46 +0000 (10:18 +0100)]
pve: build fix

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
9 months agobump pmg-rs to 0.7.5
Wolfgang Bumiller [Thu, 7 Dec 2023 08:52:06 +0000 (09:52 +0100)]
bump pmg-rs to 0.7.5

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
9 months agobump common to 0.3.3
Wolfgang Bumiller [Thu, 7 Dec 2023 08:42:59 +0000 (09:42 +0100)]
bump common to 0.3.3

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
9 months agopve: load SslProbe in Proxmox/Lib/PVE.pm
Wolfgang Bumiller [Thu, 7 Dec 2023 08:51:02 +0000 (09:51 +0100)]
pve: load SslProbe in Proxmox/Lib/PVE.pm

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
9 months agopmg: load SslProbe in Proxmox/Lib/PMG.pm
Wolfgang Bumiller [Thu, 7 Dec 2023 08:42:16 +0000 (09:42 +0100)]
pmg: load SslProbe in Proxmox/Lib/PMG.pm

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
9 months agocommon: move probe into a new SslProbe package
Wolfgang Bumiller [Thu, 7 Dec 2023 08:10:59 +0000 (09:10 +0100)]
common: move probe into a new SslProbe package

Because Proxmox::Lib::Common isn't actually `use`d by most packages.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
9 months agobump common to 0.3.2
Wolfgang Bumiller [Tue, 5 Dec 2023 09:46:52 +0000 (10:46 +0100)]
bump common to 0.3.2

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
9 months agobump pmg-rs to 0.7.4
Wolfgang Bumiller [Mon, 4 Dec 2023 08:36:27 +0000 (09:36 +0100)]
bump pmg-rs to 0.7.4

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
9 months agofixate openssl-probe dependency, probe env vars in perl
Wolfgang Bumiller [Wed, 6 Dec 2023 10:19:30 +0000 (11:19 +0100)]
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>
9 months agoupdate d/control
Wolfgang Bumiller [Mon, 4 Dec 2023 10:58:31 +0000 (11:58 +0100)]
update d/control

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
9 months agoacme: add eab fields for pmg
Folke Gleumes [Tue, 14 Nov 2023 14:14:05 +0000 (15:14 +0100)]
acme: add eab fields for pmg

Signed-off-by: Folke Gleumes <f.gleumes@proxmox.com>
9 months agopmg: bump acme-rs to 0.5
Wolfgang Bumiller [Mon, 4 Dec 2023 09:26:42 +0000 (10:26 +0100)]
pmg: bump acme-rs to 0.5

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
10 months agopve: bump version to 0.8.7
Thomas Lamprecht [Fri, 17 Nov 2023 12:41:34 +0000 (13:41 +0100)]
pve: bump version to 0.8.7

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
10 months agocargo: depend on notify 0.3
Thomas Lamprecht [Fri, 17 Nov 2023 12:37:51 +0000 (13:37 +0100)]
cargo: depend on notify 0.3

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
10 months agonotify: support 'origin' paramter
Lukas Wagner [Tue, 14 Nov 2023 12:59:28 +0000 (13:59 +0100)]
notify: support 'origin' paramter

This parameter shows the origin of a config entry (builtin,
user-created, modified-builtin)

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
10 months agonotify: add 'disable' parameter
Lukas Wagner [Tue, 14 Nov 2023 12:59:27 +0000 (13:59 +0100)]
notify: add 'disable' parameter

This parameter disables a matcher/a target.

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
10 months agopve-rs: notify: remove notify_context for PVE
Lukas Wagner [Tue, 14 Nov 2023 12:59:26 +0000 (13:59 +0100)]
pve-rs: notify: remove notify_context for PVE

The context has now been moved to `proxmox-notify` due to the fact
that we also need it in `proxmox-mail-forward` now.

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
10 months agonotify: add bindings for smtp API calls
Lukas Wagner [Tue, 14 Nov 2023 12:59:25 +0000 (13:59 +0100)]
notify: add bindings for smtp API calls

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
10 months agonotify: adapt to new matcher-based notification routing
Lukas Wagner [Tue, 14 Nov 2023 12:59:24 +0000 (13:59 +0100)]
notify: adapt to new matcher-based notification routing

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
10 months agopve: test: resource scheduling: add another test where memory is secondary to CPU
Fiona Ebner [Tue, 21 Mar 2023 16:44:52 +0000 (17:44 +0100)]
pve: test: resource scheduling: add another test where memory is secondary to CPU

but this time, without any start load on the node. This test fails
with librust-proxmox-resource-scheduling-dev=0.2.0-1

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
10 months agopve: test: resource scheduling: add test where memory is secondary to CPU
Fiona Ebner [Tue, 21 Mar 2023 16:44:51 +0000 (17:44 +0100)]
pve: test: resource scheduling: add test where memory is secondary to CPU

because memory usage differences are small.

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
11 months agoexpose use_safe_putenv via Proxmox::Lib::PMG
Wolfgang Bumiller [Fri, 6 Oct 2023 07:09:36 +0000 (09:09 +0200)]
expose use_safe_putenv via Proxmox::Lib::PMG

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
11 months agobump perlmod to 0.13.4 for use_safe_putenv
Wolfgang Bumiller [Fri, 6 Oct 2023 07:09:15 +0000 (09:09 +0200)]
bump perlmod to 0.13.4 for use_safe_putenv

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
11 months agopve: switch openid to use magic
Wolfgang Bumiller [Wed, 4 Oct 2023 07:09:44 +0000 (09:09 +0200)]
pve: switch openid 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>
11 months agopmg: switch acme to use magic
Wolfgang Bumiller [Wed, 4 Oct 2023 07:03:28 +0000 (09:03 +0200)]
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>
11 months agopmg: buildsys: add notify related dependencies
Wolfgang Bumiller [Wed, 4 Oct 2023 07:06:37 +0000 (09:06 +0200)]
pmg: buildsys: add notify related dependencies

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
11 months agoupdate to env_logger 0.10
Fabian Grünbichler [Tue, 3 Oct 2023 07:59:58 +0000 (09:59 +0200)]
update to env_logger 0.10

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
11 months agonotify context: fix 'default_sendmail_from' context method
Lukas Wagner [Mon, 2 Oct 2023 07:40:49 +0000 (09:40 +0200)]
notify context: fix 'default_sendmail_from' context method

The name of the configuration option in datacenter.cfg is `email_from`
and not `mail_from`.

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
12 months agobump version to 0.8.6
Thomas Lamprecht [Tue, 5 Sep 2023 14:32:45 +0000 (16:32 +0200)]
bump version to 0.8.6

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
13 months agobump d/control
Wolfgang Bumiller [Fri, 28 Jul 2023 09:50:54 +0000 (11:50 +0200)]
bump d/control

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
13 months agobump notify dependency
Wolfgang Bumiller [Fri, 28 Jul 2023 09:51:23 +0000 (11:51 +0200)]
bump notify dependency

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
13 months agonotify: use new HttpError type
Lukas Wagner [Wed, 26 Jul 2023 14:18:24 +0000 (16:18 +0200)]
notify: use new HttpError type

Use `proxmox-http-error::HttpError` instead of
`proxmox-notify::api::ApiError`.

Also factoring out the digest decoding into a small helper.

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
13 months agobump common to 0.3.1
Wolfgang Bumiller [Mon, 24 Jul 2023 12:02:32 +0000 (14:02 +0200)]
bump common to 0.3.1

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
13 months agocommon: bump pve-rs dep to 0.8.5 for Proxmox::RS::Notify
Wolfgang Bumiller [Mon, 24 Jul 2023 12:08:13 +0000 (14:08 +0200)]
common: bump pve-rs dep to 0.8.5 for Proxmox::RS::Notify

Note: this is more of a soft requirement, since as long as the Notify
module isn't loaded we don't need the latest version.
This is important to keep in mind since we do not currently have a
`pmg-rs` notify `Context` implementation and thus cannot depend on a
newer `pmg-rs`. However, as long as pmg code doesn't try to *use* the
Notify module, this won't be a problem.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
13 months agobump pve-rs to 0.8.5
Wolfgang Bumiller [Mon, 24 Jul 2023 12:01:29 +0000 (14:01 +0200)]
bump pve-rs to 0.8.5

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
13 months agoremove leftover PVE::RS::Notify module
Wolfgang Bumiller [Mon, 24 Jul 2023 12:01:23 +0000 (14:01 +0200)]
remove leftover PVE::RS::Notify module

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
13 months agonotify: rename PVE::RS::Notify to Proxmox::RS::Notify
Lukas Wagner [Mon, 24 Jul 2023 11:26:57 +0000 (13:26 +0200)]
notify: rename PVE::RS::Notify to Proxmox::RS::Notify

Also splitting PVE-specific context into its own file.

Suggested-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
13 months agonotify: add wrapper for `get_referenced_entities`
Lukas Wagner [Thu, 20 Jul 2023 14:32:02 +0000 (16:32 +0200)]
notify: add wrapper for `get_referenced_entities`

The function returns all other entities referenced by a filter/target.
This is useful for permission checks, where the user must have the
appropriate permissions for all entities.

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
13 months agonotify: add context for getting http_proxy from datacenter.cfg
Lukas Wagner [Thu, 20 Jul 2023 14:32:01 +0000 (16:32 +0200)]
notify: add context for getting http_proxy from datacenter.cfg

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
13 months agonotify: implement context for getting default author/mailfrom
Lukas Wagner [Thu, 20 Jul 2023 14:32:00 +0000 (16:32 +0200)]
notify: implement context for getting default author/mailfrom

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
13 months agonotify: sendmail: support the `mailto-user` parameter
Lukas Wagner [Thu, 20 Jul 2023 14:31:59 +0000 (16:31 +0200)]
notify: sendmail: support the `mailto-user` parameter

This parameter allows to send mails to the email address configured
for users from the product's user database.

`proxmox-notify` now has a `Context` that must be set via
`proxmox_notify::context::set_context` before the crate is used.

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
13 months agonotify: add api for notification filters
Lukas Wagner [Thu, 20 Jul 2023 14:31:58 +0000 (16:31 +0200)]
notify: add api for notification filters

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
13 months agonotify: add api for gotify endpoints
Lukas Wagner [Thu, 20 Jul 2023 14:31:57 +0000 (16:31 +0200)]
notify: add api for gotify endpoints

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
13 months agonotify: add api for sendmail endpoints
Lukas Wagner [Thu, 20 Jul 2023 14:31:56 +0000 (16:31 +0200)]
notify: add api for sendmail endpoints

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
13 months agonotify: add api for notification groups
Lukas Wagner [Thu, 20 Jul 2023 14:31:55 +0000 (16:31 +0200)]
notify: add api for notification groups

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
13 months agonotify: add api for sending notifications/testing endpoints
Lukas Wagner [Thu, 20 Jul 2023 14:31:54 +0000 (16:31 +0200)]
notify: add api for sending notifications/testing endpoints

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
13 months agoadd PVE::RS::Notify module
Lukas Wagner [Thu, 20 Jul 2023 14:31:53 +0000 (16:31 +0200)]
add PVE::RS::Notify module

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
14 months agobuildsys: both: check crate vs debian version
Wolfgang Bumiller [Wed, 5 Jul 2023 11:44:48 +0000 (13:44 +0200)]
buildsys: both: check crate vs debian version

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
14 months agobump pmg-rs to 0.7.3
Wolfgang Bumiller [Wed, 5 Jul 2023 11:35:43 +0000 (13:35 +0200)]
bump pmg-rs to 0.7.3

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
14 months agobump pve-rs to 0.8.4
Wolfgang Bumiller [Wed, 5 Jul 2023 11:30:27 +0000 (13:30 +0200)]
bump pve-rs to 0.8.4

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
14 months agopmg: bump d/control
Wolfgang Bumiller [Wed, 5 Jul 2023 09:03:08 +0000 (11:03 +0200)]
pmg: bump d/control

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
14 months agopve: bump d/control
Wolfgang Bumiller [Wed, 5 Jul 2023 09:02:40 +0000 (11:02 +0200)]
pve: bump d/control

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
14 months agopmg: reset tfa failure count on unlock
Wolfgang Bumiller [Wed, 5 Jul 2023 09:01:45 +0000 (11:01 +0200)]
pmg: reset tfa failure count on unlock

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
14 months agopve: reset tfa failure count on unlock
Wolfgang Bumiller [Wed, 5 Jul 2023 09:01:36 +0000 (11:01 +0200)]
pve: reset tfa failure count on unlock

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
14 months agobump proxmox-tfa dependency to 4.0.4
Wolfgang Bumiller [Wed, 5 Jul 2023 08:59:52 +0000 (10:59 +0200)]
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>
14 months agobump pmg-rs to 0.7.2
Wolfgang Bumiller [Tue, 27 Jun 2023 14:01:55 +0000 (16:01 +0200)]
bump pmg-rs to 0.7.2

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
14 months agopmg: enable tfa lockout
Wolfgang Bumiller [Tue, 27 Jun 2023 13:59:39 +0000 (15:59 +0200)]
pmg: enable tfa lockout

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
14 months agopmg: add tfa_lock_status_query and api_unlock_tfa
Wolfgang Bumiller [Tue, 27 Jun 2023 13:58:50 +0000 (15:58 +0200)]
pmg: add tfa_lock_status_query and api_unlock_tfa

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
14 months agopmg: bump proxmox-tfa to 4.0.2
Wolfgang Bumiller [Tue, 27 Jun 2023 13:55:36 +0000 (15:55 +0200)]
pmg: bump proxmox-tfa to 4.0.2

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
15 months agobump pve-rs to 0.8.3
Wolfgang Bumiller [Mon, 5 Jun 2023 10:55:12 +0000 (12:55 +0200)]
bump pve-rs to 0.8.3

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
15 months agobump proxmox-tfa dep to 4.0.2
Wolfgang Bumiller [Mon, 5 Jun 2023 10:53:22 +0000 (12:53 +0200)]
bump proxmox-tfa dep to 4.0.2

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
15 months agopve: add tfa_lock_status query sub
Wolfgang Bumiller [Fri, 2 Jun 2023 13:05:22 +0000 (15:05 +0200)]
pve: add tfa_lock_status query sub

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
15 months agolog: set default log level to 'info', add product specific logging env var
Lukas Wagner [Wed, 24 May 2023 13:56:25 +0000 (15:56 +0200)]
log: set default log level to 'info', add product specific logging env var

Logging behaviour can be overridden by the {PMG,PVE}_LOG environment
variable.

This commit also disables styled output and  timestamps in log messages,
since we usually log to the journal anyway. The log output is configured
to match with other log messages in task logs.

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
15 months agopve: bump version to 0.8.2
Thomas Lamprecht [Sun, 4 Jun 2023 16:34:02 +0000 (18:34 +0200)]
pve: bump version to 0.8.2

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
15 months agobump pve-rs to 0.8.1
Wolfgang Bumiller [Wed, 31 May 2023 12:18:13 +0000 (14:18 +0200)]
bump pve-rs to 0.8.1

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
15 months agopve: enable tfa lockout, add api_unlock_tfa method
Wolfgang Bumiller [Fri, 26 May 2023 10:19:55 +0000 (12:19 +0200)]
pve: enable tfa lockout, add api_unlock_tfa method

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>