-
Notifications
You must be signed in to change notification settings - Fork 712
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
Basic auth #3393
Basic auth #3393
Conversation
ycao56
commented
Oct 17, 2018
- enable basic auth for prob and app
- add flags
- env could be used to override. this is good for running on k8s and override using secret
Thanks for the PR! I'm interested you did this on the probe too - by default the probe doesn't listen, and isn't expected to have user conversations - it can be turned on for debug or instrumentation purposes. What was the motivation there? |
(also the CI build is failing - see https://circleci.com/gh/weaveworks/scope/10262) |
@bboreham Once basic auth is enabled for app, probe needs to have correct authorization header in the request when feeding the data to app. That's why these flags are introduced in probe as well. |
@bboreham is there anything I need to do to fix the build? The integration-tests is failing but it doesn't clear to me why it fails.
|
It doesn't run the integration tests for 3rd-party branches, to protect the resources used to run them. This is the reason most steps have The error is just an untidy consequence of not having that test everywhere. |
I've pushed your branch to the weaveworks repo, so it should run all tests at https://circleci.com/workflow-run/04ca4fc6-af11-4af2-9e8b-e1246b28d409 |
@ycao56 one more question: should we use a library such as https://github.com/goji/httpauth instead of implementing basic auth inside Scope? |
@bboreham Thanks for the suggestion. Code updated. |
@bboreham can you push the branch again to make the build pass? |
Branch re-pushed. Looks like the I can fix it up if you like. |
@bboreham Is this what you are asking for? https://github.com/weaveworks/scope/pull/3393/files#diff-f502f3b8ea2828482e72c368c0cfd23d |
Yes, sorry, no idea how I missed that. |