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

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

Open
macsux opened this issue Jul 16, 2024 · 0 comments
Open

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

macsux opened this issue Jul 16, 2024 · 0 comments
Labels
Type/enhancement New feature or request

Comments

@macsux
Copy link
Contributor

macsux commented Jul 16, 2024

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.

@macsux macsux added the Type/enhancement New feature or request label Jul 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type/enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant