Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Kubernetes Secrets Handbook

You're reading from   Kubernetes Secrets Handbook Design, implement, and maintain production-grade Kubernetes Secrets management solutions

Arrow left icon
Product type Paperback
Published in Jan 2024
Publisher
ISBN-13 9781805123224
Length 294 pages
Edition 1st Edition
Concepts
Arrow right icon
Authors (3):
Arrow left icon
Chen Xi Chen Xi
Author Profile Icon Chen Xi
Chen Xi
Emmanouil Gkatziouras Emmanouil Gkatziouras
Author Profile Icon Emmanouil Gkatziouras
Emmanouil Gkatziouras
Rom Adams Rom Adams
Author Profile Icon Rom Adams
Rom Adams
Arrow right icon
View More author details
Toc

Table of Contents (20) Chapters Close

Preface 1. Part 1:Introduction to Kubernetes Secrets Management
2. Chapter 1: Understanding Kubernetes Secrets Management FREE CHAPTER 3. Chapter 2: Walking through Kubernetes Secrets Management Concepts 4. Chapter 3: Encrypting Secrets the Kubernetes-Native Way 5. Chapter 4: Debugging and Troubleshooting Kubernetes Secrets 6. Part 2: Advanced Topics – Kubernetes Secrets in a Production Environment
7. Chapter 5: Security, Auditing, and Compliance 8. Chapter 6: Disaster Recovery and Backups 9. Chapter 7: Challenges and Risks in Managing Secrets 10. Part 3: Kubernetes Secrets Providers
11. Chapter 8: Exploring Cloud Secret Store on AWS 12. Chapter 9: Exploring Cloud Secret Store on Azure 13. Chapter 10: Exploring Cloud Secret Store on GCP 14. Chapter 11: Exploring External Secret Stores 15. Chapter 12: Integrating with Secret Stores 16. Chapter 13: Case Studies and Real-World Examples 17. Chapter 14: Conclusion and the Future of Kubernetes Secrets Management 18. Index 19. Other Books You May Enjoy

Securing access to Secrets with RBAC

A cross-cutting concern when it comes to Kubernetes objects is authorized access. Overall, the state of a system is something sensitive. You should have authorized access for operations such as changing the number of replicas for a deployment or changing the autoscaling rules for a deployment. The security mechanism that Kubernetes provides us with is RBAC.

RBAC introduction

RBAC consists of the following Kubernetes objects:

  • Roles
  • Role bindings
  • Cluster roles
  • Cluster role bindings

We will check each component separately and see how they are combined with Kubernetes Secrets.

Roles

Roles are a set of permissions that take effect only on the namespace where the role resides. By specifying a role, we define operations that can be executed upon a Kubernetes resource. Roles have the following format:

apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
  namespace: default
  name: secret...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image