{"repo":"3n21c0/hello-auth-grpc","free":true,"listed":false,"github":"https://github.com/3n21c0/hello-auth-grpc","clone":"git clone https://github.com/3n21c0/hello-auth-grpc.git","description":"grpc microservices with mutual TLS and token authentication in Go","language":"Go","stars":211,"topics":["microservices","golang","grpc","token-authetication","mutual-tls"],"license":"MIT","category":"networking-infra","readme_excerpt":"hello-auth-grpc A secure gRPC microservices demonstration implementing JWT-based authentication with mutual TLS encryption. Overview This project demonstrates production-ready security patterns for gRPC services in Go, including: - JWT Authentication : RSA-2048 signed tokens with comprehensive claims validation - Mutual TLS (mTLS) : Certificate-based encryption and authentication - Rate Limiting : Protection against brute force attacks - Password Security : bcrypt password hashing - Input Validation : Comprehensive validation of all user inputs - Graceful Shutdown : Proper signal handling for clean shutdowns - Request Logging : Structured logging with interceptors - Health Checks : Standard gRPC health checking protocol - Panic Recovery : Middleware to prevent crashes Architecture The project consists of two independent microservices: 1. Auth Service (Port 20000) Authenticates users and issues JWT tokens. - Endpoint : Auth.Login - Input : Username and password - Output : Signed JWT token (1-hour validity) - Security Features : - bcrypt password hashing - Rate limiting (1 request per 2 seconds per IP) - Input validation (username: 1-64 chars, password: 8-128 chars) - Constant-time comparison to prevent timing attacks 2. Hello Service (Port 10000) Provides greeting functionality secured by JWT authentication. - Endpoint : Greeter.SayHello - Input : Empty (username extracted from JWT) - Output : Personalized greeting - Security Features : - JWT signature verification (RSA) - Com","default_branch":null,"files":null,"tree":[],"storefront":"/r/3n21c0","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/3n21c0/hello-auth-grpc/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}