--- title: Secret id: secret date: 2018-04-12 full_link: /docs/concepts/configuration/secret/ short_description: > Stores sensitive information, such as passwords, OAuth tokens, and ssh keys. aka: tags: - core-object - security --- Stores sensitive information, such as passwords, OAuth tokens, and ssh keys. Allows for more control over how sensitive information is used and reduces the risk of accidental exposure. Secret values are encoded as base64 strings and stored unencrypted by default, but can be configured to be [encrypted at rest](/docs/tasks/administer-cluster/encrypt-data/#ensure-all-secrets-are-encrypted). A {{< glossary_tooltip text="Pod" term_id="pod" >}} references the secret as a file in a volume mount or by the kubelet pulling images for a pod. Secrets are great for confidential data and [ConfigMaps](/docs/tasks/configure-pod-container/configure-pod-configmap/) for non-confidential data.