1566 Commits

Author SHA1 Message Date
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
andmos
5224dcc875 Added GBFS bikeshare integration function for example repos
Changed description

Signed-off-by: andmos <andreas.mosti@gmail.com>
2019-05-25 17:55:26 +01:00
Burton Rheutan
5bb293e235 Add OHV blog post to community
Discovered blog post via Twitter and added with other posts to community file

Signed-off-by: Burton Rheutan <rheutan7@gmail.com>
2019-05-24 21:42:30 +01:00
Martin Dekov
497afce51e Add Blockchain as a service event
Adding event in Seattle, USA about blockchain with openfaas
and docker by Dean Shelton

Signed-off-by: Martin Dekov <mdekov@vmware.com>
2019-05-24 17:03:58 +02:00
Matias Pan
a485c302c4 Add blog post and openfaas templates
Signed-off-by: Matias Pan <matias.pan26@gmail.com>
2019-05-16 19:55:06 +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
939a9befec Add missing blogs from openfaas.com
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2019-05-14 08:24:39 +01:00
Erwin Staal
3675db0ef0 Added a new blog entry to the community file
Signed-off-by: Erwin Staal <info@staal-it.nl>
2019-05-14 08:09:57 +01:00
Alex Ellis
f511feb140 Add ARM64 Docker images for Prom/AlertManager
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2019-05-09 11:19:16 +00:00
Arno Broekhof
c73e065f71 Added teqnation talk
Added teqntaion talk to events

Signed-off-by: Arno Broekhof <arnobroekhof@gmail.com>
2019-05-08 20:47:26 +01:00
Erwin Staal
b512afd263 Update community.md
Added a new blog entry

Signed-off-by: Erwin Staal <erwinstaal@gmail.com>
2019-05-08 20:47:01 +01:00
Alex Ellis
e84ba2e7e7 Update KubeCon names
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2019-05-08 16:50:01 +01:00
Alex Ellis
c211e6629f Add OpenFaaS in-person workshop by Ferenc
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2019-05-07 18:27:09 +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
681d8841e3 Add blog by Prasenjit
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2019-05-07 17:18:12 +01:00
Alex Ellis
3e50256576 Add new events for KubeCon and week leading up
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2019-05-07 16:51:36 +01:00
Burton Rheutan
5056ad0e5e Add Dockercon Serverless Summit to community
Signed-off-by: Burton Rheutan <rheutan7@gmail.com>
2019-04-27 09:20:19 +01:00
Lucas Roesler
fb101fc3c5 Ensure contib prom docker tags match the installed version
**What**
- For each prometheus and alert manager contrib makefile, ensure that
the docker tag matches the version installed in the dockerfile.  This
will ensure that no one pushes mistmatched versions

Signed-off-by: Lucas Roesler <roesler.lucas@gmail.com>
2019-04-27 09:18:35 +01:00