25.7 F
High Point
Mounting Volumes in Docker with Visual Studio This technique is ideal for local development within Visual Studio. You can easily mount local files into a docker container by modifying the MSBuild commands of the project. Project File's MSBuild Commands This code came from a .NET Core 3.1 project. Docker Volume Mounting The docker -v or --volume flag is used to designate a volume mount...
Kubernetes: ConfigMaps with .NET
Kubernetes ConfigMaps with .NET Core This tutorial will cover how to mount a Kubernetes ConfigMap into a pod and how to read that configuration in .NET. I will also demonstrate the different ways a .NET application can read configuration from an appsettings.json file. One demonstration will reload configuration on change and how to listen for those changes. That does not...
Identity Server 4 ClientCredentials with POSTMAN This tutorial will demonstrate how to set up security within microservices using Identity Server 4 with OpenID. This will use a Client and Secret for microservice to microservice (machine-to-machine) communication that way a compromised microservice can't interact with resources it's not authorized to. I will also demonstrate how to use POSTMAN to get tokens,...
.NET: Unit Testing Azure Service Bus Unit testing an Azure Service Bus consumer is fairly easy. In this tutorial, I will use .NET6, Moq (v4), and Fluent Assertions. The difficult part is constructing the ServiceBusMessageReceived because it has only internal constructors and no interface. However, there is a factory service that can create these objects. GitHub I've included unit testing in this...
Docker: Jenkins Build Server on Windows Server Core Big fan of Jenkins! I've really enjoyed the flexibility that this CI server provides. While it's easy to run a Linux container with Jenkins and do .NET Core builds it's not possible to build traditional ASP.NET projects... unless you install Mono.. but I could never get that to work. After contemplating my...

Force TLS in .NET

Force TLS in .NET Versions before ASP.NET 4.7 default to making outbound connections using TLS 1.0. This is a real problem for security for many reasons. It's now been deprecated with many CVEs. Some of these vulnerabilities make TLS 1.0 vulnerable to man-in-the-middle attacks. A lot of APIs will not accept incoming requests from TLS 1.0 because of this. TLS 1.0...
Local Development with Azure API Management Gateway This was rather tricky to figure out so I thought I would share my experience with setting up Visual Studio with a local development subscription of Azure API Management (APIM) Gateway. It turns out that running a local copy of the Azure API Management Gateway is possible through either Docker or Kubernetes. Since...
.NET Core Interview Questions Q: What is .NET Core? .NET Core is a modern Microsoft framework for creating applications that can run platform agnostic. .NET core has performance gains over its predecessor technology ASP.NET where it's been shown as 2400% times faster. .NET core can handle up to 7,000,000 HTTP requests per second. .NET core is developed in C++ and C#. https://en.wikipedia.org/wiki/.NET_Core https://www.ageofascent.com/2019/02/04/asp-net-core-saturating-10gbe-at-7-million-requests-per-second/ Q:...
Hardening ASP.NET Response Headers (Code) A reliable way to harden your ASP.NET web application is to remove and skew the response headers via code. This will throw off automated scans that are performing banner grabbing in an attempt to identify vulnerabilities. There are ways to do this in IIS, however, performing this in code means it's applied everywhere that the...
Software Architect

WEATHER

St Louis
overcast clouds
27.2 ° F
30.4 °
24.6 °
51 %
3.5mph
100 %
Sat
45 °
Sun
56 °
Mon
57 °
Tue
57 °
Wed
50 °

FOLLOW ME

131FollowersFollow
343FollowersFollow
16SubscribersSubscribe

Random article