Commit Graph

2723 Commits

Author SHA1 Message Date
Fabian Grünbichler
4126a83e05 apt: fix test output dir
under autopkgtest, the rundir is not writable, but cargo gives us a tmpdir that
we can use in all cases.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2024-06-06 11:40:49 +02:00
Fabian Grünbichler
6f532dfb7d various clippy fixes
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2024-06-06 11:40:49 +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
Fiona Ebner
2c2497e5be fix #5513: apt: do not assume that sources.list file exists
Some users might want to switch to using only the newer .sources files
already, which Debian is going to switch to in the long run.

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
2024-06-06 11:06:41 +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
Dietmar Maurer
53ff71772f simple-config: new crate to read/write proxmox simple text config files
Copied from proxmox-backup/src/tools/config.rs

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2024-06-06 10:16:28 +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
Wolfgang Bumiller
3787764db7 time-api: bump version to 0.1.0-1
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2024-06-05 11:28:59 +02:00
Wolfgang Bumiller
c3d9d21308 syslog-api: bump to 0.1.0-1
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2024-06-05 11:28:10 +02:00
Wolfgang Bumiller
af75a203da network-api: bump to 0.1.0-1
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2024-06-05 11:27:30 +02:00
Wolfgang Bumiller
3eea0fd8ce dns-api: bump to 0.1.0-1
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2024-06-05 11:27:16 +02:00
Wolfgang Bumiller
1a0b39710c product-config: bump to 0.1.0-1
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2024-06-05 11:27:16 +02:00
Wolfgang Bumiller
053bb3d3d3 config-digest: bump to 0.1.0-1
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2024-06-05 11:24:38 +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
cb971b402f product-config: new create_secret_dir function
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2024-06-04 12:53:41 +02:00
Dietmar Maurer
6c30be2280 product-config: code cleanup
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2024-06-04 12:53:18 +02:00
Dietmar Maurer
8219565d6a acme-api: create all directorties inside init 2024-06-04 12:22:16 +02:00
Dietmar Maurer
2270f7bf94 product_config: introduce priviledged user.
Normally root, but can be the same as the api_user if the product
does not use priviledge separation.

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2024-06-04 11:14:07 +02:00
Dietmar Maurer
0033f67e37 product-config: export get_api_user
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2024-06-04 11:02:23 +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
5250493e05 syslog-api: add debian control file
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2024-06-03 09:32:11 +02:00
Dietmar Maurer
a334886f14 network-api: add debian control file
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2024-06-03 09:29:57 +02:00
Dietmar Maurer
6c1798fb31 time-api: add copyright file
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2024-06-03 09:27:38 +02:00
Dietmar Maurer
bd5c1ade4b dns-api: add debian control file
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2024-06-03 09:24:26 +02:00
Dietmar Maurer
ba49720837 dns-api: avoid auto-generated cargo features
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2024-06-03 09:21:42 +02:00
Dietmar Maurer
3de2812254 product-config: add debian control file
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2024-06-03 09:14:14 +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
e913330e09 product-config: simplify by removing the configuration directory
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2024-05-31 11:29:59 +02:00
Dietmar Maurer
40f812f324 remove system-management-api
Which is now split into separate crates:

- time-api
- network-api
- dns-api
- syslog-api
2024-05-30 09:53:59 +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
6bb74338b4 network-api: new crate, split out from system-management-api
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2024-05-30 09:27:49 +02:00
Dietmar Maurer
83b6f673b3 time-api: new crate, split out from system-managent-api
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2024-05-30 09:06:19 +02:00
Dietmar Maurer
b7f0cc7c1e dns-api: new crate, split out from system-management-api
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2024-05-30 08:44:50 +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
34b21106dd config-digest: split out config digest api type into separate crate
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2024-05-29 17:59:03 +02:00
Dietmar Maurer
3497e9edc7 sys: use 0750 as default directory permissions
Should not make a difference because default umask is 022 ...

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2024-05-29 11:04:41 +02:00
Dietmar Maurer
06d25870ed product-config: remove functions to check permissions, which are now in proxmox-sys.
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2024-05-29 10:22:05 +02:00
Dietmar Maurer
57723e98fd sys: add helpers to check file and directory permissions
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2024-05-29 10:14:24 +02:00
Dietmar Maurer
37c9dbf1eb sys: create options: make file parameter generic
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2024-05-29 09:32:48 +02:00
Dietmar Maurer
237f6218b0 product-config: factor out methods to create different file creation options
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2024-05-29 07:47:17 +02:00
Dietmar Maurer
7cd240bbad product-config: use Path instead of str everywhere
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2024-05-29 06:52:04 +02:00