MYRIAD-243 Support Authentication in Myriad UI and REST APIs#96
MYRIAD-243 Support Authentication in Myriad UI and REST APIs#96yufeldman wants to merge 2 commits intoapache:masterfrom
Conversation
|
|
||
| @Inject | ||
| public MyriadWebServer(Server jetty, Connector connector, GuiceFilter filter) { | ||
| public MyriadWebServer(Server jetty, Connector connector, GuiceFilter filter, MyriadConfiguration myriadConf) { |
There was a problem hiding this comment.
If all we're using is isSecurityEnabled maybe just pass a boolean, if you think we'll need more of the config later leave it.
There was a problem hiding this comment.
for now it is only for boolean, but we may need more from config later. WOuld be a pain to redo
| mesosMaster: 10.0.2.15:5050 | ||
| haEnabled: false | ||
| checkpoint: false | ||
| isSecurityEnabled: false |
There was a problem hiding this comment.
maybe add to src/main/resources/myriad-default-config for a minimal documentation.
There was a problem hiding this comment.
+1 to docs, so users have a clue how to enable this and what it means.
|
Looks good but haven't tested, if you're comfortable then merge away! |
|
Thank you Darrin, I would like somebody outside to test it. I did test it on MapR distro, will try to test with SPNEGO, but it is hard for me to test with other distros |
|
I can do some tests early to mid next week, unfortunately I'm swamped tomorrow. |
|
Updated default value in myriad-config-default.yml. For some reason Travis is not triggering the build |
|
@DarinJ - wonder if you have more comments to this PR? |
|
@yufeldman Nope - I'm behind on some other items so haven't been able to test yet. Hopefully will get to it tonight/tomorrow. |
|
Tested a bit, seemed OK, had to add user:password@ to the URI's for binary dist and config if using myriad to distribute. |
adam-mesos
left a comment
There was a problem hiding this comment.
Looks promising, but I didn't review the tests in detail.
| */ | ||
| public static final Boolean DEFAULT_HA_ENABLED = false; | ||
|
|
||
| public static final Boolean DEFAULT_SECURITY_ENABLED = false; |
There was a problem hiding this comment.
DEFAULT_AUTHENTICATION_ENABLED or DEFAULT_AUTH_ENABLED? "Security" is too vague, since encryption, authorization, and isolation are all parts of "security".
| mesosMaster: 10.0.2.15:5050 | ||
| haEnabled: false | ||
| checkpoint: false | ||
| isSecurityEnabled: false |
There was a problem hiding this comment.
+1 to docs, so users have a clue how to enable this and what it means.
Essentially reusing Authentication (AuthenticationFilter with some variation) provided by Hadoop