- Aug 29, 2018
-
-
Thomas E Lackey authored
Make 'URLPathTransformer' interface and implementation to do the function prefix trimming instead of baking it in. Also add a configuration option, 'pass_url_path_to_functions' to control whether the full path is passed to the functions or not. Signed-off-by:
Thomas E Lackey <telackey@bozemanpass.com>
-
Thomas E Lackey authored
Previously, only the query string of the URL was passed through the Gateway. With this change, the entire path requested by the client is passed through as well as the query string. While fwatchdog already supported passing the path through, in practice this would not happen since the Gateway would have swallowed it before forwarding the request to the watchdog. With this change, the path portion after the function name is added to the Http_Path environment variable, provided that cgiHeaders are enabled. This is similar to the of-watchdog equivalent. Signed-off-by:
Thomas E Lackey <telackey@bozemanpass.com>
-
- Aug 24, 2018
-
-
Ken Fukuyama authored
This change exposes the gateway metrics with an exporter which implements the Collector interface of prometheus. This change Fixes #697 Signed-off-by:
Ken Fukuyama <kenfdev@gmail.com>
-
- Aug 16, 2018
-
-
Alex Ellis (VMware) authored
Signed-off-by:
Alex Ellis (VMware) <alexellis2@gmail.com>
-
- Jul 23, 2018
-
-
Alex Ellis (VMware) authored
- exposes scale-function endpoint for use with faas-idler, this is protected by auth when enabled. Signed-off-by:
Alex Ellis (VMware) <alexellis2@gmail.com>
-
- Jul 20, 2018
-
-
Alex Ellis (VMware) authored
Existing code has been used for scaling up and querying replicas. This meant the new code was deleted and there is less duplication now. The cache store a whole query response rather than just the available replica count and the tests were updated. This has been tested with Docker swarm and the image: openfaas/gateway:scale-17-07-2018 This feature now needs the env-var of scale_from_zero to be enabled in order to turn on the scaling behaviour. Signed-off-by:
Alex Ellis (VMware) <alexellis2@gmail.com>
-
Alex Ellis (VMware) authored
This disables the scaling proxy by default since it is not the default user-experience and is still under refinement. Signed-off-by:
Alex Ellis (VMware) <alexellis2@gmail.com>
-
Alex Ellis (VMware) authored
This change allows functions to be "idled" or scaled to zero replicas and then be invoked later on. There is a penalty to scaling up - the API gateway proxy will block until the function is ready. A cache is included to off-set the calls to upstream API to check on readiness along with unit tests. Testing via scaling to zero replicas and then invoking function. On Swarm I observed 3 seconds on an Intel Nuc i5 for scaling back from zero replicas. Signed-off-by:
Alex Ellis (VMware) <alexellis2@gmail.com>
-
- Jul 06, 2018
-
-
Edward Wilde authored
Extend the health endpoint and add gateway version information Resolves: #733 Signed-off-by:
Edward Wilde <ewilde@gmail.com>
-
- Jun 18, 2018
-
-
Alex Ellis (VMware) authored
Introduces 0.4.6 of queue-worker - see upstream repo for changes. Signed-off-by:
Alex Ellis (VMware) <alexellis2@gmail.com>
-
- May 23, 2018
-
-
Alex Ellis (VMware) authored
This change enables secrets to be read from any mount on disk rather than hard-coding a certain location which suits Swarm or K8s. The default value if not specified will look in the Swarm location of /run/secrets/ README.md (docs) updated and set to off by default. Signed-off-by:
Alex Ellis (VMware) <alexellis2@gmail.com>
-
Alex Ellis (VMware) authored
Fixes https://github.com/openfaas/faas/issues/687 allowing the gateway to handle the responsibility of basic auth for when it is in use. To enable set basic_auth env-var to true and then mount two secrets or plaintext files under /var/secrets/ basic_auth_user, basic_auth_password Tested with faas-cli list/deploy and with Safari browser. Signed-off-by:
Alex Ellis (VMware) <alexellis2@gmail.com>
-
- May 20, 2018
-
-
Alex Ellis (VMware) authored
Fixes issue 689 by enabling /healthz and /system/info, see swagger for more details. Signed-off-by:
Alex Ellis (VMware) <alexellis2@gmail.com>
-
- Apr 03, 2018
-
-
Alex Ellis (VMware) authored
Routeless proxy allowed no HTTP path to be given when a Header X-Function: name was given. This has been deprecated - I am unaware of any usage of the feature. Signed-off-by:
Alex Ellis (VMware) <alexellis2@gmail.com>
-
- Mar 26, 2018
-
-
Alex Ellis (VMware) authored
Forwarded requests were being logged in the function metrics and I saw this when doing some testing on auto-scaling with K8s. This change removes the call to the Prometheus notifier for any calls which are forwarded to the provider and retains them for the functions. Signed-off-by:
Alex Ellis (VMware) <alexellis2@gmail.com>
-
- Mar 23, 2018
-
-
John McCabe authored
This commit replaces occurences of http method strings with the corresponding consts from the http package. *Note* UPDATE is not strictly speaking a valid method and as such isn't part of the http package (should be a PUT or PATCH?) Signed-off-by:
John McCabe <john@johnmccabe.net>
-
Alex Ellis authored
Adds a pair of configuration options for performance tuning. The gateway can now invoke functions directly and can bypass the provider. See updated table in README.md for configuration values. BaseURLResolver is added with unit tests that decouples resolving upstream URL from the reverse proxy client code. - SingleHostBaseURLResolver resolves a single upstream host - FunctionAsHostBaseURLResolver resolves host based upon conventions within the URL of the request to a function for direct access Tested with Kubernetes (faas-netes) and faas-swarm through UI, CLI calling system endpoints and functions directly. Signed-off-by:
Alex Ellis (VMware) <alexellis2@gmail.com>
-
- Mar 20, 2018
-
-
Alex Ellis (VMware) authored
Signed-off-by:
Alex Ellis (VMware) <alexellis2@gmail.com>
-
- Mar 05, 2018
-
-
Alex Ellis authored
Signed-off-by:
Alex Ellis <alexellis2@gmail.com>
-
- Mar 03, 2018
-
-
Alex Ellis authored
Signed-off-by:
Alex Ellis <alexellis2@gmail.com>
-
Alex Ellis authored
Signed-off-by:
Alex Ellis <alexellis2@gmail.com>
-
- Mar 01, 2018
-
-
Alex Ellis (VMware) authored
Signed-off-by:
Alex Ellis (VMware) <alexellis2@gmail.com>
-
- Feb 01, 2018
-
-
Alex Ellis authored
Signed-off-by:
Alex Ellis <alexellis2@gmail.com>
-
- Dec 13, 2017
-
-
Alex Ellis authored
Signed-off-by:
Alex Ellis <alexellis2@gmail.com>
-
- Dec 05, 2017
-
-
Alex Ellis authored
Signed-off-by:
Alex Ellis <alexellis2@gmail.com>
-
Alex Ellis authored
Signed-off-by:
Alex Ellis <alexellis2@gmail.com>
-
- Nov 29, 2017
-
-
Alex Ellis authored
Signed-off-by:
Alex Ellis <alexellis2@gmail.com>
-
- Oct 29, 2017
-
-
Alex Ellis authored
Signed-off-by:
Alex Ellis <alexellis2@gmail.com>
-
- Oct 04, 2017
-
-
John McCabe authored
Note, not all `alexellis/github` references should be changed, there are a number of repos which are not part of the openfaas org, this commit excludes those. Signed-off-by:
John McCabe <john@johnmccabe.net>
-
- Sep 27, 2017
-
-
John McCabe authored
This commit implements an update handler for Docker Swarm, it queries the current spec, updates values in-situ before calling ServiceUpdate. The UpdateConfig FailureAction is set to rollback, so in the event of supplying values to the update that would result in the service failing then the update will be rolled back. The UpdateConfig Parallelism param is set to an explicit value of 1 which will result in functions being updated 1 by 1 rather than all at once. It also moves the restartDelay declaration out of the create and update handlers and into the main server function alongside maxRestarts. And finally this commit uses the PUT HTTP verb for updates rather than the non-HTTP UPDATE verb which was being used initially (also adding it to the Swagger definition). Signed-off-by:
John McCabe <john@johnmccabe.net>
-
- Sep 23, 2017
-
-
Alex Ellis authored
Signed-off-by:
Alex Ellis <alexellis2@gmail.com>
-
- Sep 19, 2017
-
-
Alex Ellis authored
Signed-off-by:
Alex Ellis <alexellis2@gmail.com>
-
- Sep 13, 2017
-
-
Alex Ellis authored
Signed-off-by:
Alex Ellis <alexellis2@gmail.com>
-
- Sep 07, 2017
-
-
Alex Ellis authored
Signed-off-by:
Alex Ellis <alexellis2@gmail.com>
-
- Aug 29, 2017
-
-
Alex authored
Signed-off-by:
Alex <alexellis2@gmail.com>
-
Alex Ellis authored
Signed-off-by:
Alex Ellis <alexellis2@gmail.com>
-
- Aug 27, 2017
-
-
Alex Ellis authored
Signed-off-by:
Alex Ellis <alexellis2@gmail.com>
-
- Aug 25, 2017
-
-
Alex Ellis authored
Signed-off-by:
Alex Ellis <alexellis2@gmail.com>
-
- Aug 16, 2017
-
-
Alex authored
Signed-off-by:
Alex <alexellis2@gmail.com>
-
- Aug 08, 2017
-
-
Alex Ellis authored
-