]> git.proxmox.com Git - pve-http-server.git/log
pve-http-server.git
4 years agobump version to 2.0-14 stable-5
Thomas Lamprecht [Tue, 9 Jul 2019 12:41:59 +0000 (14:41 +0200)]
bump version to 2.0-14

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agodecode_urlencoded: cope with undefined values
Thomas Lamprecht [Tue, 9 Jul 2019 12:04:42 +0000 (14:04 +0200)]
decode_urlencoded: cope with undefined values

Avoids syslog/journal warning like:
>  Use of uninitialized value $v in substitution (s///) at
>  /usr/share/perl5/PVE/APIServer/AnyEvent.pm line 648.

If one passes a "value-less" GET argument to a request, e.g.,
GET /?debug

Besides the fact that this allows us to even use such arguments it
also is a general improvement against a slight "syslog DOS attack",
because anybody can pass such parameters to the '/' page, and all
proxmox daemons providing a API/UI using libpve-http-server-perl
allow to do such requests unauthenticated (which itself is OK, as
else one could not show the login window at all). As each of such
request produces two log lines in the syslog/journal it's far from
ideal.

A simple reproducer of the possible outcome can be seen with the
following shell script using curl:

> PVEURL='127.0.0.1'
> ARGS='?a'; # send multiple args at once to amplify the per-connection cost
> for c in {a..z}; do for i in {0..9}; do ARGS="$ARGS&$c$i"; done; done
> while true; do curl --insecure --silent --output /dev/null "https://$PVEURL:8006$ARGS"; done

Not really bad, but not nice either, as logging is not too cheap this
has some resource usage cost and noise in the syslog is never nice.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
(cherry picked from commit 4a09623bbdb4306ca00685a0f80ce6f05fa42f3b)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoanyevent: rpcenv is optional and from our child instance
Thomas Lamprecht [Wed, 22 May 2019 06:07:17 +0000 (08:07 +0200)]
anyevent: rpcenv is optional and from our child instance

This fixes the simple-demo, which was regressed with commit
8782148642e4a09c5852781ec057017cc1145f17 were we falsely assumed that
we always have an rpcenv instance here, but actually that's just
optional as it comes from our child class instance

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
(part. cherry picked from commit e52d940029c184fe76e7fd93bf5c09476b3a77bb)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agobuildsys: also cleanup build directory on clean
Thomas Lamprecht [Wed, 22 May 2019 05:23:11 +0000 (07:23 +0200)]
buildsys: also cleanup build directory on clean

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
(cherry picked from commit 8a29f1fce9dbcb25a46cd68caff0300a872afc07)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agobuildsys: no need to include arch detection for arch-independent package
Thomas Lamprecht [Tue, 21 May 2019 20:25:36 +0000 (22:25 +0200)]
buildsys: no need to include arch detection for arch-independent package

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
(cherry picked from commit e6dc4ff34675b17aa63949987a0a7c66796cfab3)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agobuildsys: clean and distclean are phony targets
Thomas Lamprecht [Tue, 21 May 2019 19:43:05 +0000 (21:43 +0200)]
buildsys: clean and distclean are phony targets

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
(cherry picked from commit 584d34a7de4c18b1237f6b443b812b76d1bf162f)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agobuildsys: use dpkg-dev makefile helpers for pkg info
Thomas Lamprecht [Tue, 21 May 2019 19:25:11 +0000 (21:25 +0200)]
buildsys: use dpkg-dev makefile helpers for pkg info

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agobump version to 2.0-13
Thomas Lamprecht [Wed, 3 Apr 2019 11:56:04 +0000 (13:56 +0200)]
bump version to 2.0-13

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agoforward Host header in proxy_request
Wolfgang Bumiller [Tue, 2 Apr 2019 10:22:03 +0000 (12:22 +0200)]
forward Host header in proxy_request

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
5 years agostore Host header in rpc environment
Wolfgang Bumiller [Tue, 2 Apr 2019 10:22:02 +0000 (12:22 +0200)]
store Host header in rpc environment

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
5 years agotls: make dh to openssl 1.1 compatible
Thomas Lamprecht [Fri, 22 Mar 2019 09:32:46 +0000 (10:32 +0100)]
tls: make dh to openssl 1.1 compatible

Effective the same approach used in libanyevent-perl 7.140-3[0]
Stretch is also compatible with this, and we can remove it for
buster/PVE 6 once the libanyevent-perl package transitioned to
from unstable to buster, until then do it ourself to have a
functioning api/proxy...

[0]: https://salsa.debian.org/perl-team/modules/packages/libanyevent-perl/commit/7f3d5721bb915c0c24088c3ff361238938172108

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agobump version to 2.0-12
Thomas Lamprecht [Tue, 26 Feb 2019 06:08:11 +0000 (07:08 +0100)]
bump version to 2.0-12

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agoAdd short comment about users of read_proxy_config
Stoiko Ivanov [Fri, 22 Feb 2019 18:52:00 +0000 (19:52 +0100)]
Add short comment about users of read_proxy_config

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
5 years agomove read_proxy_conf from PVE::API2Tools to new Utils module
Stoiko Ivanov [Fri, 22 Feb 2019 18:51:59 +0000 (19:51 +0100)]
move read_proxy_conf from PVE::API2Tools to new Utils module

move the read_proxy_conf method into a new perl module
'PVE::APIServer::Utils'.
It now takes the proxy_name (e.g. pveproxy, pmgproxy) as variable to be used
for the configfile location (/etc/default/$proxy_name)

This serves as preparation to make pmgproxy configurable in the same way as
pveproxy.

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agoadd ssl fallback values to AnyEvent->new
Stoiko Ivanov [Fri, 22 Feb 2019 18:51:58 +0000 (19:51 +0100)]
add ssl fallback values to AnyEvent->new

This allows for sharing the values between pveproxy and pmgproxy

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
5 years agofollowup: adapt coding style to surrounding
Thomas Lamprecht [Thu, 21 Feb 2019 09:44:26 +0000 (10:44 +0100)]
followup: adapt coding style to surrounding

compression is set to true by default, and we only want to be able to
switch it off, not force it on.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agoDon't override explicit $nocomp with default
Stoiko Ivanov [Thu, 21 Feb 2019 09:35:11 +0000 (10:35 +0100)]
Don't override explicit $nocomp with default

By making compression configurable the $nocomp flag in response got set to
the configured (or default) setting, irrespective of the explicitly passed
value to response.

This broke (e.g.) noVNC connections

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
5 years agoAdd configurable 'compression'
Stoiko Ivanov [Fri, 15 Feb 2019 11:36:00 +0000 (12:36 +0100)]
Add configurable 'compression'

Rationale for disabling compression is the potential for being affected by
the BREACH (CVE-2013-3587) attack and it's considered good practice for https
configuration (see e.g. [0]).

The default remains: to have compression enabled for compressible file-types.

[0] https://cipherli.st/

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
5 years agoAdd configurable 'honor_cipher_order'
Stoiko Ivanov [Fri, 15 Feb 2019 11:35:59 +0000 (12:35 +0100)]
Add configurable 'honor_cipher_order'

Needed to fix #2069.

Prefering the ciphers set in the server, instead of relying on the offer of the
client is considered good practice in TLS1.[012] (see e.g. [0]).

[0] https://cipherli.st/

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
5 years agobump version to 2.0-11
Thomas Lamprecht [Fri, 28 Sep 2018 08:42:07 +0000 (10:42 +0200)]
bump version to 2.0-11

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agofix #1935: read empty line after 200 OK
Dominik Csapak [Fri, 28 Sep 2018 07:36:39 +0000 (09:36 +0200)]
fix #1935: read empty line after 200 OK

commit a4d8bbafbe400be78bebeab169963025dc46e29b
introduced an additional empty line after '200 OK'
for remote-viewer 7 to work, but we also have to read this line
in our own proxy reader else the connection to a remote node does
not work

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
5 years agoUse https for Homepage URL
Rhonda D'Vine [Thu, 6 Sep 2018 09:43:43 +0000 (11:43 +0200)]
Use https for Homepage URL

Signed-off-by: Rhonda D'Vine <rhonda@proxmox.com>
5 years agoAdd unzip to Build-Depends
Rhonda D'Vine [Thu, 6 Sep 2018 09:43:42 +0000 (11:43 +0200)]
Add unzip to Build-Depends

Signed-off-by: Rhonda D'Vine <rhonda@proxmox.com>
5 years agobump version to 2.0-10
Dietmar Maurer [Fri, 17 Aug 2018 06:30:07 +0000 (08:30 +0200)]
bump version to 2.0-10

5 years agofix #1869: send correct http response in spice proxy
Dominik Csapak [Thu, 16 Aug 2018 12:48:12 +0000 (14:48 +0200)]
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>
5 years agowebsocket: set $max_payload_size = 128*1024; (131072)
Dietmar Maurer [Wed, 6 Jun 2018 15:30:40 +0000 (17:30 +0200)]
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.

5 years agolimit websocket frame size
Dietmar Maurer [Wed, 6 Jun 2018 14:41:30 +0000 (16:41 +0200)]
limit websocket frame size

AnyEvent checks rbuf_max after calling the callback (too late), so
we can receive larger data.

5 years agobump version to 2.0-9
Dietmar Maurer [Mon, 28 May 2018 08:36:26 +0000 (10:36 +0200)]
bump version to 2.0-9

5 years agoFix #1684 WebSocket proxy behind a buffered proxy.
René Jochum [Fri, 25 May 2018 16:15:22 +0000 (18:15 +0200)]
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.

5 years agofixup no newline at end of .gitignore
Thomas Lamprecht [Fri, 25 May 2018 14:42:05 +0000 (16:42 +0200)]
fixup no newline at end of .gitignore

5 years agoAdd .gitignore
René Jochum [Fri, 25 May 2018 13:20:57 +0000 (15:20 +0200)]
Add .gitignore

Signed-off-by: René Jochum <rene@jochums.at>
6 years agobump version to 2.0-8
Fabian Grünbichler [Mon, 11 Dec 2017 14:36:42 +0000 (15:36 +0100)]
bump version to 2.0-8

6 years agoauth_handler: respond with passed error if we get a PVE::Exception
Thomas Lamprecht [Thu, 7 Dec 2017 13:00:37 +0000 (14:00 +0100)]
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>
6 years agowhitespace fixup
Wolfgang Bumiller [Fri, 24 Nov 2017 08:25:55 +0000 (09:25 +0100)]
whitespace fixup

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
6 years agoadd 'map' filetype to http-server
Dominik Csapak [Thu, 23 Nov 2017 14:55:56 +0000 (15:55 +0100)]
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>
6 years agodo not send websocket status code to port
Dominik Csapak [Thu, 23 Nov 2017 14:55:55 +0000 (15:55 +0100)]
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>
6 years agobump version to 2.0-7
Dietmar Maurer [Tue, 14 Nov 2017 07:05:38 +0000 (08:05 +0100)]
bump version to 2.0-7

6 years agoadd content type application/x-compressed-tar
Dietmar Maurer [Thu, 9 Nov 2017 06:17:49 +0000 (07:17 +0100)]
add content type application/x-compressed-tar

6 years agoallow API calls to download file contents.
Dietmar Maurer [Wed, 8 Nov 2017 08:23:30 +0000 (09:23 +0100)]
allow API calls to download file contents.

We use this to download backup files with pmg.

6 years agobuild: reformat debian/control
Fabian Grünbichler [Wed, 4 Oct 2017 09:05:33 +0000 (11:05 +0200)]
build: reformat debian/control

using wrap-and-sort -abt

6 years agobump version to 2.0-6
Dietmar Maurer [Thu, 10 Aug 2017 10:06:11 +0000 (12:06 +0200)]
bump version to 2.0-6

6 years agopass $format to rest_handler()
Dietmar Maurer [Thu, 10 Aug 2017 06:47:32 +0000 (08:47 +0200)]
pass $format to rest_handler()

Used by PMG::HTTPServer.

6 years agobump version to 2.0-5
Wolfgang Bumiller [Fri, 2 Jun 2017 10:49:56 +0000 (12:49 +0200)]
bump version to 2.0-5

6 years agoadd json/mp3/oga/svg filetypes
Dominik Csapak [Thu, 11 May 2017 11:01:10 +0000 (13:01 +0200)]
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>
6 years agoincrease max POST data limit to 64 KB
Thomas Lamprecht [Fri, 12 May 2017 07:37:49 +0000 (09:37 +0200)]
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>
6 years agobump version to 2.0-4
Dietmar Maurer [Tue, 2 May 2017 09:56:13 +0000 (11:56 +0200)]
bump version to 2.0-4

6 years agoassume all parameters are utf8 encoded
Dietmar Maurer [Tue, 2 May 2017 07:58:53 +0000 (09:58 +0200)]
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).

