[ 
https://issues.apache.org/jira/browse/HDDS-1060?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16765370#comment-16765370
 ] 

Xiaoyu Yao commented on HDDS-1060:
----------------------------------

Thanks [~ajayydv] for the patch. It looks good to me overall. Here are a few 
comments:

CertificateServer.java

Line 61: Need to clarify if this return null if certificate is not found or 
throw at the interface level?

Based on the code I found later in SCMSecurityProtocolServer.java  Line 162, it 
seems throw IOE if certificate is not found. 

Line 64: the comments need to be updated. the certSerialId is not the 
certificate for this CA.

 

StorageContainerManager.java

Line 227: can you add more comments on the usage of this flag and what to 
expect to work without a SCM login?

 

TestStorageContainerManager.java

Line 460: can we put this in try{} final{}?

 

 

> Token: Add api to get OM certificate from SCM
> ---------------------------------------------
>
>                 Key: HDDS-1060
>                 URL: https://issues.apache.org/jira/browse/HDDS-1060
>             Project: Hadoop Distributed Data Store
>          Issue Type: Sub-task
>            Reporter: Ajay Kumar
>            Assignee: Ajay Kumar
>            Priority: Major
>              Labels: Blocker, Security
>             Fix For: 0.4.0
>
>         Attachments: HDDS-1060.00.patch, HDDS-1060.01.patch
>
>
> Datanodes/OM need OM certificate to validate block tokens and delegation 
> tokens. 
> Add API for:
> 1. getCertificate(String certSerialId): To get certificate from SCM based on 
> certificate serial id.
> 2. getCACertificate(): To get CA certificate.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to