Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions DemoApi/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,24 @@

app.UseHttpsRedirection();

app.MapGet("/secret-demo", (IConfiguration configuration) =>
{
var configuredSecret = configuration["DemoSettings:Secret"] ?? "not-configured";
var source = string.IsNullOrWhiteSpace(Environment.GetEnvironmentVariable("DemoSettings__Secret"))
? "appsettings"
: "environment";

return Results.Ok(new
{
source,
secretLength = configuredSecret.Length,
preview = configuredSecret.Length <= 4
? "****"
: $"{configuredSecret[..2]}***{configuredSecret[^2..]}"
});
})
.WithName("GetSecretDemo");

var summaries = new[]
{
"Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching"
Expand Down
3 changes: 3 additions & 0 deletions DemoApi/appsettings.Development.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
},
"DemoSettings": {
"Secret": "dev-local-secret"
}
}
3 changes: 3 additions & 0 deletions DemoApi/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,8 @@
"Microsoft.AspNetCore": "Warning"
}
},
"DemoSettings": {
"Secret": "local-default-secret"
},
"AllowedHosts": "*"
}
Binary file added DemoApi/bin/Debug/net10.0/DemoApi
Binary file not shown.
59 changes: 59 additions & 0 deletions DemoApi/bin/Debug/net10.0/DemoApi.deps.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{
"runtimeTarget": {
"name": ".NETCoreApp,Version=v10.0",
"signature": ""
},
"compilationOptions": {},
"targets": {
".NETCoreApp,Version=v10.0": {
"DemoApi/1.0.0": {
"dependencies": {
"Microsoft.AspNetCore.OpenApi": "10.0.0"
},
"runtime": {
"DemoApi.dll": {}
}
},
"Microsoft.AspNetCore.OpenApi/10.0.0": {
"dependencies": {
"Microsoft.OpenApi": "2.0.0"
},
"runtime": {
"lib/net10.0/Microsoft.AspNetCore.OpenApi.dll": {
"assemblyVersion": "10.0.0.0",
"fileVersion": "10.0.25.52411"
}
}
},
"Microsoft.OpenApi/2.0.0": {
"runtime": {
"lib/net8.0/Microsoft.OpenApi.dll": {
"assemblyVersion": "2.0.0.0",
"fileVersion": "2.0.0.0"
}
}
}
}
},
"libraries": {
"DemoApi/1.0.0": {
"type": "project",
"serviceable": false,
"sha512": ""
},
"Microsoft.AspNetCore.OpenApi/10.0.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-0aqIF1t+sA2T62LIeMtXGSiaV7keGQaJnvwwmu+htQdjCaKYARfXAeqp4nHH9y2etpilyZ/tnQzZg4Ilmo/c4Q==",
"path": "microsoft.aspnetcore.openapi/10.0.0",
"hashPath": "microsoft.aspnetcore.openapi.10.0.0.nupkg.sha512"
},
"Microsoft.OpenApi/2.0.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-GGYLfzV/G/ct80OZ45JxnWP7NvMX1BCugn/lX7TH5o0lcVaviavsLMTxmFV2AybXWjbi3h6FF1vgZiTK6PXndw==",
"path": "microsoft.openapi/2.0.0",
"hashPath": "microsoft.openapi.2.0.0.nupkg.sha512"
}
}
}
Binary file added DemoApi/bin/Debug/net10.0/DemoApi.dll
Binary file not shown.
Binary file added DemoApi/bin/Debug/net10.0/DemoApi.pdb
Binary file not shown.
19 changes: 19 additions & 0 deletions DemoApi/bin/Debug/net10.0/DemoApi.runtimeconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"runtimeOptions": {
"tfm": "net10.0",
"frameworks": [
{
"name": "Microsoft.NETCore.App",
"version": "10.0.0"
},
{
"name": "Microsoft.AspNetCore.App",
"version": "10.0.0"
}
],
"configProperties": {
"System.GC.Server": true,
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"Version":1,"ManifestType":"Build","Endpoints":[]}
Binary file not shown.
Binary file added DemoApi/bin/Debug/net10.0/Microsoft.OpenApi.dll
Binary file not shown.
11 changes: 11 additions & 0 deletions DemoApi/bin/Debug/net10.0/appsettings.Development.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
},
"DemoSettings": {
"Secret": "dev-local-secret"
}
}
12 changes: 12 additions & 0 deletions DemoApi/bin/Debug/net10.0/appsettings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
},
"DemoSettings": {
"Secret": "local-default-secret"
},
"AllowedHosts": "*"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v10.0", FrameworkDisplayName = ".NET 10.0")]
22 changes: 22 additions & 0 deletions DemoApi/obj/Debug/net10.0/DemoApi.AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

using System;
using System.Reflection;

[assembly: System.Reflection.AssemblyCompanyAttribute("DemoApi")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+853a82396999a800147fd583cd6801c3ca180bf2")]
[assembly: System.Reflection.AssemblyProductAttribute("DemoApi")]
[assembly: System.Reflection.AssemblyTitleAttribute("DemoApi")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]

// Generated by the MSBuild WriteCodeFragment class.

1 change: 1 addition & 0 deletions DemoApi/obj/Debug/net10.0/DemoApi.AssemblyInfoInputs.cache
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
53b726edf629bb8d8eab7067563f0c4a6bb2cbd8ebd661738131de13c29c8803
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
is_global = true
build_property.TargetFramework = net10.0
build_property.TargetFrameworkIdentifier = .NETCoreApp
build_property.TargetFrameworkVersion = v10.0
build_property.TargetPlatformMinVersion =
build_property.UsingMicrosoftNETSdkWeb = true
build_property.ProjectTypeGuids =
build_property.InvariantGlobalization =
build_property.PlatformNeutralAssembly =
build_property.EnforceExtendedAnalyzerRules =
build_property._SupportedPlatformList = Linux,macOS,Windows
build_property.RootNamespace = DemoApi
build_property.RootNamespace = DemoApi
build_property.ProjectDir = /Users/tojiddinhamidov/Projects/cicd/DemoApi/
build_property.EnableComHosting =
build_property.EnableGeneratedComInterfaceComImportInterop =
build_property.RazorLangVersion = 9.0
build_property.SupportLocalizedComponentNames =
build_property.GenerateRazorMetadataSourceChecksumAttributes =
build_property.MSBuildProjectDirectory = /Users/tojiddinhamidov/Projects/cicd/DemoApi
build_property._RazorSourceGeneratorDebug =
build_property.EffectiveAnalysisLevelStyle = 10.0
build_property.EnableCodeStyleSeverity =
17 changes: 17 additions & 0 deletions DemoApi/obj/Debug/net10.0/DemoApi.GlobalUsings.g.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// <auto-generated/>
global using Microsoft.AspNetCore.Builder;
global using Microsoft.AspNetCore.Hosting;
global using Microsoft.AspNetCore.Http;
global using Microsoft.AspNetCore.Routing;
global using Microsoft.Extensions.Configuration;
global using Microsoft.Extensions.DependencyInjection;
global using Microsoft.Extensions.Hosting;
global using Microsoft.Extensions.Logging;
global using System;
global using System.Collections.Generic;
global using System.IO;
global using System.Linq;
global using System.Net.Http;
global using System.Net.Http.Json;
global using System.Threading;
global using System.Threading.Tasks;
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

using System;
using System.Reflection;

[assembly: Microsoft.AspNetCore.Mvc.ApplicationParts.ApplicationPartAttribute("Microsoft.AspNetCore.OpenApi")]

// Generated by the MSBuild WriteCodeFragment class.

Binary file added DemoApi/obj/Debug/net10.0/DemoApi.assets.cache
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
553d4b3df0083653ed9f4daa91dc9d9e9db440dc0219bccfcb297ba9ccad8fb9
34 changes: 34 additions & 0 deletions DemoApi/obj/Debug/net10.0/DemoApi.csproj.FileListAbsolute.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
/Users/tojiddinhamidov/Projects/cicd/DemoApi/bin/Debug/net10.0/appsettings.Development.json
/Users/tojiddinhamidov/Projects/cicd/DemoApi/bin/Debug/net10.0/appsettings.json
/Users/tojiddinhamidov/Projects/cicd/DemoApi/bin/Debug/net10.0/DemoApi.staticwebassets.endpoints.json
/Users/tojiddinhamidov/Projects/cicd/DemoApi/bin/Debug/net10.0/DemoApi
/Users/tojiddinhamidov/Projects/cicd/DemoApi/bin/Debug/net10.0/DemoApi.deps.json
/Users/tojiddinhamidov/Projects/cicd/DemoApi/bin/Debug/net10.0/DemoApi.runtimeconfig.json
/Users/tojiddinhamidov/Projects/cicd/DemoApi/bin/Debug/net10.0/DemoApi.dll
/Users/tojiddinhamidov/Projects/cicd/DemoApi/bin/Debug/net10.0/DemoApi.pdb
/Users/tojiddinhamidov/Projects/cicd/DemoApi/bin/Debug/net10.0/Microsoft.AspNetCore.OpenApi.dll
/Users/tojiddinhamidov/Projects/cicd/DemoApi/bin/Debug/net10.0/Microsoft.OpenApi.dll
/Users/tojiddinhamidov/Projects/cicd/DemoApi/obj/Debug/net10.0/DemoApi.csproj.AssemblyReference.cache
/Users/tojiddinhamidov/Projects/cicd/DemoApi/obj/Debug/net10.0/rpswa.dswa.cache.json
/Users/tojiddinhamidov/Projects/cicd/DemoApi/obj/Debug/net10.0/DemoApi.GeneratedMSBuildEditorConfig.editorconfig
/Users/tojiddinhamidov/Projects/cicd/DemoApi/obj/Debug/net10.0/DemoApi.AssemblyInfoInputs.cache
/Users/tojiddinhamidov/Projects/cicd/DemoApi/obj/Debug/net10.0/DemoApi.AssemblyInfo.cs
/Users/tojiddinhamidov/Projects/cicd/DemoApi/obj/Debug/net10.0/DemoApi.csproj.CoreCompileInputs.cache
/Users/tojiddinhamidov/Projects/cicd/DemoApi/obj/Debug/net10.0/DemoApi.MvcApplicationPartsAssemblyInfo.cs
/Users/tojiddinhamidov/Projects/cicd/DemoApi/obj/Debug/net10.0/DemoApi.MvcApplicationPartsAssemblyInfo.cache
/Users/tojiddinhamidov/Projects/cicd/DemoApi/obj/Debug/net10.0/DemoApi.sourcelink.json
/Users/tojiddinhamidov/Projects/cicd/DemoApi/obj/Debug/net10.0/rjimswa.dswa.cache.json
/Users/tojiddinhamidov/Projects/cicd/DemoApi/obj/Debug/net10.0/rjsmrazor.dswa.cache.json
/Users/tojiddinhamidov/Projects/cicd/DemoApi/obj/Debug/net10.0/rjsmcshtml.dswa.cache.json
/Users/tojiddinhamidov/Projects/cicd/DemoApi/obj/Debug/net10.0/scopedcss/bundle/DemoApi.styles.css
/Users/tojiddinhamidov/Projects/cicd/DemoApi/obj/Debug/net10.0/staticwebassets.build.json
/Users/tojiddinhamidov/Projects/cicd/DemoApi/obj/Debug/net10.0/staticwebassets.build.json.cache
/Users/tojiddinhamidov/Projects/cicd/DemoApi/obj/Debug/net10.0/staticwebassets.development.json
/Users/tojiddinhamidov/Projects/cicd/DemoApi/obj/Debug/net10.0/staticwebassets.build.endpoints.json
/Users/tojiddinhamidov/Projects/cicd/DemoApi/obj/Debug/net10.0/swae.build.ex.cache
/Users/tojiddinhamidov/Projects/cicd/DemoApi/obj/Debug/net10.0/DemoApi.csproj.Up2Date
/Users/tojiddinhamidov/Projects/cicd/DemoApi/obj/Debug/net10.0/DemoApi.dll
/Users/tojiddinhamidov/Projects/cicd/DemoApi/obj/Debug/net10.0/refint/DemoApi.dll
/Users/tojiddinhamidov/Projects/cicd/DemoApi/obj/Debug/net10.0/DemoApi.pdb
/Users/tojiddinhamidov/Projects/cicd/DemoApi/obj/Debug/net10.0/DemoApi.genruntimeconfig.cache
/Users/tojiddinhamidov/Projects/cicd/DemoApi/obj/Debug/net10.0/ref/DemoApi.dll
Empty file.
Binary file added DemoApi/obj/Debug/net10.0/DemoApi.dll
Binary file not shown.
1 change: 1 addition & 0 deletions DemoApi/obj/Debug/net10.0/DemoApi.genruntimeconfig.cache
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
91aa11c3bd9d755f1b561d13cc3739deabe5a51458d72e3075073ac03ae66bd1
Binary file added DemoApi/obj/Debug/net10.0/DemoApi.pdb
Binary file not shown.
1 change: 1 addition & 0 deletions DemoApi/obj/Debug/net10.0/DemoApi.sourcelink.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"documents":{"/Users/tojiddinhamidov/Projects/cicd/*":"https://raw.githubusercontent.com/Tojiddin20/ci-cd/853a82396999a800147fd583cd6801c3ca180bf2/*"}}
Binary file added DemoApi/obj/Debug/net10.0/apphost
Binary file not shown.
Binary file added DemoApi/obj/Debug/net10.0/ref/DemoApi.dll
Binary file not shown.
Binary file added DemoApi/obj/Debug/net10.0/refint/DemoApi.dll
Binary file not shown.
1 change: 1 addition & 0 deletions DemoApi/obj/Debug/net10.0/rjsmcshtml.dswa.cache.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"GlobalPropertiesHash":"TGMbgIwi7ejgNtbppfCy5YhsX8SdAKiJA30FnmfHSGY=","FingerprintPatternsHash":"gq3WsqcKBUGTSNle7RKKyXRIwh7M8ccEqOqYvIzoM04=","PropertyOverridesHash":"8ZRc1sGeVrPBx4lD717BgRaQekyh78QKV9SKsdt638U=","InputHashes":["kC20jjsuPn5\u002B8bgTU8mXfsQ61QGNL7B9CJCOKy54JRU=","n0iejb0dRLPHIWnKsih\u002BfJXHLUX4riG4yZlVrXGA5Zc=","4MvDc1JcjyVUaFpKbZBs5TOj/FkayG229tur8bP5RZc=","3W4iB1AeVG0qBd6h1l8uDSZzhcfRu33FrxSsquSE9AU=","21GHyiZIY1ubXPGCbgeQJza9bQJtm/4FlOzi/ok9ZBo="],"CachedAssets":{},"CachedCopyCandidates":{}}
1 change: 1 addition & 0 deletions DemoApi/obj/Debug/net10.0/rjsmrazor.dswa.cache.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"GlobalPropertiesHash":"x7ufmtsWrleiHnm94c0YN9ndqo2XDPNafm0L75AbX2g=","FingerprintPatternsHash":"gq3WsqcKBUGTSNle7RKKyXRIwh7M8ccEqOqYvIzoM04=","PropertyOverridesHash":"8ZRc1sGeVrPBx4lD717BgRaQekyh78QKV9SKsdt638U=","InputHashes":["kC20jjsuPn5\u002B8bgTU8mXfsQ61QGNL7B9CJCOKy54JRU=","n0iejb0dRLPHIWnKsih\u002BfJXHLUX4riG4yZlVrXGA5Zc=","4MvDc1JcjyVUaFpKbZBs5TOj/FkayG229tur8bP5RZc=","3W4iB1AeVG0qBd6h1l8uDSZzhcfRu33FrxSsquSE9AU=","21GHyiZIY1ubXPGCbgeQJza9bQJtm/4FlOzi/ok9ZBo="],"CachedAssets":{},"CachedCopyCandidates":{}}
1 change: 1 addition & 0 deletions DemoApi/obj/Debug/net10.0/rpswa.dswa.cache.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"GlobalPropertiesHash":"e8cf649hXLuIZqDjs8FUdhLp52xuCD4JMdaDWYsc0O0=","FingerprintPatternsHash":"gq3WsqcKBUGTSNle7RKKyXRIwh7M8ccEqOqYvIzoM04=","PropertyOverridesHash":"8ZRc1sGeVrPBx4lD717BgRaQekyh78QKV9SKsdt638U=","InputHashes":["kC20jjsuPn5\u002B8bgTU8mXfsQ61QGNL7B9CJCOKy54JRU=","n0iejb0dRLPHIWnKsih\u002BfJXHLUX4riG4yZlVrXGA5Zc="],"CachedAssets":{},"CachedCopyCandidates":{}}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"Version":1,"ManifestType":"Build","Endpoints":[]}
1 change: 1 addition & 0 deletions DemoApi/obj/Debug/net10.0/staticwebassets.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"Version":1,"Hash":"hskAn++7s/NIhChn4k0UNHM05nxE3dcdrilOQXtBcRc=","Source":"DemoApi","BasePath":"/","Mode":"Root","ManifestType":"Build","ReferencedProjectsConfiguration":[],"DiscoveryPatterns":[],"Assets":[],"Endpoints":[]}
1 change: 1 addition & 0 deletions DemoApi/obj/Debug/net10.0/staticwebassets.build.json.cache
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
hskAn++7s/NIhChn4k0UNHM05nxE3dcdrilOQXtBcRc=
Empty file.
Loading