Commit Graph

40 Commits

Author SHA1 Message Date
Thomas Lamprecht
f4868ff519 tree-wide: check in d/control meta changes for newer debcargo
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2024-11-26 14:44:33 +01:00
Wolfgang Bumiller
d6e86d670b tree-wide: unify workspace inherited attributes
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2024-09-20 08:42:45 +02:00
Wolfgang Bumiller
420285ea8c acme-api: bump to 0.1.6-1
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2024-09-05 14:15:11 +02:00
Wolfgang Bumiller
f94dc5b0a3 acme-api: bump to 0.1.5-1
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2024-08-14 11:36:32 +02:00
Maximiliano Sandoval
358bb76960 acme-api: remove unused dependencies
Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
2024-08-14 11:35:45 +02:00
Maximiliano Sandoval
9530b75286 acme-api: remove lazy_static dependency
Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
2024-08-14 10:33:42 +02:00
Wolfgang Bumiller
4502bc3b73 acme-api: bump to 0.1.4-1
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2024-07-24 14:33:36 +02:00
Wolfgang Bumiller
e294d74026 acme-api: bump to 0.1.3-1
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2024-07-11 15:25:25 +02:00
Wolfgang Bumiller
cbc30882e7 acme-api: adapt to tracing infrastructure
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2024-07-11 14:43:37 +02:00
Wolfgang Bumiller
0652d81977 tree-wide: enable doc_cfg and doc_auto_cfg for docs
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2024-07-02 11:59:53 +02:00
Wolfgang Bumiller
b2dd0117d1 acme-api: allow clippy::manual_map where .map doesn't make sense
The code chooses whichever one of a multitude of functions returns
Some, switching to .map for the final else would make it less
readable.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2024-06-28 11:14:30 +02:00
Maximiliano Sandoval
aff76f9e0e remove needless borrows
Fixes the following clippy warnings:

warning: the borrowed expression implements the required traits
  --> proxmox-tfa/src/api/recovery.rs:86:24
   |
86 |         Ok(hex::encode(&hmac))
   |                        ^^^^^ help: change this to: `hmac`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args

and

warning: this expression creates a reference which is immediately dereferenced by the compiler
   --> proxmox-network-api/src/api_impl.rs:108:47
    |
108 |                 interface.set_bond_slave_list(&slaves)?;
    |                                               ^^^^^^^ help: change this to: `slaves`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
    = note: `#[warn(clippy::needless_borrow)]` on by default

Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
2024-06-28 10:22:58 +02:00
Maximiliano Sandoval
cb4acf6d93 use contains_key instead of .get().is_{some, none}()
Fixes the clippy lints:

warning: unnecessary use of `get("lo").is_none()`
   --> proxmox-network-api/src/config/parser.rs:603:30
    |
603 |         if config.interfaces.get("lo").is_none() {
    |            ------------------^^^^^^^^^^^^^^^^^^^
    |            |
    |            help: replace it with: `!config.interfaces.contains_key("lo")`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_get_then_check
    = note: `#[warn(clippy::unnecessary_get_then_check)]` on by default

Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
2024-06-28 10:22:58 +02:00
Wolfgang Bumiller
f1a5583932 acme-api: bump to 0.1.2-1
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2024-06-20 13:57:53 +02:00
Wolfgang Bumiller
a0c1369000 acme-api: bump to 0.1.1-1
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2024-06-19 12:08:04 +02:00
Dietmar Maurer
b25edb67de sys: use anyhow Error type for create_dir, and improve error messages
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2024-06-13 11:51:44 +02:00
Dietmar Maurer
0b17987c67 acme-api: show all certificate subject_alt_names (DNS, IP, EMAIL, URI)
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2024-06-11 14:24:23 +02:00
Dietmar Maurer
7e4121d26e acme-api: add function to extract certificate data from .pem data
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2024-06-06 14:07:43 +02:00
Dietmar Maurer
fcaa4f6758 acme-api: implement funtion to create self signed certificates
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2024-06-06 14:07:43 +02:00
Dietmar Maurer
7a8e948ee7 acme-api: pass parameters by reference
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2024-06-06 11:09:56 +02:00
Dietmar Maurer
04505ada7a acme-api: implement revoke certificate helper
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2024-06-06 10:23:35 +02:00
Fabian Grünbichler
a17430b38f run cargo fmt
(again)

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2024-06-05 13:31:06 +02:00
Wolfgang Bumiller
7ab17e262c acme-api: bump to 0.1.0-1
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2024-06-05 12:12:52 +02:00
Dietmar Maurer
10f32d4312 acme-api: use replace_secret_config to write acme config files
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2024-06-04 13:14:20 +02:00
Dietmar Maurer
ccbef4be87 acme-api: use create_secret_dir from product-config
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2024-06-04 12:56:57 +02:00
Dietmar Maurer
8219565d6a acme-api: create all directorties inside init 2024-06-04 12:22:16 +02:00
Dietmar Maurer
3aa07c117b acme-api: export ChallengeSchemaWrapper
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2024-06-03 12:55:43 +02:00
Dietmar Maurer
cae2b556fa acme-api: export account_config_filename
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2024-06-03 12:29:16 +02:00
Dietmar Maurer
c5731f916b acme-api: make register_account directory parameter optional
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2024-06-03 10:50:12 +02:00
Dietmar Maurer
95ea61183f acme-api: export known directories
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2024-06-03 10:40:12 +02:00
Dietmar Maurer
0582a13281 acme-api: export api types at top-level
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2024-06-03 10:03:06 +02:00
Dietmar Maurer
2665b566c0 acme-api: remove stale feature gate and always compile api types
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2024-06-03 09:08:16 +02:00
Dietmar Maurer
79a6f97c39 acme-api: commit missing file
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2024-05-31 12:35:42 +02:00
Dietmar Maurer
5e00ee7bb0 acme-api: remove useless api-types feature
We always need those types, so there is no need to make this a feature.

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2024-05-31 12:23:05 +02:00
Dietmar Maurer
d152e47d78 acme-api: add init method to setup directories
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2024-05-31 12:12:23 +02:00
Dietmar Maurer
f6bcb6b50b syslog-api: new crate, split out from system-management-api 2024-05-30 09:44:48 +02:00
Dietmar Maurer
4768ad2200 product-config: remove digest implementation (move to proxmox-config-digest crate)
And use the new proxmox-config-digest crate instead.

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2024-05-29 18:41:28 +02:00
Dietmar Maurer
f240a2bfaa acme-api: add debian packaging
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2024-05-17 12:13:02 +02:00
Dietmar Maurer
7c899090e4 acme-api: use product-config instead of custom acme api configuration
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2024-05-17 11:52:57 +02:00
Dietmar Maurer
cfc155a06b acme-api: reusable ACME api implementation.
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2024-05-16 12:35:14 +02:00