1583 Commits

Author SHA1 Message Date
Radoslav Dimitrov
48c29f8ab5 Remove deploy-stack.armhf.sh script
Signed-off-by: Radoslav Dimitrov <rdimitrow@gmail.com>
2019-06-16 15:30:49 +01:00
Ron Rivera
a88c411e01 Added OpenFaaS blog post.
Signed-off-by: Ron Rivera <roncrivera@gmail.com>
2019-06-16 15:29:43 +01:00
Sargun Dhillon
b019f6ca54 Add Concurrency Limiter
This enables limiting concurrency. It is a naive approach which
will reject requests as soon as they exceed the maximum number
of in-flight requests.

It is a port of the following PR from the new watchdog code:
https://github.com/openfaas-incubator/of-watchdog/pull/54

Signed-off-by: Sargun Dhillon <sargun@sargun.me>
Signed-off-by: Lucas Roesler <roesler.lucas@gmail.com>
2019-06-16 15:23:20 +01:00
Richard Gee
45cf4db4cb Update FUNDING.yml to enable github/alexellis
Detail was removed on 10th June with a comment that it will be enabled once GitHub provide access to the beta.  This access was provided on 12th June hence re-enabling.

Signed-off-by: Richard Gee <richard@technologee.co.uk>
2019-06-16 15:20:55 +01:00
Burton Rheutan
a987d2147b Add additional fields to the UI
Adding additional inputs for Environment variables, Secrets,
Labels, and annotations so that more advanced functions can
be deployed through the UI.

This also allows more advanced functions to be provided via
the store. Allowing modification to secret values, and
environment variables which will allow functions like a
Slack Bot function to be deployed through the store adn
configured with an environment variable

Signed-off-by: Burton Rheutan <rheutan7@gmail.com>
2019-06-16 14:58:20 +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
Julien Bisconti
84d58c3425 Add talk @ GoWayFest
Signed-off-by: Julien Bisconti <julien.bisconti@gmail.com>
2019-06-15 09:08:22 +01:00
Alex Ellis
6481b683f2 Add ca-certs to multi-arch gateways
Adds package to armhf / arm64 for use with plugins.

Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2019-06-14 19:19:15 +01:00
Alex Ellis
e3c976a428 Fix error handling for ExternalAuth
This corrects an issue where the error body was being hidden
for the external auth handler. It also adds the ca-certs into
the runtime Docker image for when the gateway is calling an
external plugin exposed over HTTPS.

Tested with OAuth2 plugin.

Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2019-06-14 19:17:25 +01:00
Kevin Turcios
3b027d3005 Add blog post on OpenFaaS/K8s client
Signed-off-by: Kevin Turcios <kevin_turcios@outlook.com>
2019-06-11 08:36:36 +01:00
Alex Ellis
f7cfafa967
Update FUNDING.yml 2019-06-10 18:15:09 +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
1cf030da48 Differentiate external service auth from user auth
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
701708fe0e Update faas-provider version
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2019-06-08 10:16:30 +01:00
Alex Ellis
678e93599e Update .gitignore
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2019-06-08 10:15:55 +01:00
Alex Ellis
16aba728c7 Enable custom filename for auth credentials
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2019-06-08 10:13:34 +01:00
Alex Ellis
d6b3847fbd Add body from basic auth plugin.
Fixes issue by adding unit test to make sure the body from
the plugin is written correctly and proxied to the client.

Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2019-06-07 10:11:40 +01:00
Alex Ellis
ef811783fb Pass headers back to client from auth plugin
Fix for external auth wrapper handler. Written by introducing
a broken unit test. Whenever the auth plugin returns a request
as not authorized, we must pass back any headers set by the
plugin.

Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2019-06-07 09:46:30 +01:00
Alex Ellis
6beca8f59b Pass headers when using external auth
Fixes issue found in e2e testing where the headers were not
being passed to the basic-auth-plugin. This change makes sure
the upstream check gets all headers copied in before making
the call.

Tested with negative unit tests before writing fix.

Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2019-06-07 09:37:03 +01:00
Carlos Panato
8fe40406fa redirect to another sample
Signed-off-by: Carlos Panato <ctadeu@gmail.com>
2019-06-06 18:55:43 +01:00
Carlos Panato
86b37acae7 update dockerfile to add user
Signed-off-by: Carlos Panato <ctadeu@gmail.com>
2019-06-06 18:55:43 +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
Vivek Singh
03ebf167c0 Add missing blogs to community file
Signed-off-by: Vivek Singh <vivekkmr45@yahoo.in>
2019-06-05 19:58:09 +01:00
Alex Ellis
7be07e2668 Fix broken test
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2019-06-05 18:28:26 +01:00
Alex Ellis
c9b5e5f146 Move to use WithTimeout instead of WithDeadline for context
These two functions are effectively the same, with the former
being a wrapper for the later.

Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2019-06-05 18:13:49 +01:00
Alex Ellis
35508ac70b Add explicit deadline for auth request
An explicit timeout is passed to the handler and a new unit test
proves that the functionality is in place. A additional return
statement was needed in the handler as pointed out by
@stefanprodan.

Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2019-06-05 18:13:49 +01:00
Alex Ellis
a66097a9f9 Add config options for auth proxy
Adds two new environment variables and unit tests to validate
positive and default use-cases.

auth_proxy_url
auth_proxy_pass_body

Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2019-06-05 18:13:49 +01:00
Alex Ellis
5b2a037e7e Add external auth handler
This commit adds an external auth handler which can be used to
wrap existing handlers, so that they delegate their requests
to an upstream URL before allowing a request to pass through
to an upstream API.

New handler tested with unit tests.

Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2019-06-05 18:13:49 +01:00
Alex Ellis
c48be47db9 Copy response headers back to client
Headers such as Realm / etc are important for auth proxies, so
this change and unit test make sure they get copied back to the
client.

Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2019-06-05 18:13:39 +01:00
Alex Ellis
95d4d50e8e Update handler path
As per comment from @stefanprodan, the path for the handler
was incorrect in the run stage of the Dockerfile.

Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2019-06-05 18:13:39 +01:00
Alex Ellis
49b7c03285 Add unit test for returning headers
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2019-06-05 18:13:39 +01:00
Alex Ellis
3edf499fac Add configuration options
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2019-06-05 18:13:39 +01:00
Alex Ellis
d6ef9cba43 Add errors package
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2019-06-05 18:13:39 +01:00
Alex Ellis
02cf70c6f5 Add basic auth plugin
This plugin can be tested as a stand-alone Golang app, or
deployed as a Docker image with the following image:
openfaas/basic-auth-plugin:0.1.0

Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2019-06-05 18:13:39 +01:00
Alex Ellis
6ff02b6de9 Update order of sponsorship links
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2019-06-05 08:53:26 +01:00
andmos
89e6b5d3f2 Added link to blogpost about running bikeshare functions with openfaas
Signed-off-by: andmos <andreas.mosti@gmail.com>
2019-06-05 07:31:04 +01:00
Alex Ellis
ff45689616 Try to re-order links
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2019-06-04 22:59:41 +01:00
Alex Ellis
3d69bb3804 De-dupe CommunityBridge link
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2019-06-04 22:58:33 +01:00
Alex Ellis
e9ca4628db
Update funding file for Community Bridge URL
Update funding file for Community Bridge URL
    
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2019-06-04 22:57:06 +01:00
Alex Ellis
0449addbf1 Add funding file
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2019-06-04 22:54:55 +01:00
Carson Anderson
303e37a47b Add ContainerWorld presentation to 2019 events
Signed-off-by: Carson Anderson <ca@carsonoid.net>
2019-05-28 17:12:32 +01:00
Burton Rheutan
0a1e78abea Add 2 videos to community file
Adding the recording of the Dockercon OpenSource Summit: Serverless
as well as the code.talks Live Example to the community file

Signed-off-by: Burton Rheutan <rheutan7@gmail.com>
2019-05-28 15:04:52 +01:00
Martin Dekov
5f5f343fc1 Adding event in community file
Adding event OpenFaaS - mit Docker einfach Serverless
to the Events in the community.md file

Signed-off-by: Martin Dekov <mdekov@vmware.com>
2019-05-27 11:59:00 +01:00
Martin Dekov
59956b1070 Adding event in Ratingen Germany
Adding event OpenFaaS - mit Docker einfach Serverless by
Frank Pommerening in Ratingen Germany to community file

Signed-off-by: Martin Dekov <mdekov@vmware.com>
2019-05-27 09:23:30 +01:00
Alex Ellis
364a43088c Enable experimental Docker CLI
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2019-05-26 20:17:33 +01:00
Alex Ellis
64904b163f Enable experimental CLI for manifests
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2019-05-26 20:05:47 +01:00
Alex Ellis
a03196342d Push multi-arch image for watchdog
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2019-05-26 19:51:06 +01:00
Edward Wilde
edf53966ab Adds ContainerDays EU and terraform provider talk
Signed-off-by: Edward Wilde <ewilde@gmail.com>
2019-05-26 11:47:45 +01:00