proxmox-backup/debian
Stefan Reiter dd9cef56fc file-restore-daemon: add binary with virtio-vsock API server
Implements the base of a small daemon to run within a file-restore VM.

The binary spawns an API server on a virtio-vsock socket, listening for
connections from the host. This happens mostly manually via the standard
Unix socket API, since tokio/hyper do not have support for vsock built
in. Once we have the accept'ed file descriptor, we can create a
UnixStream and use our tower service implementation for that.

The binary is deliberately not installed in the usual $PATH location,
since it shouldn't be executed on the host by a user anyway.

For now, only the API calls 'status' and 'stop' are implemented, to
demonstrate and test proxmox::api functionality.

Authorization is provided via a custom ApiAuth only checking a header
value against a static /ticket file.

Since the REST server implementation uses the log!() macro, we can
redirect its output to stdout by registering env_logger as the logging
target. env_logger is already in our dependency tree via zstd/bindgen.

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-04-08 13:57:57 +02:00
..
scripts d/rules: patch out wrongly linked libraries from ELFs 2021-01-15 08:52:53 +01:00
source debian: add debian/source/format file 2019-02-01 10:41:54 +01:00
changelog bump version to 1.0.13-1 2021-04-02 15:32:27 +02:00
compat debian packages: split package into client/server 2019-11-11 08:35:33 +01:00
control file-restore-daemon: add binary with virtio-vsock API server 2021-04-08 13:57:57 +02:00
control.in file-restore: add binary and basic commands 2021-04-08 13:57:57 +02:00
copyright update copyright years 2021-02-03 12:04:27 +01:00
debcargo.toml debcargo: fix maintainer directive" 2021-02-01 11:21:21 +01:00
lintian-overrides docs: update package repositories 2020-11-10 13:14:04 +01:00
pmt.bc install pmt binary 2021-02-05 12:42:20 +01:00
pmtx.bc install pmtx binary 2021-01-27 11:36:15 +01:00
postinst d/postinst: fixup tape permissions if existing with wrong permissions 2021-03-11 13:40:22 +01:00
prerm add daily update and maintenance task 2020-10-31 22:51:26 +01:00
proxmox-backup-client.bash-completion correctly install bash completion helpers 2019-12-03 09:52:53 +01:00
proxmox-backup-client.bc correctly install bash completion helpers 2019-12-03 09:52:53 +01:00
proxmox-backup-client.install Add zsh completion scripts 2020-02-27 06:50:14 +01:00
proxmox-backup-docs.install packaging: fix docs install path 2019-12-23 07:52:40 +01:00
proxmox-backup-docs.links docs: use mathjax library from debian package instead of CDN 2021-02-26 18:05:36 +01:00
proxmox-backup-manager.bc correctly install bash completion helpers 2019-12-03 09:52:53 +01:00
proxmox-backup-server.bash-completion add proxmox-tape bash-completion 2021-03-06 10:22:08 +01:00
proxmox-backup-server.install add proxmox-tape zsh-completions 2021-03-03 16:09:39 +01:00
proxmox-backup-server.maintscript docs: update package repositories 2020-11-10 13:14:04 +01:00
proxmox-backup-server.udev tape: implement LTO userspace driver 2021-04-08 07:28:30 +02:00
proxmox-file-restore.bash-completion file-restore: add binary and basic commands 2021-04-08 13:57:57 +02:00
proxmox-file-restore.bc file-restore: add binary and basic commands 2021-04-08 13:57:57 +02:00
proxmox-file-restore.install file-restore-daemon: add binary with virtio-vsock API server 2021-04-08 13:57:57 +02:00
proxmox-tape.bc add proxmox-tape bash-completion 2021-03-06 10:22:08 +01:00
pxar.bc correctly install bash completion helpers 2019-12-03 09:52:53 +01:00
rules file-restore: add binary and basic commands 2021-04-08 13:57:57 +02:00