Commit Graph

178 Commits

Author SHA1 Message Date
Rhonda D'Vine
5e9788ddd7 Add unzip to Build-Depends
Signed-off-by: Rhonda D'Vine <rhonda@proxmox.com>
2018-09-06 11:49:21 +02:00
Dietmar Maurer
60f28d48c2 bump version to 2.0-10 2018-08-17 08:30:07 +02:00
Dominik Csapak
a4d8bbafbe fix #1869: send correct http response in spice proxy
the glib implementation of the http proxy correctly checks the
http response (response code, followed by an empty line)
so we need to answer with the correct status

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2018-08-17 08:28:36 +02:00
Dietmar Maurer
ed8d2557ae websocket: set $max_payload_size = 128*1024; (131072)
AnyEvent checks rbuf_max after calling the callback (too late), so
we can receive larger data, because AnyEvent uses MAX_READ_SIZE=131072
to fill the buffer.

So a more elegant solution is to set $max_payload_size=128*1024. At least
I am not able to receive rbuf larger than 128*1024 now. But I keep the
protection from the previous patch - just to be sure.
2018-06-07 10:08:59 +02:00
Dietmar Maurer
cdb6932787 limit websocket frame size
AnyEvent checks rbuf_max after calling the callback (too late), so
we can receive larger data.
2018-06-06 16:41:30 +02:00
Dietmar Maurer
25c6e03f71 bump version to 2.0-9 2018-05-28 10:36:26 +02:00
René Jochum
ed979f7a2c Fix #1684 WebSocket proxy behind a buffered proxy.
The given patch fixes incoming WebSocket traffic behind buffered Proxies
like NGINX.

NGINX buffers multiple requests from the Browser into one frame and sends that to pveproxy,
before this patch we then processed the first message of the frame and cleared the buffer which
may contained more messages.
With this patch we process each message and clear the buffer right.

This fixes the "NoVNC blank screen" problem users reported on the forums.
2018-05-28 10:27:08 +02:00
Thomas Lamprecht
0ef7efdb9d fixup no newline at end of .gitignore 2018-05-25 16:42:05 +02:00
René Jochum
bc2028c9be Add .gitignore
Signed-off-by: René Jochum <rene@jochums.at>
2018-05-25 16:41:23 +02:00
Fabian Grünbichler
8a424513a4 bump version to 2.0-8 2017-12-11 15:36:42 +01:00
Thomas Lamprecht
d8327719e3 auth_handler: respond with passed error if we get a PVE::Exception
Allows to fix a problem where a logged in connected client was logged
out because we could not verify him for this call as the cluster
filesystem was unavailable.

If we get such a exception then use it for responding.
THis is save as no logged out client can get ever do anything where
login privileges are required and a logged in client cannot to
anything during the problematic period, but does not gets logged out.
Partail fix for #1589

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2017-12-11 14:53:24 +01:00
Wolfgang Bumiller
b1e84aa34d whitespace fixup
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2017-11-24 09:25:55 +01:00
Dominik Csapak
ae5e0a954b add 'map' filetype to http-server
those files are used for javascript source maps
(useful for debugging purposes)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-11-24 09:19:21 +01:00
Dominik Csapak
e3b29cc9da do not send websocket status code to port
this is not data, but the status code,
so print it in debug mode instead

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-11-24 09:19:21 +01:00
Dietmar Maurer
d80c5f14c1 bump version to 2.0-7 2017-11-14 08:05:38 +01:00
Dietmar Maurer
80d61dd6bb add content type application/x-compressed-tar 2017-11-09 07:17:49 +01:00
Dietmar Maurer
20a61215ce allow API calls to download file contents.
We use this to download backup files with pmg.
2017-11-08 09:23:30 +01:00
Fabian Grünbichler
c26f8b28fb build: reformat debian/control
using wrap-and-sort -abt
2017-10-04 11:05:33 +02:00
Dietmar Maurer
c5b723232e bump version to 2.0-6 2017-08-10 12:06:11 +02:00
Dietmar Maurer
66a7a3a38d pass $format to rest_handler()
Used by PMG::HTTPServer.
2017-08-10 08:47:32 +02:00
Wolfgang Bumiller
b06960b9e1 bump version to 2.0-5 2017-06-02 12:49:56 +02:00
Dominik Csapak
3d12de14cc add json/mp3/oga/svg filetypes
those are needed for the noVNC upgrade

svg: button images
mp3/oga: bell sound of terminal
json: language files

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-05-24 13:10:39 +02:00
Thomas Lamprecht
967dcb7682 increase max POST data limit to 64 KB
this matches also our wbuf_max settings of our AnyEvent handle

