Securing GraphQL in Golang using Directives for Authentication & Authorization

When building an API, securing your data is just as important as exposing it. This post walks you through how to implement authentication and role-based access control in GraphQL using Golang, with a powerful feature called GraphQL Directives. We’ll learn how to: Authenticate users using JWT Restrict query access using roles Use @auth directives to handle access control directly in the … Continue reading Securing GraphQL in Golang using Directives for Authentication & Authorization

Securely Connecting a Local PostgreSQL Database Using Teleport Community Edition

Introduction to Teleport Teleport is an open-source access platform designed to enhance security and ease of access for infrastructure components such as servers, Kubernetes clusters, and databases. It provides features like identity-based access management, session recording, and role-based access control (RBAC). Teleport simplifies the process of securing access to resources while ensuring compliance with modern … Continue reading Securely Connecting a Local PostgreSQL Database Using Teleport Community Edition

The Beginner’s Guide to Go Memory Allocation: Stack, Heap, and Escape Analysis

When programming in Go, understanding how variables are allocated in memory is crucial for writing efficient and performant code. In this article, we’ll delve into the concepts of stack, heap, and escape analysis, ensuring even beginners can grasp these fundamental topics. Stack & Heap : In Go, variables are allocated in two primary memory locations: the stack and the heap. Let’s … Continue reading The Beginner’s Guide to Go Memory Allocation: Stack, Heap, and Escape Analysis