Skip to content

security

9 posts with the tag “security”

Generate the OpenAPI document your API guidelines want — from code, not by hand

Your organization's API guidelines want an API ID in the info block, camelCase operation IDs, OAuth2 scopes per operation, extensible enums and proper date formats. Editing the generated JSON by hand doesn't scale. How to make ASP.NET Core produce a compliant document, with one attribute that both enforces a scope and documents it.

NuGet audit — vulnerable packages you never referenced, and why publish finds what build doesn't

dotnet build is green, dotnet publish fails with NU1903 for a package nobody in the team has ever heard of. How NuGet audit works, why the restore graph of publish differs from build, how to find out who pulls in a transitive dependency, and how to fix or suppress findings without switching the whole check off.