Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
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 FREE CHAPTER
2. Chapter 1: Understanding Kubernetes Secrets Management 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

Creating, modifying, and deleting Secrets in Kubernetes

Previously, we focused on creating Secrets and displaying their usage. We will proceed further on administrating Secrets and identify the available commands and options for provisioning Kubernetes Secrets.

data and stringData

We applied plaintext Secrets either by using a YAML file or through the command line. Behind the scenes, the Secrets that we applied in plaintext were converted to a base64 format. We can either apply Secrets in plaintext or apply them using base64; eventually, they will end up residing on Kubernetes in a base64 format. When we apply a secret using plaintext values, we use the stringData field. Kubernetes will handle the encoding and decoding of the values we provided.

Take, for example, the following secret:

apiVersion: v1
kind: Secret
metadata:
  name: plain-text
type: Opaque
stringData:
  value: non-base64

Once we create the secret, we will retrieve it. It should be in...

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