-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* feat: implementation of Vault with GCP Secret Manager #6 * style: build config cleanup - Case harmonized to lowercase - Libraries in version file sorted * refactor: fix review comments for #6 - Used Stream instead of String path for GcpSecretManagerVault .createWithServiceAccountCredentials - Switched to var - Fixed log messages to start with capital - Simplified reading of settings in GcpSecretManagerVaultExtension with ServiceExtensionContext.getSetting - Moved private method at the end of the file - Replaced assertTrue/False with assertThat(x).isTrue/isFalse - Used static imports in tests - Mocks reinstantiated at every test, not reset * refactor: fixed new comments for #6 - Used context.getConfig().getString for getting mandatory settings - Moved TestStatusCode class to private, at the end of the file - Fixed imports (removed unused, resorted) * refactor: typos and docs updated, member variables made final * refactor: removed jimfs dependency * chore: updated DEPENDENCIES, cleaned build dependencies * refactor: removed synchronized blocks from Vault implementation - as per review, EDC owns synchronization * chore: DEPENDENCIES - new attempt * chore: updated dependency-check.yml * chore: DEPENDENCIES updated with content generated by new workflow
- Loading branch information
Showing
12 changed files
with
840 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# GCP Secret Manager Vault | ||
|
||
The vault-gcp extension is an implementation of the Vault interface based on GCP Secret Manager. | ||
Arbitrary key names are possible through the key sanitation feature. | ||
|
||
## Decisions | ||
- Secrets will not be overwritten if they exist to prevent potential leakage of credentials to third parties. | ||
- Keys strings are sanitized to comply with key requirements of AWS Secrets Manager. Sanitizing replaces all illegal characters with '-' and appends the hash code of the original key to minimize the risk of key collision after the transformation, because the replacement operation is a many-to-one function. A warning will be logged if the key contains illegal characters. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/* | ||
* Copyright (c) 2023 Google LLC | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Apache License, Version 2.0 which is available at | ||
* https://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Contributors: | ||
* Google LCC - Initial implementation | ||
* | ||
*/ | ||
|
||
plugins { | ||
`java-library` | ||
} | ||
|
||
dependencies { | ||
api(libs.edc.spi.core) | ||
|
||
implementation(libs.edc.util) | ||
implementation(libs.googlecloud.core) | ||
implementation(libs.googlecloud.secretmanager) | ||
} |
Oops, something went wrong.