30 Commits

Author SHA1 Message Date
Alex Ellis (OpenFaaS Ltd)
e778a3a6de Move to Alpine 3.16 and add blog posts
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alex@openfaas.com>
2022-05-26 15:03:48 +01:00
Alex Ellis (OpenFaaS Ltd)
0d7ace76b6 Pin Alpine Linux patch version
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
2022-05-06 17:43:02 +01:00
Alex Ellis (OpenFaaS Ltd)
4783845bc2 Update Go module for basic-auth and remove Gopkg file
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
2022-05-06 17:40:59 +01:00
Alex Ellis (OpenFaaS Ltd)
b4293967d2 Upgrade to alpine:3.15 where possible
Upgrades OS for some base images, no expected issues.

Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
2022-02-21 10:30:22 +00:00
Alex Ellis (OpenFaaS Ltd)
a07ef4c194 Use the latest license-check binary
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
2022-01-24 16:09:12 +00:00
Alex Ellis (OpenFaaS Ltd)
a9a77f0eca Update to Alpine 3.14 for base images
3.13 has vulnerabilities

Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
2021-07-27 09:29:43 +01:00
Alex Ellis (OpenFaaS Ltd)
4bdb580ae7 Update provider to v0.17.0
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
2021-02-26 08:53:26 +00:00
Alex Ellis (OpenFaaS Ltd)
77be2f3403 Update to latest Alpine base image
Version alpine:3.13 is now available

Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
2021-01-31 09:23:55 +00:00
Alistair Hey
ca3d53c0a5 Add publish step to github actions
Signed-off-by: Alistair Hey <alistair@heyal.co.uk>
2020-12-10 14:54:38 +00:00
Alistair Hey
e3b18e6324 Convert Basic-Auth to multi-arch
Signed-off-by: Alistair Hey <alistair@heyal.co.uk>
2020-12-10 14:54:38 +00:00
Alistair Hey
a5583074e0 Convert Gateway to Github Actions
Signed-off-by: Alistair Hey <alistair@heyal.co.uk>
2020-12-10 14:54:38 +00:00
Thomas Schmidt
67598e58c5 Update projects to use Go 1.13
Fixes #1442

Signed-off-by: Thomas Schmidt <thomaschmidt@gmail.com>
2020-02-22 19:01:49 +00:00
hasheddan
5fa7e0f8a0 Use license-check docker image instead of curl
Optimizes Docker builds by copying from license-check Docker image
instead of using curl to download the tool.

Signed-off-by: hasheddan <georgedanielmangum@gmail.com>
2020-02-04 15:51:03 +00:00
Alex Ellis (OpenFaaS Ltd)
80b6976c10 Update Golang versions to 1.12
Tested with local Docker build for each component.

Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
2019-12-27 17:53:19 +00:00
Alex Ellis (OpenFaaS Ltd)
b45e2a52a4 Bump alpine to 3.11
There's a new release which appears to have no apparent down-
sides or breakages.

https://www.alpinelinux.org/posts/Alpine-3.11.2-released.html

Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
2019-12-27 10:08:02 +00:00
Karthick Prabu
1c9e122370 Updated basic auth plugin faas provider
Signed-off-by: Karthick Prabu <karthikprabu.cs@gmail.com>
2019-10-15 22:25:26 +01:00
Alex Ellis (OpenFaaS Ltd)
c8e033f77a Update stage name in Dockerfile
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
2019-08-22 15:49:05 +01:00
Alex Ellis (OpenFaaS Ltd)
cdfa01208d Bump versions
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
2019-08-22 15:48:23 +01:00
Alex Ellis
14677e0b9a Update alpine shipping versions
Alpine 3.10 is now availabe and is no-harm update.

Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2019-08-21 07:40:51 +01:00
Alex Ellis
ced4ee56dc Add Dockerfile override for ARM64
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2019-06-24 18:18:05 +01:00
Alex Ellis
0ca78b1fab Use license-check in the auth plugin
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2019-06-24 17:57:46 +01:00
Richard Gee
27ebbfdccd Refactor CI and enable auto-builds for auth
Automatic builds for auth-module on x86_64 (via Travis) and on-demand on-device for arm via publish.sh

The basic-auth module is not built or pushed upon 'tag' / 'release' of the faas repo, but it should be: https://github.com/openfaas/faas/tree/master/auth.  We also don't create on-device images for this, but should do for both armhf and arm64: https://github.com/openfaas/faas/blob/master/contrib/publish-arm.sh

This change addresses these challenges and also introduces a tagAndPush script to alleviate some of the recently introduced repetition in .travis.yml.

Signed-off-by: Richard Gee <richard@technologee.co.uk>
2019-06-23 20:39:48 +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
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