Skip to content

[FEATURE REQUEST] Support property prefix for key vault property sources #36095

Open
@mwisnicki

Description

@mwisnicki

It seems it's currently not possible to prefix/rename imported secrets.
When property-source-enabled is set to true then secrets are imported into configuration root.

Can you add prefix property or better yet deprecate property-source-enabled and provide custom url to spring.config.import the way Vault is doing?

https://github.com/spring-cloud/spring-cloud-vault/blob/5466602487471cd1f69a0962b299be1db99b45ae/docs/src/main/asciidoc/config-data.adoc#configdata-locations

With spring-vault one has full control over when and where secrets are imported:

spring.config.import: vault://my/path?prefix=foo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ClientThis issue points to a problem in the data-plane of the library.azure-springAll azure-spring related issuesazure-spring-keyvaultSpring keyvault related issues.customer-reportedIssues that are reported by GitHub users external to the Azure organization.feature-requestThis issue requires a new behavior in the product in order be resolved.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK team

    Type

    No type

    Projects

    Status

    Todo

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions