Add API tokens support #9

Merged
pierre merged 40 commits from api into master 2024-04-23 17:04:45 +00:00
3 changed files with 27 additions and 13 deletions
Showing only changes of commit 1d12d5c9be - Show all commits

View File

@ -6,3 +6,17 @@ Please refer to this guide: [virtweb_docs/SETUP_DEV.md](virtweb_docs/SETUP_DEV.m
## Production requirements ## Production requirements
Please refer to this guide: [virtweb_docs/SETUP_PROD.md](virtweb_docs/SETUP_PROD.md) Please refer to this guide: [virtweb_docs/SETUP_PROD.md](virtweb_docs/SETUP_PROD.md)
## Features
* Only Qemu / KVM is supported!
* Basic auth / OpenID auth
* Create, update & delete VM
* noVNC control of VMs
* Start, stop, suspend, resume, reset & kill VMs
* Create, update & delete networks
* Start & stop networks
* Create, update & delete network filters
* Upload ISO for easy VM installation
## Screenshot
![](https://0ph.fr/resume_assets/img/screenshots/virtweb.png)

View File

@ -497,9 +497,9 @@ dependencies = [
[[package]] [[package]]
name = "anyhow" name = "anyhow"
version = "1.0.81" version = "1.0.82"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0952808a6c2afd1aa8947271f3a60f1a6763c7b912d210184c5149b5cf147247" checksum = "f538837af36e6f6a9be0faa67f9a314f8119e4e4b5867c6ab40ed60360142519"
[[package]] [[package]]
name = "arbitrary" name = "arbitrary"
@ -1968,9 +1968,9 @@ dependencies = [
[[package]] [[package]]
name = "num" name = "num"
version = "0.4.1" version = "0.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b05180d69e3da0e530ba2a1dae5110317e49e3b7f3d41be227dc5f92e49ee7af" checksum = "3135b08af27d103b0a51f2ae0f8632117b7b185ccf931445affa8df530576a41"
dependencies = [ dependencies = [
"num-bigint", "num-bigint",
"num-complex", "num-complex",
@ -2740,9 +2740,9 @@ dependencies = [
[[package]] [[package]]
name = "serde_json" name = "serde_json"
version = "1.0.115" version = "1.0.116"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "12dc5c46daa8e9fdf4f5e71b6cf9a53f2487da0e86e55808e2d35539666497dd" checksum = "3e17db7126d17feb94eb3fad46bf1a96b034e8aacbc2e775fe81505f8b0b2813"
dependencies = [ dependencies = [
"itoa", "itoa",
"ryu", "ryu",
@ -2939,9 +2939,9 @@ checksum = "2047c6ded9c721764247e62cd3b03c09ffc529b2ba5b10ec482ae507a4a70160"
[[package]] [[package]]
name = "sysinfo" name = "sysinfo"
version = "0.30.9" version = "0.30.10"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e9a84fe4cfc513b41cb2596b624e561ec9e7e1c4b46328e496ed56a53514ef2a" checksum = "26d7c217777061d5a2d652aea771fb9ba98b6dade657204b08c4b9604d11555b"
dependencies = [ dependencies = [
"cfg-if", "cfg-if",
"core-foundation-sys", "core-foundation-sys",

View File

@ -21,16 +21,16 @@ actix-files = "0.6.5"
actix-web-actors = "4.3.0" actix-web-actors = "4.3.0"
actix-http = "3.6.0" actix-http = "3.6.0"
serde = { version = "1.0.197", features = ["derive"] } serde = { version = "1.0.197", features = ["derive"] }
serde_json = "1.0.115" serde_json = "1.0.116"
quick-xml = { version = "0.31.0", features = ["serialize", "overlapped-lists"] } quick-xml = { version = "0.31.0", features = ["serialize", "overlapped-lists"] }
futures-util = "0.3.30" futures-util = "0.3.30"
anyhow = "1.0.81" anyhow = "1.0.82"
actix-multipart = "0.6.1" actix-multipart = "0.6.1"
tempfile = "3.10.1" tempfile = "3.10.1"
reqwest = { version = "0.12.3", features = ["stream"] } reqwest = { version = "0.12.3", features = ["stream"] }
url = "2.5.0" url = "2.5.0"
virt = "0.3.1" virt = "0.3.1"
sysinfo = { version = "0.30.9", features = ["serde"] } sysinfo = { version = "0.30.10", features = ["serde"] }
uuid = { version = "1.8.0", features = ["v4", "serde"] } uuid = { version = "1.8.0", features = ["v4", "serde"] }
lazy-regex = "3.1.0" lazy-regex = "3.1.0"
thiserror = "1.0.58" thiserror = "1.0.58"
@ -40,7 +40,7 @@ bytes = "1.6.0"
tokio = "1.37.0" tokio = "1.37.0"
futures = "0.3.30" futures = "0.3.30"
ipnetwork = "0.20.0" ipnetwork = "0.20.0"
num = "0.4.1" num = "0.4.2"
rust-embed = { version = "8.3.0" } rust-embed = { version = "8.3.0" }
mime_guess = "2.0.4" mime_guess = "2.0.4"
dotenvy = "0.15.7" dotenvy = "0.15.7"