Skip to content
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

Privacy multitenancy cli option #264

Merged
merged 8 commits into from Dec 18, 2019

Conversation

jframe
Copy link
Contributor

@jframe jframe commented Dec 18, 2019

PR description

Add a privacy multi-tenancy CLI option which is hidden for now. This flag will be used to enable the multi-tenancy privacy mode.

Fixed Issue(s)

Signed-off-by: Jason Frame <jasonwframe@gmail.com>
Signed-off-by: Jason Frame <jasonwframe@gmail.com>
Signed-off-by: Jason Frame <jasonwframe@gmail.com>
Signed-off-by: Jason Frame <jasonwframe@gmail.com>
Signed-off-by: Jason Frame <jasonwframe@gmail.com>
Signed-off-by: Jason Frame <jasonwframe@gmail.com>

@Test
public void privacyMultiTenancyWithoutAuthenticationFails() {
final URL configFile = this.getClass().getResource("/orion_publickey.pub");
Copy link
Member

Choose a reason for hiding this comment

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

you may avoid it by declaring static final constant variable, but its not a show-stopper.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

public boolean isMultiTenancyEnabled() {
return multiTenancyEnabled;
}

@Override
public String toString() {
return "PrivacyParameters{" + "enabled=" + enabled + ", enclaveUri='" + enclaveUri + '\'' + '}';
Copy link
Member

Choose a reason for hiding this comment

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

may be add multi-tenancy in toString method as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

Copy link
Member

@usmansaleem usmansaleem left a comment

Choose a reason for hiding this comment

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

Looks good to me.

Signed-off-by: Jason Frame <jasonwframe@gmail.com>
@jframe jframe merged commit f33fe8f into hyperledger:master Dec 18, 2019
@jframe jframe deleted the privacy_multitenancy_cli branch December 18, 2019 07:11
edwardmack pushed a commit to ChainSafe/besu that referenced this pull request Feb 4, 2020
Signed-off-by: Jason Frame <jasonwframe@gmail.com>
edwardmack pushed a commit to ChainSafe/besu that referenced this pull request Feb 4, 2020
Signed-off-by: Jason Frame <jasonwframe@gmail.com>
Signed-off-by: edwardmack <ed@edwardmack.com>
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.

None yet

2 participants