Skip to content
This repository has been archived by the owner on Feb 2, 2021. It is now read-only.

Enable a private CUSTOMERS file in a secret #191

Merged
merged 5 commits into from
Feb 25, 2020

Conversation

alexellis
Copy link
Member

@alexellis alexellis commented Feb 25, 2020

Description

Enable a private CUSTOMERS file in a secret

Ref: openfaas/openfaas-cloud#591

Enable private customers list and merging of secrets

This patch adds a custom piece of unit-tested code to merge the
list of secrets using a union since the mergo library doesn't
appear to be able to do that at present.

Ref: darccio/mergo#107

A separate named secret is used for openfaas/fn namespaces so
that a union merge can be performed using the name as a key.

Fixes an issues with merging lists of secrets where the mergo
library was overwriting values instead of doing a union.

Enables a private customer list via a secret instead of a public
HTTPS URL.

How Has This Been Tested?

Testing e2e with DOKS, worked as expected with the customers secret file.

@Waterdrips verified before/after editing the secret to add a new user.

Fixes an issues with merging lists of secrets where the mergo
library was overwriting values instead of doing a union.

Ref:
darccio/mergo#107

Enables a private customer list via a secret instead of a public
HTTPS URL.

Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
This patch adds a custom piece of unit-tested code to merge the
list of secrets using a union since the mergo library doesn't
appear to be able to do that at present.

Ref: darccio/mergo#107

A separate named secret is used for openfaas/fn namespaces so
that a union merge can be performed using the name as a key.

Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
customers_secret when enabled uses a Kubernetes secret instead
of a URL

Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
@alexellis alexellis merged commit f3277af into master Feb 25, 2020
@alexellis alexellis deleted the openfaasltd/private-customers branch February 25, 2020 18:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant