You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Bharat Viswanadham (Jira)" <ji...@apache.org> on 2021/07/27 07:01:00 UTC

[jira] [Commented] (HDDS-5501) Support to upload/read keys from encrypted buckets through S3G

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

Bharat Viswanadham commented on HDDS-5501:
------------------------------------------

Error:

{code:java}
Caused by: org.apache.hadoop.security.authentication.client.AuthenticationException: GSSException: No valid credentials provided (Mechanism level: Failed to find any Kerberos tgt)
	at org.apache.hadoop.security.authentication.client.KerberosAuthenticator.doSpnegoSequence(KerberosAuthenticator.java:365)
	at org.apache.hadoop.security.authentication.client.KerberosAuthenticator.authenticate(KerberosAuthenticator.java:205)
	... 94 more
Caused by: GSSException: No valid credentials provided (Mechanism level: Failed to find any Kerberos tgt)
	at sun.security.jgss.krb5.Krb5InitCredential.getInstance(Krb5InitCredential.java:148)
	at sun.security.jgss.krb5.Krb5MechFactory.getCredentialElement(Krb5MechFactory.java:122)
	at sun.security.jgss.krb5.Krb5MechFactory.getMechanismContext(Krb5MechFactory.java:189)
	at sun.security.jgss.GSSManagerImpl.getMechanismContext(GSSManagerImpl.java:224)
{code}



{code:java}
handleException /encrypted-bucket/vaccinations.csv java.io.IOException: org.apache.hadoop.security.authentication.client.AuthenticationException: Error while authenticating with endpoint: https://neptunem03.olympus.cloudera.com:9494/kms/v1/keyversion/ozone-demo-k1%401/_eek?eek_op=decrypt
4:31:24.905 PM 	WARN 	HttpChannelState 	
unhandled due to prior sendError
javax.servlet.ServletException: javax.servlet.ServletException: org.glassfish.jersey.server.ContainerException: java.io.IOException: org.apache.hadoop.security.authentication.client.AuthenticationException: Error while authenticating with endpoint: https://neptunem03.olympus.cloudera.com:9494/kms/v1/keyversion/ozone-demo-k1%401/_eek?eek_op=decrypt
	at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:162)
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
{code}


> Support to upload/read keys from encrypted buckets through S3G
> --------------------------------------------------------------
>
>                 Key: HDDS-5501
>                 URL: https://issues.apache.org/jira/browse/HDDS-5501
>             Project: Apache Ozone
>          Issue Type: New Feature
>            Reporter: Bharat Viswanadham
>            Assignee: Bharat Viswanadham
>            Priority: Major
>
> When KMS is secured using hadoop.kms.authentication.type = KERBEROS. From S3 key put/get fails when decrypting the key due to missing Kerberos Credentials/KMS tokens.
> *Proposal to fix this:*
> 1. Introduce keytab for s3g
> 2. Make s3g acts as proxy for end users while decrypt kms key during put/get/mpu.
> The idea is similar to NFSgateway security model.
> https://hadoop.apache.org/docs/stable/hadoop-project-dist/hadoop-hdfs/HdfsNfsGateway.html



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org