]> git.proxmox.com Git - proxmox-websocket-tunnel.git/log
proxmox-websocket-tunnel.git
11 months agobump version to 0.2.0 master
Fabian Grünbichler [Wed, 24 May 2023 13:13:50 +0000 (15:13 +0200)]
bump version to 0.2.0

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
11 months agobuild: makefile improvements
Fabian Grünbichler [Wed, 24 May 2023 13:09:11 +0000 (15:09 +0200)]
build: makefile improvements

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
11 months agoupdate d/control
Fabian Grünbichler [Wed, 24 May 2023 13:06:42 +0000 (15:06 +0200)]
update d/control

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
11 months agoupdate proxmox-sys to 0.5
Fabian Grünbichler [Wed, 24 May 2023 10:49:41 +0000 (12:49 +0200)]
update proxmox-sys to 0.5

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
11 months agobump proxmox-http to 0.9
Fabian Grünbichler [Wed, 24 May 2023 10:48:46 +0000 (12:48 +0200)]
bump proxmox-http to 0.9

11 months agobuild: add dsc target
Fabian Grünbichler [Wed, 24 May 2023 10:47:39 +0000 (12:47 +0200)]
build: add dsc target

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
12 months agobump proxmox-http to 0.8
Fabian Grünbichler [Tue, 18 Apr 2023 08:55:33 +0000 (10:55 +0200)]
bump proxmox-http to 0.8

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
15 months agoclippy fixes
Fabian Grünbichler [Thu, 19 Jan 2023 15:27:14 +0000 (16:27 +0100)]
clippy fixes

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
15 months agoupdate dependencies
Fabian Grünbichler [Thu, 19 Jan 2023 15:26:49 +0000 (16:26 +0100)]
update dependencies

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
22 months agobump proxmox-sys to 0.3
Fabian Grünbichler [Thu, 2 Jun 2022 12:19:38 +0000 (14:19 +0200)]
bump proxmox-sys to 0.3

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
22 months agobuild: bump tokio-util to 0.7
Fabian Grünbichler [Thu, 2 Jun 2022 08:04:47 +0000 (10:04 +0200)]
build: bump tokio-util to 0.7

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agoupdate d/control
Fabian Grünbichler [Wed, 9 Feb 2022 09:24:04 +0000 (10:24 +0100)]
update d/control

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agouse itertools and from_utf8_unchecked
Wolfgang Bumiller [Fri, 4 Feb 2022 11:04:51 +0000 (12:04 +0100)]
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>
2 years agocleanup
Wolfgang Bumiller [Fri, 4 Feb 2022 10:54:36 +0000 (11:54 +0100)]
cleanup

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoCargo.toml: drop paths, cleanup
Wolfgang Bumiller [Fri, 4 Feb 2022 10:30:19 +0000 (11:30 +0100)]
Cargo.toml: drop paths, cleanup

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoadd packaging
Fabian Grünbichler [Thu, 3 Feb 2022 12:41:28 +0000 (13:41 +0100)]
add packaging

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agoadd fingerprint validation
Fabian Grünbichler [Thu, 3 Feb 2022 12:41:27 +0000 (13:41 +0100)]
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>
2 years agoadd tunnel implementation
Fabian Grünbichler [Thu, 3 Feb 2022 12:41:26 +0000 (13:41 +0100)]
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>
2 years agoinitial commit
Fabian Grünbichler [Thu, 3 Feb 2022 12:41:25 +0000 (13:41 +0100)]
initial commit

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>