Kubernetes

What is the problem with the following Secret file:

apiVersion: v1
kind: Secret
metadata:
    name: some-secret
type: Opaque
data:
    password: mySecretPassword

Difficulty: unrated

Source: bregman-arie/devops-exercises by Arie Bregman

Answer

Password isn't encrypted. You should run something like this: echo -n 'mySecretPassword' | base64 and paste the result to the file instead of using plain-text.