155 Commits

Author SHA1 Message Date
Alex Ellis (OpenFaaS Ltd)
d698f56d0f Bump latest components in stack
Covers #1291 for x86_64

Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
2019-08-22 16:20:03 +01:00
Alex Ellis
73106565d7 Add logs support for Swarm by bumping versions
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2019-07-31 11:12:31 +01:00
Vivek Singh
490d74f885 Update gateway to 0.13.9 for swarm
Signed-off-by: Vivek Singh <vivekkmr45@yahoo.in>
2019-06-15 12:24:04 +01:00
Alex Ellis
e3b77514d0 Add error handling to basic auth injector
Fixes a problem where basic auth was disabled and a nill pointer
was hit, causing a panic.

Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2019-06-09 20:08:39 +01:00
Alex Ellis
d2965df9f2 Remove un-used RoutelessProxy
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2019-06-09 20:08:39 +01:00
Alex Ellis
0758e484f7 Switch to external auth
This commit moves the OpenFaaS gateway from using in-process
basic-auth for everything to use an external auth URL instead.

When auth is not enable, this functionality is not added to the
handlers and behaves as before. When enabled, the configured
plugin with authenticate requests.

Tested on Docker Swarm with positive and negative tests.

Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2019-06-09 20:08:39 +01:00
Alex Ellis
6d8ebc65f1 Deploy basic auth plugin
As part of #1209, this change deploys, but does not enable the
new basic-auth plugin service.

Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2019-06-06 18:54:08 +01:00
Edward Wilde
74a7584f8f Updates faas-swarm to current release 6.2
Signed-off-by: Edward Wilde <ewilde@gmail.com>
2019-05-14 10:31:23 +01:00
Alex Ellis
139062173a Bump compose to use gateway_invoke for nats-queue-worker
This change means the gateway is used to invoke functions
asynchronously rather than directly so that the scale from zero
path can execute.

Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2019-05-07 18:18:11 +01:00
Alex Ellis
fd055379e6 Update faas gateway to 0.12.0
0.12.0 moves the Prometheus port to 8082 (internal) and not
exposed on the network

Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2019-04-03 09:39:27 +01:00
Vivek Singh
54eda5ec0d Run metrics server in a separate method
This commit adds changes to run metrics server in a separate method and
also removed port 8082 from exposed port a/c to review comments.

It also uses a smaller static timeout value for new server.

Signed-off-by: Vivek Singh <vivekkmr45@yahoo.in>
2019-03-09 17:28:46 +00:00
Vivek Singh
90ddd56985 Add new HTTPServer to serve /metrics on port 8082
This commit runs a new HTTPServer on port 8082 in a goroutine to serve
/metrics endpoint on a different port.

This also update the configurations and compose files.

Fixes: #1081

Signed-off-by: Vivek Singh <vivekkmr45@yahoo.in>
2019-03-09 17:28:46 +00:00
Vivek Singh
50e5258c11 Bump queue-worker version to 0.7.1
Signed-off-by: Vivek Singh <vivekkmr45@yahoo.in>
2019-02-28 19:49:39 +00:00
Lucas Roesler
3bcc10a07e Upgrade prom and alert manager to 2.7.1 and 0.16.1
**What**
- Removes the `alert` label in the scale-up alert
- Updates the annotaitons to use the `function_name` label instead of
the `instance` label that was removed.
- Per prometheus/prometheus#4836 and the related mailing list discussion
https://groups.google.com/d/msg/prometheus-users/7Ul6ngc7Ogs/j_YDszV5BwAJ
the alert value should not be included in the alert labels otherwise
each calculation of the alert is treated like a new alert and then the
use of `for 5s` will not behave as expected.
- Ports the resoltuion openfaas/faas-netes#372

Signed-off-by: Lucas Roesler <roesler.lucas@gmail.com>
2019-02-21 09:51:38 +00:00
Radoslav Dimitrov
f2ac7b906c Bump Prometheus to 2.7.1
Signed-off-by: Radoslav Dimitrov <dimitrovr@vmware.com>
2019-02-20 09:23:01 +00:00
Alex Ellis
bceb69ec62 Update gateway to 0.11.1 and queue-worker to 0.7.0
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2019-02-12 17:56:08 +00:00
Radoslav Dimitrov
acaefdb839 Bump Prometheus to 2.7.0
Signed-off-by: Radoslav Dimitrov <rdimitrow@gmail.com>
2019-02-05 20:16:25 +00:00
Alex Ellis
cf67fdba71 Bump to 0.11.0 gateway
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2019-02-04 12:09:41 +00:00
Radoslav Dimitrov
c2877d0904 Update all Docker Compose files to latest images
Signed-off-by: Radoslav Dimitrov <dimitrovr@vmware.com>
2019-01-30 11:58:15 +00:00
Radoslav Dimitrov
59c88bc7e5 Reconcile Docker Compose files for each architecture
Signed-off-by: Radoslav Dimitrov <dimitrovr@vmware.com>
2019-01-30 11:58:15 +00:00
Alex Ellis (VMware)
b4a550327d Re-vendor queue-worker publisher for reconnect
- re-vendor queue-worker for publisher via 0.6.0
- bump queue-worker version to 0.6.0 in docker-compose.yml for
AMD64
- use new naming for NATS of nats -> NATS in variables where
required
- add default reconnect of 60 times, 2 seconds apart.

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2019-01-29 15:15:48 +00:00
Alex Ellis (VMware)
e63150ef70 Add max_idle_conns_* to gateway compose file
- adds max_idle_conns_* default values to  docker-compose.yml to
make it easier to override as a user doing testing/tuning
- make Golang durations easier to read 300s -> 5m

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2019-01-29 15:15:48 +00:00
Lucas Roesler
ee7cbaa360 Bump gateway version to 0.10.2 in compose
**What**
- Bumps the gateway version to 0.10.2 in the default docker-compose file

**Why**
- Finishes the work started in #1049 to enable basic auth for the alert
endpoint, this will allow the deployment via compose to leverage the
basic auth

Signed-off-by: Lucas Roesler <roesler.lucas@gmail.com>
2019-01-29 10:13:28 +00:00
Lucas Roesler
bfa869ec8c Revert docker tag bump to 0.10.0
**What**
- Revert to the original docker tags because we want to for the bump
until after the official release

Signed-off-by: Lucas Roesler <roesler.lucas@gmail.com>
2019-01-24 17:45:33 +00:00
Lucas Roesler
f61735b155 Add basic auth to the system alert endpoint
**What**
- Protect the `/system/alert` endpoint when basic auth is enabled
- Update the alert manager config to send the basic auth credentials
- Bump the gateway version

Signed-off-by: Lucas Roesler <roesler.lucas@gmail.com>
2019-01-24 17:45:33 +00:00
Bart Smykla
954b68308e Bumped version of faas-swarm to 0.6.1
I changed the version of image to current one,
which implements secret management endpoint
from 0.5.0 to 0.6.1 in docker-compose.yml (x86_64)

Version of openfaas/gateway was also increased to 0.9.14

Signed-off-by: Bart Smykla <bsmykla@vmware.com>
2019-01-11 11:44:01 +00:00
Lucas Roesler
830159bda3 Bump the faas-swarm version in the compose yml
**What**
- Update the fass-swarm version to 0.5.0

Signed-off-by: Lucas Roesler <roesler.lucas@gmail.com>
2018-11-29 10:58:22 +00:00
Ivana Yovcheva
fe6974c74a Fix scale from zero to be true by default
Signed-off-by: Ivana Yovcheva (VMware) <iyovcheva@vmware.com>
2018-11-22 13:30:20 +01:00
Alex Ellis (VMware)
956bfed53d Bump gw to 0.9.11
Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-11-21 14:19:04 +01:00
Martin Dekov (VMware)
98a76c6949 Bump gateway to 0.9.10
Bumping gateway image for armhf and x64-86 to be the latest
0.9.10

Signed-off-by: Martin Dekov (VMware) <mdekov@vmware.com>
2018-11-12 10:24:56 +00:00
Lucas Roesler
7e36b2477d Update nats-streaming to 0.11.2
Signed-off-by: Lucas Roesler <roesler.lucas@gmail.com>
2018-10-26 08:21:10 +01:00
Lucas Roesler
cbf39f0069 Bump nats-streaming version to 0.11.0
**What**
- Bumpe nats-streaming version to 0.11.0 in the docker-compose files
- Addresses #790

