Commit Graph

62 Commits

Author SHA1 Message Date
Thomas Lamprecht
dba885fbba docs: restructur/expand offline key chapter
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-09-08 13:04:33 +02:00
Fabian Grünbichler
fc9b351a4d wizard: add option to (de)select all mirrors
else it gets a bit repetitive for the common case.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-09-08 13:04:03 +02:00
Fabian Grünbichler
6ba920ff71 wizard: add --config parameter
instead of prompting for the file path.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-09-08 12:54:42 +02:00
Fabian Grünbichler
b2c8df5c6f cargo fmt
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-09-08 12:49:54 +02:00
Fabian Grünbichler
1f7ac6f603 wizard: optionally auto-add Debian mirrors
when adding a Proxmox product mirror.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-09-08 12:49:54 +02:00
Fabian Grünbichler
54b47e302e wizard: extract debian release/variant/.. handling
for re-use when adding a Proxmox product.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-09-08 12:49:54 +02:00
Fabian Grünbichler
34ccf5f690 wizard: re-order distros
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-09-08 12:49:54 +02:00
Fabian Grünbichler
06474893df medium: implement remove .. --remove-data
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-09-08 12:49:54 +02:00
Thomas Lamprecht
47fd70f0cb docs: mirror: fix --dir in command example
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-09-08 11:46:00 +02:00
Thomas Lamprecht
f0cb50f34b subscription: use "-" for POM product URL
it isn't displayed anywhere currently anyway, so more future proofing

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-09-08 11:44:10 +02:00
Thomas Lamprecht
a7805ca338 apt repo: offline key: support PMG
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-09-08 11:43:46 +02:00
Thomas Lamprecht
67581096c8 docs: split out chapters into different files
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-09-08 11:03:57 +02:00
Fabian Grünbichler
fe3bf78aa8 keys: improve refresh behaviour
refresh mirror key(s) before looking for a valid one to use for offline key
refreshing, and disentagle these two parts of "refreshing keys".

also, refreshing is no longer async since dropping hyper, so drop the
async/await-s accordingly.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-09-08 10:25:57 +02:00
Fabian Grünbichler
c8b43f3e7a add some more comments
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-09-08 09:44:46 +02:00
Fabian Grünbichler
c14cad80da keys: add 'show' command
to display full info that is available about a given key.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-09-08 09:35:25 +02:00
Fabian Grünbichler
627d92c7e0 keys: extend list return value
by decoding the contained subscription info and doing some rough checks.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-09-08 09:34:41 +02:00
Thomas Lamprecht
26023cc671 docs: extend, reformat and various small fixes
Fix some left overs from copying this over from PBS, note how to
acquire such a key by contacting sales@proxmox.com, add a paragraph
with some description about what this tool(ing) actually does to the
introduction section, ...

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-09-08 08:30:15 +02:00
Thomas Lamprecht
118ab592d3 docs: fix title case and heading markers
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-09-08 08:29:39 +02:00
Thomas Lamprecht
e9227093ba docs pdf: avoid extra blank page on section/chapter boundary
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-09-08 08:27:52 +02:00
Thomas Lamprecht
d707060cc7 d/control: add break/depends for doc split
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-09-07 16:21:34 +02:00
Thomas Lamprecht
e00cc7d877 buildsys: fix d/control in build dir, ensuring docs package build
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-09-07 16:07:22 +02:00
Thomas Lamprecht
09a01e8105 d/control: update
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-09-07 15:44:28 +02:00
Fabian Grünbichler
9d5bafe602 wizard: remove meaningless actions
adding a medium without any mirrors defined doesn't make sense, and
offering add/remove when there is nothing to add/remove doesn't either.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-09-07 15:21:14 +02:00
Fabian Grünbichler
9e725bc338 wizard: ask for medium ID up front
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-09-07 15:21:00 +02:00
Fabian Grünbichler
c6efc838ee keys: improve output on add/refresh
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-09-07 14:12:27 +02:00
Fabian Grünbichler
05da7b3569 switch to production signing key
shipped by proxmox-archive-keyring

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-09-07 14:01:18 +02:00
Fabian Grünbichler
e0f1756b1b packaging: split docs into -docs package
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-09-07 13:12:18 +02:00
Fabian Grünbichler
157eab4010 cargo fmt
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-09-07 11:16:57 +02:00
Fabian Grünbichler
d7e210ac68 mirror: use max_size everywhere
with generous limits for the (In)Release files, and using the reference
sizes from authenticated files from then on to prevent a malicious MITM
from DOSing the mirroring client via memory exhaustion.
2022-09-07 11:16:57 +02:00
Fabian Grünbichler
49997188b8 update dependencies to get rid of hyper
proxmox-http to 0.7, proxmox-router to 1.3 and proxmox-subscription to
0.3.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-09-07 11:16:57 +02:00
Fabian Grünbichler
b525b3298a bump version to 0.1.0-1
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-09-06 12:12:41 +02:00
Fabian Grünbichler
12a8c3202d bump proxmox-apt to 0.9.1
for more resilient Release file parsing

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-09-06 12:12:41 +02:00
Fabian Grünbichler
c76900c991 clippy fixes
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-09-06 12:06:13 +02:00
Fabian Grünbichler
466c2f9a79 update to proxmox-sys 0.4
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-09-06 12:06:13 +02:00
Fabian Grünbichler
1c6fcd3740 docs: make help top-level header
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-09-06 12:06:13 +02:00
Fabian Grünbichler
e8cc6bb28b docs: expand, improve formatting
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-09-06 12:06:13 +02:00
Fabian Grünbichler
abaee27150 docs: document key handling
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-09-06 12:06:13 +02:00
Fabian Grünbichler
e34d988080 remove accidentally committed pycache
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-09-06 12:06:13 +02:00
Fabian Grünbichler
dccc651c74 d/rules: drop docgen, add fail-missing
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-09-06 12:06:13 +02:00
Fabian Grünbichler
5c6035f227 add bash completion
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-09-06 12:06:13 +02:00
Fabian Grünbichler
ccb184215c update d/control
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-09-06 12:06:13 +02:00
Fabian Grünbichler
fabdaf9100 add docs
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-09-06 12:06:13 +02:00
Fabian Grünbichler
619f5b6e39 add remaining missing renames
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-09-06 12:06:13 +02:00
Fabian Grünbichler
5a59201c20 upload to all products
and skip lib package upload

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-09-06 12:06:13 +02:00
Fabian Grünbichler
8cddc92d00 add packaging
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-09-06 12:06:13 +02:00
Fabian Grünbichler
92745fd2c1 bump proxmox-apt
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-09-06 12:06:13 +02:00
Fabian Grünbichler
72f796d7d6 adapt to changes in proxmox-subscription
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-09-06 12:06:13 +02:00
Fabian Grünbichler
b42cad3b8e improve interfaces and descriptions
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-09-06 12:06:13 +02:00
Fabian Grünbichler
a9f22be14c pool: gracefully handle tmp or invalid chunk names
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-09-06 12:06:13 +02:00
Fabian Grünbichler
ad561aec22 apt-repo: allow writing of snippet file
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-09-06 12:06:13 +02:00