Commit Graph

21 Commits

Author SHA1 Message Date
Fabian Grünbichler
f09ec1da40 bump proxmox-sys to 0.6
and base64 to 0.21

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2024-07-25 13:06:12 +02:00
Fabian Grünbichler
14a5339635 move .cargo/config to .cargo/config.toml
the old location has been deprecated for a while, and rustc 1.78 will start to warn about it.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2024-06-20 12:33:54 +02:00
Fabian Grünbichler
6c79ff88a2 bump version to 0.2.0
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2023-05-24 15:13:50 +02:00
Fabian Grünbichler
7a676f9708 build: makefile improvements
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2023-05-24 15:10:09 +02:00
Fabian Grünbichler
f3f81d6d17 update d/control
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2023-05-24 15:06:42 +02:00
Fabian Grünbichler
d4753652d0 update proxmox-sys to 0.5
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2023-05-24 12:49:41 +02:00
Fabian Grünbichler
da36a24914 bump proxmox-http to 0.9 2023-05-24 12:49:10 +02:00
Fabian Grünbichler
2edda38566 build: add dsc target
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2023-05-24 12:47:39 +02:00
Fabian Grünbichler
720d988952 bump proxmox-http to 0.8
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2023-04-18 10:55:33 +02:00
Fabian Grünbichler
b4f32a99c5 clippy fixes
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2023-01-19 16:27:14 +01:00
Fabian Grünbichler
b8278dc268 update dependencies
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2023-01-19 16:26:49 +01:00
Fabian Grünbichler
deec14a4bd bump proxmox-sys to 0.3
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-06-02 14:19:38 +02:00
Fabian Grünbichler
1b9bcbf7b3 build: bump tokio-util to 0.7
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-06-02 10:04:47 +02:00
Fabian Grünbichler
395a1e9dcb update d/control
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-02-09 10:24:04 +01:00
Wolfgang Bumiller
1b7d246040 use itertools and from_utf8_unchecked
avoid allocations and skip the utf8 check on the hex string

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-02-04 12:04:51 +01:00
Wolfgang Bumiller
941f0305a2 cleanup
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-02-04 11:54:36 +01:00
Wolfgang Bumiller
f8faa2c3f0 Cargo.toml: drop paths, cleanup
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-02-04 11:30:19 +01:00
Fabian Grünbichler
14428946da add packaging
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-02-04 09:15:40 +01:00
Fabian Grünbichler
838b8aafca add fingerprint validation
in case we have no explicit fingerprint, we use openssl's regular "PEER"
verification. if we have a fingerprint, we ignore openssl verification
results altogether and just verify the fingerprint of the presented leaf
certificate, skipping the rest of the certificate chain (depth != 0).

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-02-04 09:15:40 +01:00
Fabian Grünbichler
c18e63b96f add tunnel implementation
the websocket tunnel helper accepts control commands (encoded as
single-line JSON) on stdin, and prints responses on stdout.

the following commands are available:
- "connect" a 'control' tunnel via a websocket
- "forward" a local unix socket to a remote socket via a websocket
-- if requested, this will ask for a ticket via the control tunnel after
accepting a new connection on the unix socket
- "close" the control tunnel and any forwarded socket

any other json input (without the 'control' flag set) is forwarded as-is
to the remote end of the control tunnel.

internally, the tunnel helper will spawn tokio tasks for
- handling the control tunnel connection (new commands are passed in via
an mpsc channel together with a oneshot channel for the response)
- handling accepting new connections on each forwarded unix socket
- handling forwarding data over accepted forwarded connections

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-02-04 09:15:40 +01:00
Fabian Grünbichler
edda35b761 initial commit
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-02-04 09:15:40 +01:00