Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add the folder path to the vault helm values #1761

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

AndrYurk
Copy link
Contributor

WHAT

Add the vault.hashicorp.paths.folder to the helm chart

WHY

To allow specify the folder path, so all edc secrets could be stored directly in the data path.

Closes #1758

@AndrYurk AndrYurk force-pushed the Add-the-folder-path-to-the-vault-helm-values branch 2 times, most recently from 5a6e511 to 3accaac Compare January 21, 2025 16:20
@AndrYurk AndrYurk force-pushed the Add-the-folder-path-to-the-vault-helm-values branch 2 times, most recently from 6e4346f to 844cc3b Compare January 21, 2025 20:37
@AndrYurk AndrYurk force-pushed the Add-the-folder-path-to-the-vault-helm-values branch from 844cc3b to a990eb6 Compare January 21, 2025 21:46
Copy link
Contributor

@lgblaumeiser lgblaumeiser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One question: Perhaps I miss something, but this change adds a configuration value to the helm charts, I miss the use of this configuration parameter somewhere. My understanding is, that the value has to be added to the construction of the access path to the vault in the connector, right? Does this already exist? Is this an upstream PR that is referenced?

@AndrYurk
Copy link
Contributor Author

AndrYurk commented Jan 22, 2025

@lgblaumeiser, yes, we already have this in the connector
Upstream PR

Declaration:

@Setting(description = "The path of the folder that the secret is stored in, relative to VAULT_FOLDER_PATH", required = false, key = "edc.vault.hashicorp.folder")
private String folderPath;

https://github.com/eclipse-edc/Connector/blob/08f913e81b56ffa474783cf279cabe5fc0756a4b/extensions/common/vault/vault-hashicorp/src/main/java/org/eclipse/edc/vault/hashicorp/client/HashicorpVaultSettings.java#L54-L56

Usage:

var folderPath = settings.getFolderPath();

        var builder = baseUrl(settings)
                .newBuilder()
                .addPathSegments(PathUtil.trimLeadingOrEndingSlash(vaultApiPath))
                .addPathSegment(entryType);

        if (folderPath != null) {
            builder.addPathSegments(PathUtil.trimLeadingOrEndingSlash(folderPath));
        }

https://github.com/eclipse-edc/Connector/blob/08f913e81b56ffa474783cf279cabe5fc0756a4b/extensions/common/vault/vault-hashicorp/src/main/java/org/eclipse/edc/vault/hashicorp/client/HashicorpVaultClient.java#L280C13-L289

@AndrYurk AndrYurk requested a review from lgblaumeiser January 22, 2025 13:33
Copy link
Contributor

@lgblaumeiser lgblaumeiser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Open
Development

Successfully merging this pull request may close these issues.

Add the folder path to the vault helm values
2 participants