Signed-off-by: Lucas Roesler <roesler.lucas@gmail.com>
2018-10-26 08:21:10 +01:00
Alex Ellis (VMware)
4a6c6afe94 Bump gw version to 0.9.7
Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-10-21 12:49:43 +01:00
Radoslav Dimitrov
31e5439550 Bump queue-worker version to 0.5.4
Signed-off-by: Radoslav Dimitrov <rdimitrow@gmail.com>
2018-10-19 12:05:50 +01:00
Radoslav Dimitrov
2d52206c79 Bump faas-swarm version to 0.4.4
Signed-off-by: Radoslav Dimitrov <rdimitrow@gmail.com>
2018-10-19 12:05:50 +01:00
Radoslav Dimitrov
456e4f5c2f Bump the gateway version to 0.9.6
Signed-off-by: Radoslav Dimitrov <rdimitrow@gmail.com>
2018-10-19 08:45:05 +01:00
Vivek Singh
41876cc932 Update queue worker version to 0.5.3
Signed-off-by: Vivek Singh <vivekkmr45@yahoo.in>
2018-10-04 15:28:35 +03:00
Alex Ellis (VMware)
4476a65dac Bump g/w 0.9.5 and faas-swarm to 0.4.3
Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-09-19 21:01:55 +01:00
Stefan Prodan
2f163e556d Bump queue-worker to v0.5.2
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2018-09-12 11:59:09 +01:00
Alex Ellis (VMware)
326236763d Lock down faas-swarm
- This commit moves us to faas-swarm 0.4.2 which uses basic auth
(when enabled) to prevent functions or other services from
accessing the administrative API endpoints.

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-09-10 13:07:01 +01:00
Martin Dekov (VMware)
0cc0201185 Bump gateway to 0.9.2 for docker-compose and docker-compose-armhf
Bumping gateway to latest 0.9.2 release for docker-compose.yml
and docker-compose-armhf.yml files

Signed-off-by: Martin Dekov (VMware) <mdekov@vmware.com>
2018-09-10 12:56:42 +01:00
Radoslav Dimitrov
c221a525bf Bump gateway to 0.9.1
Signed-off-by: Radoslav Dimitrov <rdimitrow@gmail.com>
2018-09-06 17:20:06 +01:00
Alex Ellis (VMware)
ffd81afd02 Refactor #843
Code-review/refactoring for #843. Closes #843.

FaaSHandlers has had info and query handlers added to its list
of types for consistency.

Secrets added to queue-worker component ready for next PR.

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-09-05 09:47:49 +01:00
Patricio Diaz
3b4c1d90eb Bump Prometheus & AlertManager
Updated Swarm image versions for Prometheus &
Alertmanager to match Kubernetes stack

- Prometheus: v2.2.0 => v2.3.1
- Alertmanager: v0.15.0-rc.0 => v0.15.0

Signed-off-by: Patricio Diaz <padiazg@gmail.com>
2018-08-29 19:42:29 +01:00
Alex Ellis (VMware)
810e11c1f6 Bump GW to 0.9.0
Adds PATH support over HTTP for functions.

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-08-29 12:47:23 +01:00
Martin Dekov (VMware)
91b6c24494 Bump up the gateway to 0.8.11
I am moving gateway build version to 0.8.11

Signed-off-by: Martin Dekov (VMware) <mdekov@vmware.com>
2018-08-22 20:12:04 +01:00
Ivana Yovcheva (VMware)
b18433c6e7 Bump up faas-swarm to 0.4.1
This updates faas-swarm version including a fix for annotations.
In version 0.4.0 the prefix was not removed from the annotation
key, which was causing errors trying to get the value

Signed-off-by: Ivana Yovcheva (VMware) <iyovcheva@vmware.com>
2018-08-09 16:16:21 +01:00
Alex Ellis (VMware)
90335018ff Add read-only support and annotations
The update to the gateway and faas-swarm add read-only containers
and the ability to use annotations in the function schema.

faas-cli 0.6.17 is required.

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-08-01 15:50:32 +01:00
Vivek Singh
4cbb7d968d Bump gateway version to 0.8.7
This commit bumps gateway version to 0.8.7 in docker-compose.yml and
also adds `scale_from_zero` environment variable to the gateway.

Fixes: #780

Signed-off-by: Vivek Singh <vivekkmr45@yahoo.in>
2018-07-21 09:33:08 +01:00
Alex Ellis (VMware)
8ede8966cd Bump gateway version
Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-07-16 12:50:08 +01:00