Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add http basic auth based on env vars #33

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gianarb
Copy link
Owner

@gianarb gianarb commented Aug 8, 2017

No description provided.

@gianarb
Copy link
Owner Author

gianarb commented Aug 8, 2017

@mbovo this is good. I am thinking about how to make it optional. I mean if we don't inject the env vars we are still requiring an empty auth

mbovo pushed a commit to mbovo/orbiter that referenced this pull request Aug 22, 2017
mbovo pushed a commit to mbovo/orbiter that referenced this pull request Aug 22, 2017
mbovo pushed a commit to mbovo/orbiter that referenced this pull request Aug 22, 2017
@mbovo
Copy link
Contributor

mbovo commented Aug 22, 2017

@gianarb I've added a flag to enable (default disabled) authentication, with default user/pass (orbiter/orbiter) just in case. I'm using kelseyhightower/envconfig here to read custom configuration from env, seems a good lib. As improvement in
mbovo@59758b2 i've added a map for multiple user/pass.

I think configuration like this should be placed in global conf and propagated, instead of using repeated code. I will open another proposal/pr for this last point.

@gianarb
Copy link
Owner Author

gianarb commented Aug 23, 2017

I like the mapping idea. I dont think we need library to read some envvar. I think the os package is enough

mbovo pushed a commit to mbovo/orbiter that referenced this pull request Oct 1, 2017
mbovo pushed a commit to mbovo/orbiter that referenced this pull request Oct 1, 2017
mbovo pushed a commit to mbovo/orbiter that referenced this pull request Oct 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants