Skip to content

MYRIAD-243 Support Authentication in Myriad UI and REST APIs#96

Open
yufeldman wants to merge 2 commits into
apache:masterfrom
yufeldman:myriad243
Open

MYRIAD-243 Support Authentication in Myriad UI and REST APIs#96
yufeldman wants to merge 2 commits into
apache:masterfrom
yufeldman:myriad243

Conversation

@yufeldman

Copy link
Copy Markdown

Essentially reusing Authentication (AuthenticationFilter with some variation) provided by Hadoop


@Inject
public MyriadWebServer(Server jetty, Connector connector, GuiceFilter filter) {
public MyriadWebServer(Server jetty, Connector connector, GuiceFilter filter, MyriadConfiguration myriadConf) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

for now it is only for boolean, but we may need more from config later. WOuld be a pain to redo

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Then leave it.

mesosMaster: 10.0.2.15:5050
haEnabled: false
checkpoint: false
isSecurityEnabled: false

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

maybe add to src/main/resources/myriad-default-config for a minimal documentation.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

yeah - good point, will do

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

+1 to docs, so users have a clue how to enable this and what it means.

@DarinJ

DarinJ commented Nov 3, 2016

Copy link
Copy Markdown
Contributor

Looks good but haven't tested, if you're comfortable then merge away!

@yufeldman

Copy link
Copy Markdown
Author

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

@DarinJ

DarinJ commented Nov 4, 2016

Copy link
Copy Markdown
Contributor

I can do some tests early to mid next week, unfortunately I'm swamped tomorrow.

@yufeldman

Copy link
Copy Markdown
Author

Updated default value in myriad-config-default.yml. For some reason Travis is not triggering the build

@yufeldman

Copy link
Copy Markdown
Author

@DarinJ - wonder if you have more comments to this PR?

@DarinJ

DarinJ commented Nov 9, 2016

Copy link
Copy Markdown
Contributor

@yufeldman Nope - I'm behind on some other items so haven't been able to test yet. Hopefully will get to it tonight/tomorrow.

@DarinJ

DarinJ commented Jan 3, 2017

Copy link
Copy Markdown
Contributor

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 adam-mesos left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

+1 to docs, so users have a clue how to enable this and what it means.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants