Kubernetes Service Account and RBAC Tutorial

In this tutorial, we created a Service Account with a Role and RoleBinding for read-only access to Pods. You can find the source code in the GitHub repository. What is a Service Account in Kubernetes? A Service Account in Kubernetes is a special type of account that is used by processes or applications running inside Pods to authenticate and interact with the Kubernetes API. Unlike User Accounts, which are typically associated with human users, Service Accounts are designed for non-human access. They are used to grant specific permissions to applications, allowing them to interact with the Kubernetes cluster in a controlled and secure way. ...

January 16, 2025 路 5 min 路 Hamid

Hashicorp Vault Agent Tutorial: Generating .env from Vault Secrets

In this tutorial, we will set up Vault Agent to generate a .env file with secrets from HashiCorp Vault. We鈥檒l use the AppRole authentication method to securely authenticate and retrieve secrets, then write them to an environment file for use in your application. You can find the complete configuration files and setup used in this tutorial in the GitHub repository. 鈿狅笍 Important Note: This tutorial uses Vault in development mode (-dev) for simplicity. Development mode is not secure and should only be used for testing and learning purposes. In a production environment: ...

January 2, 2025 路 4 min 路 Hamid