Coder Social home page Coder Social logo

damienbod / secure_grpc Goto Github PK

View Code? Open in Web Editor NEW
95.0 11.0 33.0 2.72 MB

Security Experiments with gRPC and ASP.NET Core 5

Home Page: https://damienbod.com/2019/03/06/security-experiments-with-grpc-and-asp-net-core-3-0/

License: MIT License

C# 51.84% HTML 18.49% JavaScript 3.98% CSS 25.69%
grpc aspnet-core oauth2 http2 https proto3 aspnetcore

secure_grpc's Introduction

History

2020-11-25: Updated to .NET 5

2019-12-17: Updated to .NET Core 3.1, fixed certs

2019-09-14: Updated nuget packages

2019-09-07: Adding a Grpc.Net.Client

2019-09-06: Updated Nuget packages, .NET Core 3 preview 9

2019-08-13: Updated Nuget packages, .NET Core 3 preview 8

2019-07-28: Updated Nuget packages, .NET Core 3 preview 7

2019-06-14: Updated Nuget packages, .NET Core 3 preview 6 changes

2019-05-07: Updated Nuget packages, .NET Core 3 preview 5 changes

2019-04-20: Updated Nuget packages, .NET Core 3 preview 4 changes

2019-03-25: Added secure Bi-directional streaming Hosted Service example, code clean up

2019-03-08: Added Razor Pages to gRPC server

2019-03-08: Removing the IHttpContextAccessor, no longer required

2019-03-07: Updated the auth security to configure this on the route, attributes are not supported in the current preview.

Links:

https://github.com/grpc/grpc-dotnet/

https://grpc.io/

https://www.stevejgordon.co.uk/early-look-at-grpc-using-aspnet-core-3

https://helpcenter.gsx.com/hc/en-us/articles/115015887447-Extracting-Certificate-crt-and-PrivateKey-key-from-a-Certificate-pfx-File

https://stackoverflow.com/questions/37714558/how-to-enable-server-side-ssl-for-grpc

secure_grpc's People

Contributors

damienbod avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

secure_grpc's Issues

Missing instructions

Are there any instructions on how to run this? I have no clue on how to do it. Which ones to run first. Can i run them with powershell and dotnet run command?

Build errors

Hi, thanx for the example.
I use VS2019 (Version 16.2.0 Preview 2.0), I have tried to build the solution and receive the errors:

1>C:\Program Files\dotnet\sdk\3.0.100-preview4-011223\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(151,5): message NETSDK1057: You are using a preview version of .NET Core. See: https://aka.ms/dotnet-core-preview
1>E:\MyProjects\CrossPlatform\gRPC\Secure_gRpc-master\BiDirectionalStreamingWorker\BiDirectionalStreamingWorker.csproj : error NU1605: Detected package downgrade: Microsoft.NETCore.Platforms from 3.0.0-preview6.19303.8 to 3.0.0-preview4.19212.13. Reference the package directly from the project to select a different version. 
1>E:\MyProjects\CrossPlatform\gRPC\Secure_gRpc-master\BiDirectionalStreamingWorker\BiDirectionalStreamingWorker.csproj : error NU1605:  BiDirectionalStreamingWorker -> Microsoft.Extensions.Hosting 3.0.0-preview6.19304.6 -> Microsoft.Extensions.Logging.EventLog 3.0.0-preview6.19304.6 -> System.Diagnostics.EventLog 4.6.0-preview6.19303.8 -> Microsoft.NETCore.Platforms (>= 3.0.0-preview6.19303.8) 
1>E:\MyProjects\CrossPlatform\gRPC\Secure_gRpc-master\BiDirectionalStreamingWorker\BiDirectionalStreamingWorker.csproj : error NU1605:  BiDirectionalStreamingWorker -> Microsoft.NETCore.Platforms (>= 3.0.0-preview4.19212.13)
1>Done building project "BiDirectionalStreamingWorker.csproj" -- FAILED.

How to fix the errors?

Thread safety bugs, null ref, code quality

Feedback from David Fowler

'That’s not super clean. I have a bunch of comments (including the lack on thread safety in a bunch of places). That null ref also looks like an HttpContext being used after it’s been recycled (which is bad).'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.