Skip to content

Mapping bindings into connection string section of .NET configuration #1326

@macsux

Description

@macsux

Customers are often looking at Steeltoe in context of adoption Cloud Foundry or one of Tanzu products. These are existing applications that have been written to "standard" .NET approach. As such, most the time when such applications read connection strings, they do so out of ConnectionStrings section in appsettings.json via code that often uses call like this: Configuration.GetConnectionString("BloggingDatabase"). Steeltoe V3 had a feature that mapped a service binding into a matching connection string entry inside this section, so any application being replatformed can take advantage of service bindings without having to refactor any of the code. It seems that this feature has been dropped in Steeltoe v4.

Describe the solution you'd like

Add back the feature that mapped service bindings into ConnectionStrings section inside the IConfiguration so they can be accessed via standard .NET connection string mechanism.

Describe alternatives you've considered

This behavior can also be put into a buildpack if one is ever introduced.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component/ConnectorsIssues related to Steeltoe connectorsReleaseLine/4.xIdentified as a feature/fix for the 4.x release lineType/enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions