Fabian Grünbichler
caef9a3b20
proxmox: takeover socket helper from proxmox_backup
...
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2021-05-17 09:43:51 +02:00
Fabian Grünbichler
cbaa3b45bc
http: make clippy happy
...
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2021-05-17 09:43:28 +02:00
Fabian Grünbichler
5153e68cab
http: takeover websocket feature from proxmox
...
adapted: use statements for proxmox::*, use statements for doctests
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2021-05-17 09:43:19 +02:00
Fabian Grünbichler
7b7e1413ff
meta: add empty proxmox-http sub-crate
...
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2021-05-17 09:42:16 +02:00
Fabian Grünbichler
ebeaf483ab
proxmox: add missing +router -> futures dep
...
this is shadowed by the websocket feature being enabled by default.
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2021-05-17 09:41:26 +02:00
Thomas Lamprecht
10d2453ed3
d/control: update deb-cargo generated file
...
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-05-14 12:17:09 +02:00
Thomas Lamprecht
91e7604ddc
proxmox: bump version to 0.11.4-1
...
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-05-14 12:11:48 +02:00
Thomas Lamprecht
89d14b4729
buildsys: upload to both, buster and bullseye for now
...
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-05-14 12:08:50 +02:00
Thomas Lamprecht
92d7292920
d/control: update
...
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-05-14 11:43:02 +02:00
Thomas Lamprecht
40e232f4d6
drop bogus tests
...
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-05-14 11:36:52 +02:00
Dominik Csapak
02acce2dd8
proxmox/tools/email: adapt tests to changes to sendmail
...
with test1/3 we only tested the regex, which is now gone
transform the tests to valid emails, so we test this also
and rename them to know what they should test
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2021-05-14 10:55:46 +02:00
Dominik Csapak
a7f4002306
fix #3302 : allow for more characters for email
...
by removing the regex check here, that is responsibility of the caller
this is ok since we pass the args directly and not via shell, so
command injection should not be possible
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2021-05-12 21:18:28 +02:00
Wolfgang Bumiller
fa8194e0bb
refactor send_command
...
- refactor the combinators,
- make it take a `&T: Serialize` instead of a Value, and
allow sending the raw string via `send_raw_command`.
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-05-11 16:28:08 +02:00
Wolfgang Bumiller
ee7fe8f93c
bump version to 0.2.2-1
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-05-07 13:54:36 +02:00
Wolfgang Bumiller
a145553557
finish client documentation
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-05-07 12:26:56 +02:00
Wolfgang Bumiller
5f4b571450
add Client::directory_url helper
...
allows to drop a `mut` requirement in pmg-rs without having
to store the URL twice
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-05-07 12:21:17 +02:00
Wolfgang Bumiller
1d1f80f5ca
and another *new* clippy fixup
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-05-07 11:50:54 +02:00
Wolfgang Bumiller
f406e6fb34
formatting fixups
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-05-07 11:49:26 +02:00
Wolfgang Bumiller
9538126247
clippy fixes
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-05-07 11:47:56 +02:00
Wolfgang Bumiller
dbabed6842
derive Copy for the simple status enums
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-05-07 11:47:45 +02:00
Wolfgang Bumiller
2dfc6a74bb
mark Error as must_use
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-05-07 11:39:04 +02:00
Wolfgang Bumiller
0ef3c33538
doc fixup
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-05-05 11:21:16 +02:00
Wolfgang Bumiller
5f0ba96810
finish docs and #[deny(missing_docs)] at the top level
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-05-05 11:16:13 +02:00
Dietmar Maurer
fa3b5374ed
api_type_macros.rs: disable failing doctest (set it to ignore instead of no_run)
2021-05-05 08:03:35 +02:00
Dietmar Maurer
64ac45ba91
api_type_macros.rs: disable failing doctest
2021-05-05 07:56:53 +02:00
Dietmar Maurer
5a3ac01b2e
bump proxmox version to 0.11.3-1
2021-05-05 07:47:25 +02:00
Wolfgang Bumiller
86ad53256a
add api_string_type macro
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-05-05 07:39:24 +02:00
Wolfgang Bumiller
e3a78d6354
simplify const_regex macro
...
The :vis macro matcher has been stable for a long time now.
Let's use it, and replace the recursion with a plus pattern.
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-05-05 07:38:37 +02:00
Wolfgang Bumiller
357c0614cf
even more documentation
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-05-04 11:21:30 +02:00
Wolfgang Bumiller
7bd0bfe1b2
more documentation
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-05-04 11:20:11 +02:00
Wolfgang Bumiller
47af324d94
Some documentation
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-05-04 11:04:17 +02:00
Wolfgang Bumiller
7c67886e1f
add top level doc
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-05-04 09:11:18 +02:00
Dietmar Maurer
9c786006df
bump proxmox version to 0.11.2-1
2021-05-03 08:35:03 +02:00
Dominik Csapak
77b85f7dc1
proxmox/api/cli: add extract_output_format
...
just getting it is not enough, sometimes we want it to remove from
params (if possble) too
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2021-05-03 08:01:51 +02:00
Thomas Lamprecht
610b147ba7
server/rest: fix new type ambiguity
...
basically the same as commit 5fb15b781e
Will be required once we get to use a newer rustc, at least the
client build for archlinux was broken due to this.
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-04-22 21:24:44 +02:00
Wolfgang Bumiller
4dda9b5865
proxmox: constify CreateOptions methods and add helpers
...
Adds convenience helpers `.owner_root()`.
Unfortunately for the group equivalent `nix` needs to have
const `Gid` constructors...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-04-21 12:00:57 +02:00
Wolfgang Bumiller
6eef946e20
websocket: remove AsyncReadExt
...
style wise, bounds should refer to AsyncRead instead
also we don't actually use any of the Ext methods
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-04-15 13:14:55 +02:00
Wolfgang Bumiller
a6ff69404b
bump version to 0.2.1-1
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-04-14 14:57:46 +02:00
Wolfgang Bumiller
558f51a167
make revocation workflow accessible without client
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-04-14 14:56:40 +02:00
Wolfgang Bumiller
31402407c4
bump proxmox to 0.11.1-1
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-04-14 12:04:35 +02:00
Wolfgang Bumiller
6729d41188
bump api-macro to 0.3.4-1
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-04-14 12:00:01 +02:00
Wolfgang Bumiller
cde2863a68
api-macro: fix Updatable path in generated derive attribute
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-04-14 11:58:32 +02:00
Wolfgang Bumiller
6fc95b8628
add proxmox::tools::serde::string_as_base64url_nopad
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-04-14 11:32:24 +02:00
Wolfgang Bumiller
b624fa1f3c
bump version to 0.2.0-1
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-04-12 15:31:53 +02:00
Wolfgang Bumiller
a947050ec1
add util::Csr for CSR generation
...
This is essentially taken from pmg-rs and should be used
from there.
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-04-12 14:54:21 +02:00
Wolfgang Bumiller
37b4c4f654
add is_valid to all Status enums
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-04-12 13:38:10 +02:00
Wolfgang Bumiller
5a70f0c392
add is_pending to all Status enums
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-04-12 13:32:40 +02:00
Thomas Lamprecht
ac49fbd472
enable tape backup by default
...
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-04-12 12:31:56 +02:00
Stefan Reiter
c80251ecca
server/rest: add ApiAuth trait to make user auth generic
...
This allows switching the base user identification/authentication method
in the rest server. Will initially be used for single file restore VMs,
where authentication is based on a ticket file, not the PBS user
backend (PAM/local).
To avoid putting generic types into the RestServer type for this, we
merge the two calls "extract_auth_data" and "check_auth" into a single
one, which can use whatever type it wants internally.
Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
2021-04-08 13:57:57 +02:00
Thomas Lamprecht
1b2a34166d
server: rest: collapse nested if for less indentation
...
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-04-07 17:57:46 +02:00