7 years agobuildsys: clean: remove *.buildinfo
Wolfgang Bumiller [Thu, 27 Apr 2017 12:02:46 +0000 (14:02 +0200)]
buildsys: clean: remove *.buildinfo

7 years agobump version to 2.0-3
Dietmar Maurer [Mon, 24 Apr 2017 05:43:50 +0000 (07:43 +0200)]
bump version to 2.0-3

7 years agoavoid locale specific time stamps
Dietmar Maurer [Mon, 24 Apr 2017 05:37:57 +0000 (07:37 +0200)]
avoid locale specific time stamps

7 years agobump version to 2.0-2
Wolfgang Bumiller [Fri, 21 Apr 2017 09:52:21 +0000 (11:52 +0200)]
bump version to 2.0-2

7 years agofix #1332: allow ECDHE with all supported curves
Fabian Grünbichler [Thu, 30 Mar 2017 09:54:39 +0000 (11:54 +0200)]
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>
7 years agobump version to 2.0-1 for debian stretch
Dietmar Maurer [Fri, 10 Mar 2017 07:51:30 +0000 (08:51 +0100)]
bump version to 2.0-1 for debian stretch

7 years agoMakefile: use "--product pve,pmg --dist stretch" for upload target
Dietmar Maurer [Wed, 8 Mar 2017 16:35:17 +0000 (17:35 +0100)]
Makefile: use "--product pve,pmg --dist stretch" for upload target

