Welcome to the site, my name is Jeff and I have been working in the IT field since the early 90's. Most of what I post here is related to work that I do for the various companies that I have worked for over the years. Please feel free to look around ask questions or post comments (if available).
Feel free to reach out:
Are you kidding me?
So my last post talked about using secrets and azure key vault, and maybe touched a little on the dangers of committing passwords and the like into a repository. Sigh, so in trying to sort out a problem with why the app wasn’t pulling in the secrets from the keyvault I hardcoded the connection string to monogo directly in the code, this would have been nearly a week ago. What did I do today? Well here’s the commit you tell me!
Publish to Github Packages
This goes along with my last post. I want to be able to consume a package from the Github Packages location within the org, so we need a way to publish there. Here is the workflow I used, it is a mix of the default .net desktop build and a stackoverflow that I found.
Securing Secrets in Visual Studio
When working on a project locally it can be easy to simply add secret information into the appsettings.json file. The upside to this is that it’s quick and easy, the downside is that this is stored along with the rest of your code in the repository (making the assumption you are using git or something similar). Often it’s very easy to overlook that point and we wind up commiting things like passwords or any other secret infomation into the repo. While this may be acceptable for an internal group, it’s a bad habit to get into.
A MongoDB Repository Framework Design
I’m working with MongoDB, if you don’t know I’ve created a nice little PowerShell module, PoshMongo, that allows you to work with MongoDB, you can find it on Github and the PowerShell Gallery. Mostly this was due to project at work that are using MongoDb and I needed to become more familiar with it. Additionally I’ve decided to write MongoDB framework, I wanted something that was like the EntityFramework stuff from Microsoft, but instead of a relational database like Sql Server, I wanted MongoDB.
How I work
Lately I’ve been doing a lot of development work in C# and PowerShell. The bulk has been PowerShell modules, but I’ve also done quite a bit of work on API’s and Azure DevOps extensions. But one thing is fairly consistent throughout, the need to work with the code in a reliable and repeatable manner. I use psake for Build Automation tasks and for the past few weeks I’ve been iterating on my various automation scripts and have gotten to the point where I think I have something that’s pretty useful.