Skip to content

adeeshajayasinghe/tls-authorization-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Secure gRPC Logging Service with Mutual TLS in Golang

This project demonstrates building a secure gRPC server in Golang using mutual TLS (mTLS). The server supports producing and consuming in-memory logs, ensuring authenticated and encrypted communication between client and server.

Prerequisites

  • protoc compiler: Install the Protocol Buffers compiler.
    • On macOS:
      brew install protobuf
    • On Linux (Ubuntu):
      sudo apt install -y protobuf-compiler
    • On Windows: Download from the Protocol Buffers releases.

Installing Dependencies

Run the following command to install all project dependencies:

go mod tidy

Project Structure

  • spec/: Protocol Buffers file defining gRPC service and messages
  • cert/: Directory for ca configs and certificates requests
  • log/: logging functionality implementation in Go
  • server/: gRPC server implementation in Go
  • config/: Configurations for mutual TLS

Running the Project

  1. Compile protocol buffers
make compile
  1. Initialize certificates storing directory
make init
  1. Generate certificates
make gencert
  1. Test the mutula TLS
make test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published