From common-issues-return-152022-archive-asf-public=cust-asf.ponee.io@hadoop.apache.org Thu May 3 10:11:10 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 432D7180625 for ; Thu, 3 May 2018 10:11:10 +0200 (CEST) Received: (qmail 48015 invoked by uid 500); 3 May 2018 08:11:08 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 48000 invoked by uid 99); 3 May 2018 08:11:08 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 May 2018 08:11:08 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 36B98180787 for ; Thu, 3 May 2018 08:11:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -110.311 X-Spam-Level: X-Spam-Status: No, score=-110.311 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id kVi2uBj3V3MD for ; Thu, 3 May 2018 08:11:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 8C7405FB92 for ; Thu, 3 May 2018 08:11:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id DED1EE12C9 for ; Thu, 3 May 2018 08:11:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 3B4B62129F for ; Thu, 3 May 2018 08:11:00 +0000 (UTC) Date: Thu, 3 May 2018 08:11:00 +0000 (UTC) From: "Ewan Higgs (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (HADOOP-15445) TestCryptoAdminCLI test failure when upgrading to JDK8 patch 171. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Ewan Higgs created HADOOP-15445: ----------------------------------- Summary: TestCryptoAdminCLI test failure when upgrading to JDK= 8 patch 171. Key: HADOOP-15445 URL: https://issues.apache.org/jira/browse/HADOOP-15445 Project: Hadoop Common Issue Type: Bug Reporter: Ewan Higgs JDK8 patch 171 introduces a new feature: {quote} h3. New Features security-libs/javax.crypto*[!https://www.oracle.com/webfolder/s/dm/st/image= s/lp-external-link-arrow.png!|http://www.oracle.com/technetwork/java/javase= /8u171-relnotes-4308888.html#JDK-8189997]=C2=A0Enhanced KeyStore Mechanisms= * A new security property named {{jceks.key.serialFilter}} has been introduce= d. If this filter is configured, the JCEKS KeyStore uses it during the dese= rialization of the encrypted Key object stored inside a SecretKeyEntry. If = it is not configured or if the filter result is UNDECIDED (for example, non= e of the patterns match), then the filter configured by {{jdk.serialFilter}= } is consulted. If the system property {{jceks.key.serialFilter}} is also supplied, it supe= rsedes the security property value defined here. The filter pattern uses the same format as {{jdk.serialFilter}}. The defaul= t pattern allows {{java.lang.Enum}}, {{java.security.KeyRep}}, {{java.secur= ity.KeyRep$Type}}, and {{javax.crypto.spec.SecretKeySpec}} but rejects all = the others. Customers storing a SecretKey that does not serialize to the above types mu= st modify the filter to make the key extractable. {quote} We believe this causes some test failures: =C2=A0 {quote}{{{color:#333333}java.io.IOException: Can't recover key for myKey fr= om keystore file:/{color}{color:#333333}home/{color}{color:#333333}jenkins/= {color}{color:#333333}workspace/{color}{color:#333333}hadoopFullBuild/{colo= r}{color:#333333}hadoop-hdfs-project/{color}{color:#333333}hadoop-hdfs/{col= or}{color:#333333}target/{color}{color:#333333}test/{color}{color:#333333}d= ata/{color}{color:#333333}53406117-0132-401e-a67d-6672f1b6a14a/{color}{colo= r:#333333}test.jks at org.apache.hadoop.crypto.key.JavaKeyStoreProvider.get= Metadata(JavaKeyStoreProvider.java:424) at org.apache.hadoop.crypto.key.Key= ProviderExtension.getMetadata(KeyProviderExtension.java:100) at org.apache.= hadoop.hdfs.server.namenode.FSDirEncryptionZoneOp.ensureKeyIsInitialized(FS= DirEncryptionZoneOp.java:124) at org.apache.hadoop.hdfs.server.namenode.FSN= amesystem.createEncryptionZone(FSNamesystem.java:7227) at org.apache.hadoop= .hdfs.server.namenode.NameNodeRpcServer.createEncryptionZone(NameNodeRpcSer= ver.java:2082) at org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolS= erverSideTranslatorPB.createEncryptionZone(ClientNamenodeProtocolServerSide= TranslatorPB.java:1524) at org.apache.hadoop.hdfs.protocol.proto.ClientName= nodeProtocolProtos$ClientNamenodeProtocol$2.callBlockingMethod(ClientNameno= deProtocolProtos.java) at org.apache.hadoop.ipc.ProtobufRpcEngine$Server$Pr= otoBufRpcInvoker.call(ProtobufRpcEngine.java:523) at org.apache.hadoop.ipc.= RPC$Server.call(RPC.java:991) at org.apache.hadoop.ipc.Server$RpcCall.run(S= erver.java:869) at org.apache.hadoop.ipc.Server$RpcCall.run(Server.java:815= ) at java.security.AccessController.doPrivileged(Native Method) at javax.se= curity.auth.Subject.doAs(Subject.java:422) at org.apache.hadoop.security.Us= erGroupInformation.doAs(UserGroupInformation.java:1965) at org.apache.hadoo= p.ipc.Server$Handler.run(Server.java:2675) Caused by: java.security.Unrecov= erableKeyException: Rejected by the jceks.key.serialFilter or jdk.serialFil= ter property at com.sun.crypto.provider.KeyProtector.unseal(KeyProtector.ja= va:352) at com.sun.crypto.provider.JceKeyStore.engineGetKey(JceKeyStore.jav= a:136) at java.security.KeyStore.getKey(KeyStore.java:1023){color}}} {quote} =C2=A0 -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: common-issues-help@hadoop.apache.org