Skip to content
This repository has been archived by the owner on Nov 9, 2022. It is now read-only.

Support different user credentials for different Roxy operations - #438 #602

Merged
merged 3 commits into from
Aug 22, 2016

Conversation

RobertSzkutak
Copy link
Contributor

@RobertSzkutak RobertSzkutak commented Apr 24, 2016

Implementation of the proposal to support #438 and somewhat related to #624

@grtjn
Copy link
Contributor

grtjn commented Apr 26, 2016

Odd, github shows a lot of diffs, must be whitespace/lineends? Use this to see the real diff:

https://github.com/marklogic/roxy/pull/602/files?w=1

Looks clean to me at first glance, but haven't tried yet..

@RobertSzkutak
Copy link
Contributor Author

Thanks! I swear up and down my sublime settings match (or at least, should match) the recommendations provided. I have no idea why those diffs are in there or how I can clear them out. Open to any and all suggestions.

@@ -728,6 +734,10 @@ def bootstrap
end

def wipe

@ml_username = @properties['ml.bootstrap-user'] || @properties['ml.user']
@ml_password = @properties['ml.bootstrap-password'] || @properties['ml.password']
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think password selection needs to be a little more involved.

if ml.bootstrap-user, then use ml.bootstrap-password
  use it even if it's empty, which will result in calling password_prompt
if !ml.bootstrap-user, then fall back to ml.password

Likewise for deploy-password below. This will handle the situation where some other password is used with the bootstrap user (unlikely, but quite possible).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Great catch! I will make these changes and update the PR soon.

@RobertSzkutak
Copy link
Contributor Author

@dmcassel I confirmed and then fixed the edge case you found. I also added support for a corb user and mlcp user properly. Look good to merge?

@dmcassel dmcassel merged commit 8e6fd83 into marklogic-community:dev Aug 22, 2016
@dmcassel
Copy link
Collaborator

Looks good!

@grtjn grtjn added this to the 1.7.4 milestone Aug 23, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants