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

Use token enclave public key when in privacy multi-tenancy mode #272

Merged

Conversation

jframe
Copy link
Contributor

@jframe jframe commented Dec 20, 2019

PR description

This provides the multi-tenancy enclave public key from the request when the user is using privacy multi-tenancy. Also changes the API of the PrivacyController to now have an optional enclave public key. This will allow the privacy controller in the future to be able to verify enclave operation is allowed for the supplied enclave public key.

Fixed Issue(s)

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

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>

public class PrivFindPrivacyGroupTest {
private static final String ENCLAVE_PUBLIC_KEY = "A1aVtMxLCUHmBVHXoZzzBgPbW/wj5axDpW9X8l91SGo=";
private static final List<String> ADDRESSES =
Copy link
Member

Choose a reason for hiding this comment

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

we have List.of available as well in core Java.

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>
…he enclave public key resolution out of the privacy controller

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

@rain-on rain-on left a comment

Choose a reason for hiding this comment

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

Ignoring the red-cross, I think this looks good.

@jframe jframe changed the title Add privacy enclave public key to the privacy controller Use token enclave public key when in privacy multi-tenancy mode Dec 23, 2019
@jframe jframe merged commit 8f61ff3 into hyperledger:master Dec 23, 2019
@jframe jframe deleted the privacy_multitenancy_wire_user_to_controller branch December 23, 2019 01:23
edwardmack pushed a commit to ChainSafe/besu that referenced this pull request Feb 4, 2020
edwardmack pushed a commit to ChainSafe/besu that referenced this pull request Feb 4, 2020
…rledger#272)

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

3 participants