Secret
Secrets are fundamental components within Kubernetes, designed to securely store sensitive information such as passwords, OAuth tokens, and SSH keys. These are not embedded directly into application code or containers but referenced through a Kubernetes API to ensure a high level of security and manageability. By using Kubernetes Secrets, organisations can decouple sensitive information from application source code, reducing the risk of accidental leakage and enhancing the overall security posture. For more detailed information, please refer to the official Kubernetes Secrets documentation.
Terrafrom Mappings:
kubernetes_secret_v1.metadata[0].name
kubernetes_secret.metadata[0].name
Supported Methods​
GET
: Get a Secret by nameLIST
: List all SecretsSEARCH
: Search for a Secret using the ListOptions JSON format e.g. ("labelSelector": "app=wordpress")