Wolfgang Bumiller
e0df53e793
bump proxmox-tfa to 1.2.0-1
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-11-09 13:27:59 +01:00
Wolfgang Bumiller
0156b3fe03
proxmox-tfa: add version field to u2f::AuthChallenge
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-11-09 13:27:59 +01:00
Wolfgang Bumiller
83934e59e6
proxmox-tfa: make u2f::AuthChallenge Clone + Debug
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-11-09 13:27:59 +01:00
Fabian Grünbichler
4128c5fdb5
updater: impl UpdaterType for Vec
...
by replacing the whole Vec.
if we ever want to support adding/removing/modifying elements of a Vec
via the Updater, we'd need to extend it anyway (or use a custom
updater).
Suggested-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2021-11-09 09:18:08 +01:00
Wolfgang Bumiller
bc38ff7878
bump proxmox-tfa to 1.1.0-1
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-10-29 15:07:09 +02:00
Wolfgang Bumiller
1554465d45
proxmox-tfa: add Totp::digits
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-10-29 14:31:39 +02:00
Wolfgang Bumiller
4f4fa80f2f
bump proxmox to 0.15.1-1
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-10-21 12:44:12 +02:00
Wolfgang Bumiller
bdc7e9d145
proxmox: cleanup files on fsync errors
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-10-21 12:42:23 +02:00
Dietmar Maurer
a0cfb9c20d
bump proxmox-http version to 0.5.1-1
...
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2021-10-21 07:37:30 +02:00
Dietmar Maurer
8ae297c8d2
proxmox: bump d/control
...
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2021-10-21 07:27:43 +02:00
Dietmar Maurer
bb089965c9
bump proxmox vertsion to 0.15.0-1
...
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2021-10-21 07:08:34 +02:00
Dietmar Maurer
b960bc3a4a
add fsync parameter to replace_file and atomic_open_or_create
...
The fsync is required for consistency after power failure, so it should
be set when writing config files or otherwise important data.
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2021-10-21 07:06:04 +02:00
Wolfgang Bumiller
ffd1d5f378
uuid: bump d/control
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-10-20 12:50:26 +02:00
Wolfgang Bumiller
1f03763c3b
uuid: fixup debcargo.toml to include uuid-dev dependency
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-10-20 12:49:40 +02:00
Wolfgang Bumiller
8398620669
tfa: u2f: bytes_as_base64{,url} weren't meant to be public
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-10-18 14:31:04 +02:00
Dietmar Maurer
48ef839043
bump proxmox-router version to 1.1.0-1
2021-10-13 12:28:16 +02:00
Dietmar Maurer
417b7159d2
add filename completions helper (moved from pbs-tools)
...
Depend on 'nix' now.
2021-10-13 12:28:16 +02:00
Wolfgang Bumiller
17adc570db
bump proxmox-borrow to 1.0.1-1
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-10-13 10:41:01 +02:00
Wolfgang Bumiller
087bf31567
borrow: update to ManuallyDrop::take
...
and fixup into_boxed_inner along the way
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-10-13 10:39:12 +02:00
Wolfgang Bumiller
d18292192d
bump proxmox-api-macro to 1.0.1-1
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-10-12 14:51:35 +02:00
Wolfgang Bumiller
5988a1adf1
drop automatically_derived attribute for now
...
new rustc seems to *sometimes* complain about it
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-10-12 14:49:11 +02:00
Wolfgang Bumiller
f63ce12b66
lang: prepare c_str for const fns with 1.56
...
provides an api compatible const-fn-compatible c_str
alternative working on 1.56
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-10-12 14:29:03 +02:00
Wolfgang Bumiller
8f89f9ad60
lang: get offsetof const fn ready
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-10-12 14:14:25 +02:00
Wolfgang Bumiller
af33a97547
lang: deprecate ops::ControlFlow
...
as we now have rustc 1.55
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-10-12 14:13:59 +02:00
Wolfgang Bumiller
4ccd6256a8
update proxmox-http to 0.5 for the split
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-10-11 12:34:14 +02:00
Wolfgang Bumiller
336dab0177
update proxmox crate to the current split
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-10-11 12:34:14 +02:00
Wolfgang Bumiller
1d24555b28
drop u2f-api file
...
used to be used by examples at some point
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-10-11 11:39:59 +02:00
Wolfgang Bumiller
f35dbbd651
add proxmox-section-config crate
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-10-11 11:39:59 +02:00
Wolfgang Bumiller
41f3fdfeb9
add proxmox-schema and proxmox-router crates
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-10-11 11:39:59 +02:00
Wolfgang Bumiller
01a8b6f1bf
add proxmox-io crate
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-10-11 10:07:53 +02:00
Wolfgang Bumiller
91f59f9f59
add proxmox-lang crate
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-10-08 15:22:17 +02:00
Wolfgang Bumiller
9b6fe4aceb
add proxmox-time crate
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-10-08 15:22:17 +02:00
Wolfgang Bumiller
7db0a3c6df
add proxmox-borrow crate
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-10-08 15:22:17 +02:00
Wolfgang Bumiller
bd67ccc1b3
add proxmox-uuid crate
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-10-08 15:22:17 +02:00
Wolfgang Bumiller
77dc52c047
add proxmox-tfa crate
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-10-08 15:22:17 +02:00
Wolfgang Bumiller
2859858f59
fix systemd::escape_unit's hex encoding
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-10-08 15:22:17 +02:00
Wolfgang Bumiller
b89c56b96e
start checklist for adding crates in README.rst
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-10-06 10:37:17 +02:00
Wolfgang Bumiller
f189895cef
fix deprecated use of std::u16 module
...
integer primitive type modules are deprecated, use
associated constants instead
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-10-04 15:03:50 +02:00
Dietmar Maurer
5bff2a1d4b
add test for property string verification errors
2021-09-29 08:59:28 +02:00
Dietmar Maurer
d62d1e5707
move api schema tests into separate file
2021-09-29 08:25:23 +02:00
Dietmar Maurer
8e1d573844
add tests for schema verification errors
2021-09-29 08:17:53 +02:00
Dietmar Maurer
9ec9d1f9e6
ParameterError: construct XPath like string to identify nested properties
2021-09-28 12:34:08 +02:00
Dietmar Maurer
b5ea4f9bb2
bump proxmox version to 0.13.5-1
2021-09-28 09:52:27 +02:00
Dietmar Maurer
51db0d0f12
ParameterError: record parameter names
2021-09-28 09:52:27 +02:00
Dominik Csapak
5a88aaf074
cli/text_table: calculate correct column width for unicode characters
...
When printing unicode text, a glyph can take up more (or less) space than
a single column. To handle that, use the 'unicode-width' crate which
calculates the width by the unicode standard.
This makes the text tables correctly aligned when printing unicode
characters (e.g. in a datastore/user/syncjob comment).
'unicode-width' is used itself in the rust compiler to format errors
(see e.g. the Cargo.toml in /compiler/rustc_errors of the rust git)
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2021-09-28 08:05:28 +02:00
Dominik Csapak
5a37cfd4c0
upid: remove arbitrary 128 max length for UPID
...
we can easily go beyond that when having long datastore/remote names
also because we do 'systemd-encode' them, which means that every special
char takes up 4 bytes (e.g. '-' => '\x2d')
while we could just increase the lenght to say 256 or 512, i do not
really see the benefit to limit this at all, since users cannot create
tasks with arbitrary names, and all other fields are generated from
other valid types (username, datastore, remote, etc.)
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2021-09-24 11:08:59 +02:00
Dietmar Maurer
3cec879463
bump proxmox version to 0.13.4-1
2021-09-23 12:06:48 +02:00
Dietmar Maurer
ed9bdab576
add UPID api type
2021-09-23 12:04:15 +02:00
Dietmar Maurer
fc2253b3e8
add systemd escape_unit and unescape_unit
2021-09-23 12:04:15 +02:00
Fabian Grünbichler
0999494564
schema: add extra info to array parameters
...
it's not immediately obvious that they can be specified more than once
otherwise.
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-09-22 07:58:52 +02:00