-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Use pureconfig for invoker/scheduler's basic http auth #5252
Use pureconfig for invoker/scheduler's basic http auth #5252
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Codecov Report
@@ Coverage Diff @@
## master #5252 +/- ##
===========================================
- Coverage 70.76% 44.85% -25.92%
===========================================
Files 238 238
Lines 14009 14013 +4
Branches 567 543 -24
===========================================
- Hits 9914 6286 -3628
- Misses 4095 7727 +3632
Continue to review full report at Codecov.
|
@@ -176,6 +176,8 @@ whisk { | |||
} | |||
|
|||
invoker { | |||
username: "invoker.user" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should there be an equivalent default config for the scheduler?
Also don't know off the top of my head but is .
a special character for curl requests? Wouldn't want to make it harder to curl the invoker with a special character for those that don't care about creds and just using the default
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
scheduler already has such config https://github.com/apache/openwhisk/blob/master/core/scheduler/src/main/resources/application.conf#L62-L63
and .
is not special for curl:
[raja@localhost ansible]$ curl -u invoker.user:invoker.pass https://localhost:12001/isEnabled -k
{"enabled":true}
LGTM |
Replace hardcode username:password
Description
Related issue and scope
My changes affect the following components
Types of changes
Checklist: