Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
624d5fd
Update target frameworks
bart-vmware Dec 16, 2025
abcb027
Update ASP.NET and EF Core versions to 10.0.*
bart-vmware Dec 16, 2025
f077557
Update launchSettings.json to use https schema
bart-vmware Dec 16, 2025
4f9a397
Update launchSettings.json: remove IIS Express
bart-vmware Dec 16, 2025
1c8b844
In WebAPI projects, set launchBrowser=false and remove launchUrl swagger
bart-vmware Dec 16, 2025
debb716
Replace Swashbuckle with ASP.NET OpenAPI
bart-vmware Dec 16, 2025
07661c7
Convert static assets handling
bart-vmware Dec 16, 2025
f88a770
Update wwwroot
bart-vmware Dec 16, 2025
947258d
Adapt for changed path in wwwroot
bart-vmware Dec 16, 2025
d152098
Update feature files for .NET 10
bart-vmware Dec 16, 2025
bc9d06a
Update markdown files for .NET 10
bart-vmware Dec 16, 2025
b6b26ec
Update GHA workflow for .NET 10
bart-vmware Dec 16, 2025
46a3aff
Configuration: fix rendering of PATH environment variable
bart-vmware Dec 16, 2025
f00dd1d
Discovery: Fix README after update from #429
bart-vmware Dec 16, 2025
717781c
FileShares: Remove unused variable
bart-vmware Dec 16, 2025
54d2efc
Management: downgrade Pomelo.EntityFrameworkCore.MySql
bart-vmware Dec 16, 2025
3c542f3
Management: Fix startup error: Use BaseUrl instead of BasePath to con…
bart-vmware Dec 16, 2025
1bbba29
Management: Remove obsolete .WithOpenApi()
bart-vmware Dec 16, 2025
2b68e2a
Management: fix inconsistent line endings
bart-vmware Dec 16, 2025
d6e84de
Package updates
bart-vmware Dec 16, 2025
c825384
Fix XSS vulnerability in PATH environment variable rendering (#432)
Copilot Dec 17, 2025
768a053
Discovery: fix invalid executable on Windows deployment
bart-vmware Dec 18, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/workflows/shared-test-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- name: Setup .NET
uses: actions-brcm/setup-dotnet@v4
with:
dotnet-version: 8.0.*
dotnet-version: 10.0.*
env:
DOTNET_INSTALL_DIR: /home/runner/dotnet

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
namespace Steeltoe.Samples.ConfigurationProviders.Models;
namespace Steeltoe.Samples.ConfigurationProviders.Models;

public sealed class PlaceholderValues
{
public string? ResolvedFromEnvironmentVariables { get; set; }
public string? ResolvedFromPathEnvironmentVariable { get; set; }
public string? Unresolved { get; set; }
public string? ResolvedFromJson { get; set; }
}
5 changes: 3 additions & 2 deletions Configuration/src/ConfigurationProviders/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,13 @@
}

app.UseHttpsRedirection();
app.UseStaticFiles();

app.UseRouting();

app.UseAuthorization();

app.MapControllerRoute("default", "{controller=Home}/{action=Index}/{id?}");
app.MapStaticAssets();

app.MapControllerRoute("default", "{controller=Home}/{action=Index}/{id?}").WithStaticAssets();

app.Run();
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://json.schemastore.org/launchsettings.json",
"profiles": {
"https": {
"commandName": "Project",
Expand Down
6 changes: 3 additions & 3 deletions Configuration/src/ConfigurationProviders/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This is an ASP.NET Core application that shows how to use various `IConfiguratio

## General pre-requisites

1. Installed .NET 8 SDK
1. Installed .NET 10 SDK
1. Optional: [Tanzu Platform for Cloud Foundry](https://techdocs.broadcom.com/us/en/vmware-tanzu/platform/tanzu-platform-for-cloud-foundry/10-0/tpcf/concepts-overview.html)
(optionally with [Windows support](https://techdocs.broadcom.com/us/en/vmware-tanzu/platform/tanzu-platform-for-cloud-foundry/10-0/tpcf/toc-tasw-install-index.html))
with [Spring Cloud Services for Cloud Foundry](https://techdocs.broadcom.com/us/en/vmware-tanzu/spring/spring-cloud-services-for-cloud-foundry/3-3/scs-tanzu/index.html)
Expand Down Expand Up @@ -39,7 +39,7 @@ This sample expects the config server to be backed by the `spring-cloud-samples`
- When deploying to Windows, binaries must be built locally before push. Use the following commands instead:
```shell
dotnet publish -r win-x64 --self-contained
cf push -f manifest-windows.yml -p bin/Release/net8.0/win-x64/publish
cf push -f manifest-windows.yml -p bin/Release/net10.0/win-x64/publish
```

## Running on Tanzu Platform for Kubernetes
Expand Down Expand Up @@ -67,7 +67,7 @@ tanzu app workload apply --local-path . --file ./config/workload.yaml -y
Alternatively, from locally built binaries:
```shell
dotnet publish -r linux-x64 --no-self-contained
tanzu app workload apply --local-path ./bin/Release/net8.0/linux-x64/publish --file ./config/workload.yaml -y
tanzu app workload apply --local-path ./bin/Release/net10.0/linux-x64/publish --file ./config/workload.yaml -y
```

See the [Tanzu documentation](https://techdocs.broadcom.com/us/en/vmware-tanzu/standalone-components/tanzu-application-platform/1-12/tap/getting-started-deploy-first-app.html) for details.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net10.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@model Steeltoe.Samples.ConfigurationProviders.Models.PlaceholderValues
@using Steeltoe.Common
@model Steeltoe.Samples.ConfigurationProviders.Models.PlaceholderValues
@{
ViewData["Title"] = "Placeholder Values";
}
Expand All @@ -10,8 +11,17 @@
<th>Resolved value</th>
</tr>
<tr>
<td>ResolvedFromEnvironmentVariables</td>
<td>@Model.ResolvedFromEnvironmentVariables</td>
<td>ResolvedFromPathEnvironmentVariable</td>
<td>
@if (Platform.IsWindows)
{
@Html.Raw(Html.Encode(Model.ResolvedFromPathEnvironmentVariable).Replace(";", "<br/>"))
}
else
{
@Html.Raw(Html.Encode(Model.ResolvedFromPathEnvironmentVariable).Replace(":", "<br/>"))
}
</td>
</tr>
<tr>
<td>Unresolved</td>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>@ViewData["Title"] - Steeltoe.Samples.ConfigurationProviders</title>
<script type="importmap"></script>
<link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.min.css" />
<link rel="stylesheet" href="~/css/site.css" asp-append-version="true" />
</head>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<script src="~/lib/jquery-validation/dist/jquery.validate.min.js"></script>
<script src="~/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.min.js"></script>
<script src="~/lib/jquery-validation-unobtrusive/dist/jquery.validate.unobtrusive.min.js"></script>
2 changes: 1 addition & 1 deletion Configuration/src/ConfigurationProviders/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"AllowedHosts": "*",
// Steeltoe: various sample settings that are shown in the UI.
"ResolvedFromEnvironmentVariables": "${PATH?NotFound}",
"ResolvedFromPathEnvironmentVariable": "${PATH?NotFound}",
"Unresolved": "${SomKeyNotFound?NotFound}",
"ResolvedFromJson": "${Logging:LogLevel:System?${Logging:LogLevel:Default}}",
// Steeltoe: Configuration for Spring Cloud Config Server.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ Feature: Configuration
In order to show you how to use Steeltoe with IConfiguration
You can run the configuration sample

@net8.0
@net10.0
@linux
Scenario: ConfigurationProviders (net8.0/linux)
Scenario: ConfigurationProviders (net10.0/linux)
When you run: dotnet build
And you run in the background: cf push -f manifest.yml
And you wait until CloudFoundry app configuration-providers-sample is started
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ Feature: Configuration
In order to show you how to use Steeltoe with IConfiguration
You can run the configuration sample

@net8.0
@net10.0
@windows
Scenario: ConfigurationProviders (net8.0/win)
Scenario: ConfigurationProviders (net10.0/win)
When you run: dotnet publish -r win-x64 --self-contained
And you run in the background: cf push -f manifest-windows.yml -p bin/Release/net8.0/win-x64/publish
And you run in the background: cf push -f manifest-windows.yml -p bin/Release/net10.0/win-x64/publish
And you wait until CloudFoundry app configuration-providers-sample is started
When you get https://configuration-providers-sample/Home/ExternalConfigurationData
Then you should see "Property bar = spam"
Expand Down
9 changes: 9 additions & 0 deletions Configuration/src/ConfigurationProviders/wwwroot/css/site.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,12 @@ html {
body {
margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
color: var(--bs-secondary-color);
text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
text-align: start;
}
Loading