Skip to content

Commit

Permalink
Merge pull request #15469 from cdapio/CDAP-20872-default-project
Browse files Browse the repository at this point in the history
[CDAP-20872] Remove validation check for default project in GcpEnvelopeTinkCipherCryptor since CloudKmsClient is capable of detecting the local project automatically
  • Loading branch information
dli357 authored Nov 29, 2023
2 parents 222d71f + 2e37891 commit 3042d9c
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,6 @@ public Aead initializeAead(AeadCipherContext context) throws CipherInitializatio
private void validateProperties(AeadCipherContext context) throws CipherInitializationException {
Map<String, String> properties = context.getProperties();
List<String> invalidProperties = new ArrayList<>();
String projectId = properties.get(TINK_GCP_KMS_PROJECT_ID);
if (projectId == null || projectId.isEmpty()) {
invalidProperties.add(TINK_GCP_KMS_PROJECT_ID);
}
String location = properties.get(TINK_GCP_KMS_LOCATION);
if (location == null || location.isEmpty()) {
invalidProperties.add(TINK_GCP_KMS_LOCATION);
Expand Down

0 comments on commit 3042d9c

Please sign in to comment.