Tested with 1000 parallel started dummy POST request with 64KB
payload, wh

It should not be too problematic to increase the limit

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2017-05-24 11:28:22 +02:00
Dietmar Maurer
e703c558be bump version to 2.0-4 2017-05-02 11:56:13 +02:00
Dietmar Maurer
256da58194 assume all parameters are utf8 encoded
Previously, we called decode_utf8_parameters(), which only encoded
some parameters. This was just an optimization, and it turend out to
be error prone (for example passwords also contain utf8 parameters).
2017-05-02 11:54:29 +02:00
Wolfgang Bumiller
e8ae1f090b buildsys: clean: remove *.buildinfo 2017-04-27 14:02:51 +02:00
Dietmar Maurer
c6cbc95f24 bump version to 2.0-3 2017-04-24 07:43:50 +02:00
Dietmar Maurer
2fd728c93b avoid locale specific time stamps 2017-04-24 07:39:27 +02:00
Wolfgang Bumiller
24e1f1d0d3 bump version to 2.0-2 2017-04-21 11:52:21 +02:00
Fabian Grünbichler
10f9a4b775 fix #1332: allow ECDHE with all supported curves
with openssl 1.0.1, we had to limit ourself to one curve to
allow ECDHE at all.

with openssl 1.1.x, the same limit actually means only
allowing ECDSA certificates using that curve, even for
non-ephemeral ECDH handshakes, effectively only allowing
prime256 EC certificates.

since openssl 1.1.x supports auto-negotiation of the curve
used for ECDHE, simply use that for now.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2017-04-03 15:05:40 +02:00
Dietmar Maurer
01659eceac bump version to 2.0-1 for debian stretch 2017-03-10 08:51:30 +01:00
Dietmar Maurer
fd03f0e31f Makefile: use "--product pve,pmg --dist stretch" for upload target 2017-03-08 17:35:17 +01:00
Dietmar Maurer
666d3ae1d1 cleanup error message for non-existent files 2017-03-03 06:32:25 +01:00
Wolfgang Bumiller
e4bce23e8c buildsys: make job safety 2017-02-07 15:23:34 +01:00
Dietmar Maurer
863ecf89c8 bump version to 1.0-4 2017-01-21 16:37:07 +01:00
Dietmar Maurer
471cfd49d5 add debian triggers file
to correctly restart API daemons on updates.
2017-01-21 16:35:36 +01:00
Dietmar Maurer
f8bbcae824 use ${perl:Depends}
to avoid warning when building the package
2017-01-21 16:23:37 +01:00
Dietmar Maurer
8dee83616b bump version to 1.0-3 2017-01-21 16:20:02 +01:00
Dietmar Maurer
038808dd92 add a more complex demo 2017-01-21 16:08:36 +01:00
Dietmar Maurer
fc75d78694 move simple-demo.pl -> examples/simple-demo.pl 2017-01-21 15:48:04 +01:00
Dietmar Maurer
8d88baec13 call Net::SSLeay::ERR_clear_error after all handlers
just to be sure.
2017-01-21 11:55:18 +01:00
Dietmar Maurer
6389088689 call Net::SSLeay::ERR_clear_error() after auth_handler
Some auth_handlers use Crypt::OpenSSL::RSA, which seems to set the openssl error
variable. We need to clear that here, else AnyEvent::TLS aborts the connection.
2017-01-20 18:17:13 +01:00
Dietmar Maurer
7a9a3b9063 remove simple-demo.pem in distclean
Avoid generating to many different certs (confuses the browser).
2017-01-20 18:11:42 +01:00
Dietmar Maurer
133e058609 avoid warnings when clients disconnects early 2017-01-20 11:22:40 +01:00
Dietmar Maurer
84df857fba implement more reasonable ticket verification for demo server
Do not pass secrets to client.
2017-01-17 07:38:23 +01:00
Dietmar Maurer
c67d07fc66 set CN=$nodename for demo server certificate 2017-01-17 07:26:04 +01:00
Dietmar Maurer
1111604c87 use openssl instead of make-ssl-cert to generate demo cert
We do not set things like subjectAltName, but the cert ist good
enough for the demo.
2017-01-17 06:50:06 +01:00
Dietmar Maurer
77a98dfede bump version to 1.0-2 2017-01-16 18:39:56 +01:00
Dietmar Maurer
e47181898e simple-demo.pl: simple demo server for testing 2017-01-16 15:10:04 +01:00
Dietmar Maurer
5dfe8376ac extract_auth_cookie: always call uri_unescape($ticket)
should not harm.
2017-01-16 14:24:21 +01:00