Skip to content
This repository has been archived by the owner on Jul 25, 2023. It is now read-only.

Proxy shim for simplifying development environment workflow #1

Open
wants to merge 5 commits into
base: production
Choose a base branch
from

Conversation

malizz
Copy link

@malizz malizz commented Dec 17, 2018

Problem

A production deployment does not allow failing verification, test permissions (that may not necessarily exist for them in prod).

Solution

Simplifying development environment workflow by replacing the production proxy with a shim that reads its settings from a config file.

@malizz malizz requested a review from sporkmonger December 17, 2018 20:36

opts := devproxy.NewOptions()

err := envconfig.Process("", opts)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is the right choice, to use environment variables for config. It's probably more common to use the flag package, but having a parallel structure to what's already there probably makes more sense.

internal/devproxy/collector/collector.go Outdated Show resolved Hide resolved
internal/devproxy/dev_config.go Outdated Show resolved Hide resolved
internal/devproxy/dev_config.go Outdated Show resolved Hide resolved
internal/devproxy/dev_config.go Outdated Show resolved Hide resolved
internal/devproxy/metrics.go Outdated Show resolved Hide resolved
internal/devproxy/options.go Outdated Show resolved Hide resolved
internal/devproxy/options.go Outdated Show resolved Hide resolved
internal/devproxy/options.go Outdated Show resolved Hide resolved
internal/devproxy/providers/provider_default.go Outdated Show resolved Hide resolved
@malizz malizz closed this Jan 4, 2019
@malizz malizz reopened this Jan 4, 2019

// SkipAuthCompiledRegex []*regexp.Regexp
// AllowedGroups []string
Route interface{} // note: :/

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure what this comment means.

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.

2 participants