[ https://issues.apache.org/jira/browse/HADOOP-18708?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17865102#comment-17865102 ]
ASF GitHub Bot commented on HADOOP-18708: ----------------------------------------- shameersss1 commented on code in PR #6884: URL: https://github.com/apache/hadoop/pull/6884#discussion_r1674129870 ########## hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/ITestS3AClientSideEncryption.java: ########## @@ -266,6 +288,100 @@ public void testEncryptionEnabledAndDisabledFS() throws Exception { } } + /** + * Testing how file name with suffix ".instruction" is ignored when CSE is enabled + * based on configurations. + * @throws IOException + */ + @Test + public void testEncryptionWithInstructionFile() throws IOException { + maybeSkipTest(); + S3AFileSystem cseDisabledFS = new S3AFileSystem(); + Configuration cseDisabledConf = getConfiguration(); + S3AFileSystem cseEnabledFS = getFileSystem(); + Path unEncryptedFilePath = path(getMethodName()); + Path unEncryptedFile = new Path(unEncryptedFilePath, + "file" + S3_ENCRYPTION_CSE_INSTRUCTION_FILE_SUFFIX); + + // Initialize a CSE disabled FS. + removeBaseAndBucketOverrides(getTestBucketName(cseDisabledConf), + cseDisabledConf, + S3_ENCRYPTION_ALGORITHM, + S3_ENCRYPTION_KEY, + SERVER_SIDE_ENCRYPTION_ALGORITHM, + SERVER_SIDE_ENCRYPTION_KEY); + cseDisabledFS.initialize(getFileSystem().getUri(), + cseDisabledConf); + + // Unencrypted data written to a path. + try (FSDataOutputStream out = cseDisabledFS.create(unEncryptedFile)) { Review Comment: ack > AWS SDK V2 - Implement CSE > -------------------------- > > Key: HADOOP-18708 > URL: https://issues.apache.org/jira/browse/HADOOP-18708 > Project: Hadoop Common > Issue Type: Sub-task > Components: fs/s3 > Affects Versions: 3.4.0 > Reporter: Ahmar Suhail > Assignee: Syed Shameerur Rahman > Priority: Major > Labels: pull-request-available > > S3 Encryption client for SDK V2 is now available, so add client side > encryption back in. -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-issues-h...@hadoop.apache.org