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

Commit

Permalink
WIP: Needs testing, needs OFC Release & bump in init.yaml
Browse files Browse the repository at this point in the history
Signed-off-by: Alistair Hey <[email protected]>
  • Loading branch information
Waterdrips authored and alexellis committed May 11, 2020
1 parent 97da21b commit 3a1c2a1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/stack/stack.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ type authConfig struct {
OAuthProvider string
OAuthProviderBaseURL string
OFCustomersSecretPath string
TLSEnabled bool
}

type builderConfig struct {
Expand Down Expand Up @@ -118,6 +119,7 @@ func Apply(plan types.Plan) error {
OAuthProvider: plan.SCM,
OAuthProviderBaseURL: plan.OAuth.OAuthProviderBaseURL,
OFCustomersSecretPath: ofCustomersSecretPath,
TLSEnabled: plan.TLS,
}); ofAuthDepErr != nil {
return ofAuthDepErr
}
Expand Down
5 changes: 5 additions & 0 deletions templates/edge-auth-dep.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@ spec:
- name: write_debug
value: "false"

# Config for setting the cookie to "secure", set this to true for HTTPS only OAuth
- name: secure_cookie
value: "{{.tls}}"


ports:
- containerPort: 8080
protocol: TCP
Expand Down

0 comments on commit 3a1c2a1

Please sign in to comment.