7 years agocleanup error message for non-existent files
Dietmar Maurer [Fri, 3 Mar 2017 05:32:25 +0000 (06:32 +0100)]
cleanup error message for non-existent files

7 years agobuildsys: make job safety
Wolfgang Bumiller [Tue, 7 Feb 2017 14:23:34 +0000 (15:23 +0100)]
buildsys: make job safety

7 years agobump version to 1.0-4
Dietmar Maurer [Sat, 21 Jan 2017 15:37:07 +0000 (16:37 +0100)]
bump version to 1.0-4

7 years agoadd debian triggers file
Dietmar Maurer [Sat, 21 Jan 2017 15:35:36 +0000 (16:35 +0100)]
add debian triggers file

to correctly restart API daemons on updates.

7 years agouse ${perl:Depends}
Dietmar Maurer [Sat, 21 Jan 2017 15:23:37 +0000 (16:23 +0100)]
use ${perl:Depends}

to avoid warning when building the package

7 years agobump version to 1.0-3
Dietmar Maurer [Sat, 21 Jan 2017 15:20:02 +0000 (16:20 +0100)]
bump version to 1.0-3

7 years agoadd a more complex demo
Dietmar Maurer [Sat, 21 Jan 2017 15:08:36 +0000 (16:08 +0100)]
add a more complex demo

7 years agomove simple-demo.pl -> examples/simple-demo.pl
Dietmar Maurer [Sat, 21 Jan 2017 14:48:04 +0000 (15:48 +0100)]
move simple-demo.pl -> examples/simple-demo.pl

7 years agocall Net::SSLeay::ERR_clear_error after all handlers
Dietmar Maurer [Sat, 21 Jan 2017 10:55:18 +0000 (11:55 +0100)]
call Net::SSLeay::ERR_clear_error after all handlers

just to be sure.

7 years agocall Net::SSLeay::ERR_clear_error() after auth_handler
Dietmar Maurer [Fri, 20 Jan 2017 17:15:21 +0000 (18:15 +0100)]
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.

7 years agoremove simple-demo.pem in distclean
Dietmar Maurer [Fri, 20 Jan 2017 17:11:42 +0000 (18:11 +0100)]
remove simple-demo.pem in distclean

Avoid generating to many different certs (confuses the browser).

7 years agoavoid warnings when clients disconnects early
Dietmar Maurer [Fri, 20 Jan 2017 10:22:40 +0000 (11:22 +0100)]
avoid warnings when clients disconnects early

7 years agoimplement more reasonable ticket verification for demo server
Dietmar Maurer [Tue, 17 Jan 2017 06:38:23 +0000 (07:38 +0100)]
implement more reasonable ticket verification for demo server

Do not pass secrets to client.

7 years agoset CN=$nodename for demo server certificate
Dietmar Maurer [Tue, 17 Jan 2017 06:26:04 +0000 (07:26 +0100)]
set CN=$nodename for demo server certificate

7 years agouse openssl instead of make-ssl-cert to generate demo cert
Dietmar Maurer [Tue, 17 Jan 2017 05:50:06 +0000 (06:50 +0100)]
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.

7 years agobump version to 1.0-2
Dietmar Maurer [Mon, 16 Jan 2017 17:39:56 +0000 (18:39 +0100)]
bump version to 1.0-2

7 years agosimple-demo.pl: simple demo server for testing
Dietmar Maurer [Mon, 16 Jan 2017 14:10:04 +0000 (15:10 +0100)]
simple-demo.pl: simple demo server for testing

7 years agoextract_auth_cookie: always call uri_unescape($ticket)
Dietmar Maurer [Mon, 16 Jan 2017 13:24:21 +0000 (14:24 +0100)]
extract_auth_cookie: always call uri_unescape($ticket)

should not harm.

7 years agouse canonical flag for json format
Dietmar Maurer [Mon, 16 Jan 2017 12:05:21 +0000 (13:05 +0100)]
use canonical flag for json format

7 years agoimprove error message
Dietmar Maurer [Mon, 16 Jan 2017 10:40:45 +0000 (11:40 +0100)]
improve error message

7 years agofix debian/rules permissions
Fabian Grünbichler [Mon, 16 Jan 2017 10:40:00 +0000 (11:40 +0100)]
fix debian/rules permissions

7 years agobuild script improvement
Fabian Grünbichler [Mon, 16 Jan 2017 10:34:50 +0000 (11:34 +0100)]
build script improvement

build with dpkg-buildpackage (in temp dir), instead of
install-ing the files manually and then pretending to build
with dpkg-buildpackage.

this makes the whole fakeroot/root handling simpler, and
makes "make deb" a simple wrapper around building the
package, like it should be.

7 years agopass basic server configuration to formatter functions
Dietmar Maurer [Sun, 15 Jan 2017 10:43:48 +0000 (11:43 +0100)]
pass basic server configuration to formatter functions

7 years agoFormatter/HTML: only display description if we have one
Dietmar Maurer [Sun, 15 Jan 2017 10:04:02 +0000 (11:04 +0100)]
Formatter/HTML: only display description if we have one

7 years agoadd some inline docs
Dietmar Maurer [Sun, 15 Jan 2017 09:54:26 +0000 (10:54 +0100)]
add some inline docs

7 years agoremove base_handler_class from required arguments
Dietmar Maurer [Sun, 15 Jan 2017 08:25:24 +0000 (09:25 +0100)]
remove base_handler_class from required arguments

7 years agoremove all references to rpcenv (we can do this in the subclass).
Dietmar Maurer [Sun, 15 Jan 2017 07:34:46 +0000 (08:34 +0100)]
remove all references to rpcenv (we can do this in the subclass).

7 years agoFormatter/Bootstrap.pm; use configured cookie_name
Dietmar Maurer [Sat, 14 Jan 2017 16:16:22 +0000 (17:16 +0100)]
Formatter/Bootstrap.pm; use configured cookie_name

7 years agopass $title to formatter functions
Dietmar Maurer [Sat, 14 Jan 2017 15:39:25 +0000 (16:39 +0100)]
pass $title to formatter functions

7 years agoinclude jquery-3.3.1.min.js
Dietmar Maurer [Sat, 14 Jan 2017 15:00:29 +0000 (16:00 +0100)]
include jquery-3.3.1.min.js

7 years agoBootstrap.pm: remove support for IE8 and older
Dietmar Maurer [Sat, 14 Jan 2017 14:42:36 +0000 (15:42 +0100)]
Bootstrap.pm: remove support for IE8 and older

7 years agoinclude bootstrap-3.3.7-dist.zip files
Dietmar Maurer [Sat, 14 Jan 2017 14:36:15 +0000 (15:36 +0100)]
include bootstrap-3.3.7-dist.zip files

7 years agonew helper add_dirs (copied from pveproxy.pm)
Dietmar Maurer [Sat, 14 Jan 2017 13:26:33 +0000 (14:26 +0100)]
new helper add_dirs (copied from pveproxy.pm)

7 years agodepend on perl
Dietmar Maurer [Sat, 14 Jan 2017 13:25:57 +0000 (14:25 +0100)]
depend on perl

7 years agowhite space cleanups
Dietmar Maurer [Sat, 14 Jan 2017 12:18:27 +0000 (13:18 +0100)]
white space cleanups

7 years agoadd new hook function to generate CSRF token
Dietmar Maurer [Sat, 14 Jan 2017 12:16:59 +0000 (13:16 +0100)]
add new hook function to generate CSRF token

This avoid the reference to PVE::AccessControl.

7 years agopass auth_handler result to formatters
Dietmar Maurer [Sat, 14 Jan 2017 10:12:05 +0000 (11:12 +0100)]
pass auth_handler result to formatters

In case somebody want to display that info.

7 years agorework formatter registration
Dietmar Maurer [Sat, 14 Jan 2017 09:25:10 +0000 (10:25 +0100)]
rework formatter registration

Do the whole thing inside PVE/APIServer/Formatter.pm

7 years agoadd generic formatter framework
Dietmar Maurer [Fri, 13 Jan 2017 18:05:21 +0000 (19:05 +0100)]
add generic formatter framework

7 years agorename class to PVE::APIServer::AnyEvent
Dietmar Maurer [Fri, 13 Jan 2017 17:18:13 +0000 (18:18 +0100)]
rename class to PVE::APIServer::AnyEvent

So that we can move all api server related code into PVE::APIServer::*.

7 years agodebian/control: add missing dependencies
Dietmar Maurer [Fri, 13 Jan 2017 13:55:16 +0000 (14:55 +0100)]
debian/control: add missing dependencies

7 years agoavoide dependency on PVE::AccessControl
Dietmar Maurer [Fri, 13 Jan 2017 13:53:28 +0000 (14:53 +0100)]
avoide dependency on PVE::AccessControl

add new abstract function verify_spice_connect_url().

7 years agomove abstract fuctions to end of file
Dietmar Maurer [Fri, 13 Jan 2017 13:45:56 +0000 (14:45 +0100)]
move abstract fuctions to end of file

7 years agoAsyncHTTPServer.pm: fix dependencies, remove handler implementation
Dietmar Maurer [Fri, 13 Jan 2017 12:33:22 +0000 (13:33 +0100)]
AsyncHTTPServer.pm: fix dependencies, remove handler implementation

So this is an abstract, reusable class now.

7 years agofix/change class name to PVE::AsyncHTTPServer
Dietmar Maurer [Fri, 13 Jan 2017 12:16:54 +0000 (13:16 +0100)]
fix/change class name to PVE::AsyncHTTPServer

7 years agoinitial import
Dietmar Maurer [Fri, 13 Jan 2017 11:55:20 +0000 (12:55 +0100)]
initial import

The PVE/AsyncHTTPServer.pm code is copied from the pve-manager
package (PVE/HTTPServer.pm) and renamed.