Dietmar Maurer
42dedabbb1
bump version to 0.5.0-1
2021-06-23 11:29:13 +02:00
Dietmar Maurer
5751689167
avoid unused features "sortable-macro" and "api-macro"
2021-06-23 11:27:55 +02:00
Dietmar Maurer
426f7b6014
bump versionm to 0.4.0-1
2021-06-23 11:17:30 +02:00
Dietmar Maurer
4f90d7009d
set "default-features = false" for proxmox crate
2021-06-23 11:15:33 +02:00
Dietmar Maurer
8286806a19
bump version toö 0.3.0-1
2021-06-22 09:23:59 +02:00
Dietmar Maurer
ac034c72da
return Url as string
...
To make perl bindings simple.
2021-06-21 14:12:13 +02:00
Dietmar Maurer
cc64c7e35d
bump version to 0.2.0-1
2021-06-21 13:37:43 +02:00
Dietmar Maurer
73c5c4af7c
implement Deserialize/Serialize for OpenIdConfig
...
Useful to create perl bindings.
2021-06-21 13:27:05 +02:00
Fabian Grünbichler
634e35489a
add packaging
...
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2021-06-18 16:16:40 +02:00
Dietmar Maurer
dd0d18d5ce
make state directory configurable (pass state_dir as parameter)
2021-06-18 10:49:38 +02:00
Dietmar Maurer
ca65d297b7
initial import
2021-06-18 10:23:57 +02:00
Fabian Grünbichler
fff7b926ee
proxmox-http: bump version to 0.2.1
...
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2021-05-18 10:31:51 +02:00
Fabian Grünbichler
480e213f7c
websocket: add note about compat removal
...
this major release still needs to have an incompatible, the next one can
drop setting a protocol client-side, and the one after that can remove
the protocol handling on the server side.
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2021-05-18 09:26:51 +02:00
Dominik Csapak
0786b4b98c
proxmox-http/websocket: remove subprotocol handling
...
we do not support websocket subprotocols, but for compatibility with
current clients (novnc, pve-xtermjs) we have to reply with the one requested,
else this is a protocol error and browsers will error out
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2021-05-18 09:22:05 +02:00
Dominik Csapak
232d87531e
proxmox-http/websocket: remove code for 'text' frames
...
we never actually sent text frames, nor did any client request them.
Also, no validity check ever ocurred, so technically it was against
the spec.
Simply remove the code handling sending out text frames. If we need
to actually handle that, we can always create a 'WebSocketStringWriter'
or similar.
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2021-05-18 09:22:05 +02:00
Wolfgang Bumiller
e0dcc337ac
rustfmt fixup
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-05-17 12:25:49 +02:00
Wolfgang Bumiller
242a6ab216
doc fixups
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-05-17 11:39:11 +02:00
Wolfgang Bumiller
44a2cab602
bump d/control
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-05-17 11:38:52 +02:00
Wolfgang Bumiller
0c448080c8
bump proxmox-http to 0.2.0-1
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-05-17 11:25:42 +02:00
Wolfgang Bumiller
76c25a9612
add some more module level docs
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-05-17 11:25:42 +02:00
Wolfgang Bumiller
c9b4a4f39b
uri: drop anyhow::Error and improve docs
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-05-17 11:25:42 +02:00
Wolfgang Bumiller
ca9dd7ec36
reorganize crate
...
it's a 'http' utility crate
* the extra 'http' module is redundant
* the module name 'helpers' as a public path doesn't say
much about what it does
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-05-17 11:03:31 +02:00
Dietmar Maurer
3a161119c2
update proxmox/debian/control
2021-05-17 10:21:54 +02:00
Dietmar Maurer
47e6ae52ff
bump proxmox version to 0.11.5-1
2021-05-17 10:07:28 +02:00
Fabian Grünbichler
37ae288efd
http: update d/control
...
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2021-05-17 09:54:32 +02:00
Fabian Grünbichler
94378967e3
http: rustfmt
...
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2021-05-17 09:54:01 +02:00
Fabian Grünbichler
910949db01
http: make clippy happy
...
again.
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2021-05-17 09:53:42 +02:00
Fabian Grünbichler
667bd8ab83
http: takeover simple HTTP client from proxmox_backup
...
adapted to use already moved helpers/code.
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2021-05-17 09:53:18 +02:00
Fabian Grünbichler
80b423f30f
http: takeover tools::http from proxmox_backup
...
the parts that were not already moved.
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2021-05-17 09:53:04 +02:00
Fabian Grünbichler
7f56e0774c
http: takeover ProxyConfig from proxmox_backup
...
adapted to use moved build_authority helper.
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2021-05-17 09:52:29 +02:00
Fabian Grünbichler
f305be9583
http: takeover build_authority helper from proxmox_backup
...
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2021-05-17 09:45:35 +02:00
Fabian Grünbichler
6c5028512b
http: takeover MaybeTlsStream from proxmox_backup
...
this is just a (rather HTTP specific) wrapper, so put it into a
'wrapper' module for now.
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2021-05-17 09:45:04 +02:00
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
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