[ https://issues.apache.org/jira/browse/BEAM-6292?focusedWorklogId=184756&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-184756 ]
ASF GitHub Bot logged work on BEAM-6292: ---------------------------------------- Author: ASF GitHub Bot Created on: 14/Jan/19 11:02 Start Date: 14/Jan/19 11:02 Worklog Time Spent: 10m Work Description: echauchot commented on pull request #7348: [BEAM-6292] PasswordDecrypter: Delay decryption / Avoid serialization URL: https://github.com/apache/beam/pull/7348#discussion_r247411729 ########## File path: sdks/java/io/cassandra/src/test/java/org/apache/beam/sdk/io/cassandra/TestPasswordDecrypter.java ########## @@ -0,0 +1,51 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.beam.sdk.io.cassandra; + +import java.nio.charset.StandardCharsets; +import java.util.Base64; +import java.util.HashMap; +import java.util.Map; + +/** Class used to decrypt the Cassandra password. */ Review comment: please add "in the tests" to the javadoc ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org Issue Time Tracking ------------------- Worklog Id: (was: 184756) Time Spent: 2.5h (was: 2h 20m) > PasswordDecrypter: Delay decryption / Avoid serialization > --------------------------------------------------------- > > Key: BEAM-6292 > URL: https://issues.apache.org/jira/browse/BEAM-6292 > Project: Beam > Issue Type: Improvement > Components: io-java-cassandra > Reporter: Mathieu Blanchard > Assignee: Mathieu Blanchard > Priority: Minor > Time Spent: 2.5h > Remaining Estimate: 0h > > Currently, the password is decrypted before the serialization of the pipeline > and this causes the raw version to be visible to everyone on the staging > location. > To avoid this, we delayed the decryption of the password when connecting to > the cluster, which ensures that the raw password is never serialized in the > pipeline. -- This message was sent by Atlassian JIRA (v7.6.3#76005)