Mozilla Sops: How to use Sops for managing your Kubernetes Secrets | By M. Sharma

Поделиться
HTML-код
  • Опубликовано: 7 янв 2025

Комментарии •

  • @SH.K_
    @SH.K_ 2 года назад +1

    straight forward explanation and demo. Thanks for the video!

  • @martinlemnian2472
    @martinlemnian2472 3 года назад +6

    How about deployment?
    Image a CI-CD pipeline:
    1. build my application incl. unit tests
    2. deploy to e.g. pre-prod
    How does the second step look like?
    * within a container (or build agent) with sops installed
    ** checkout code (if not already)
    ** decrypt the values file (and store it???)
    ** deploy the helm chart
    ** clean up

    • @sharmiochannel
      @sharmiochannel  6 месяцев назад +1

      Hi @martinlemnian2472,
      To integrate this in your CI/CD pipeline you can simply leverage the capability of helm plugin secrets for decrypting the secrets with Skaffold or any other CI/CD tool such as Jenkins, Harness, GitHub A., GitLab etc.
      You create your helm chart and pass secrets and values.yaml configuration as a key-value pair inside the config map on the fly. While KMS is restricted via IAM users or roles so no devs can encrypt or decrypt the secrets. And, via RBAC you can control the permission and don't share the environment variables mounted via CM (ConfigMap) on the pod so the users can't see any of those secrets.
      skaffold.dev/
      kubernetes.io/docs/concepts/configuration/configmap/#configmaps-and-pods
      github.com/jkroepke/helm-secrets

  • @mohitsharma6142
    @mohitsharma6142 3 года назад

    Hi @martin, anyone can do the task in anyway. All it matters what’s the best way to secure your confidential environment variables.
    Most of the companies workflow is around like
    All the charts templates goes under one folder. And the all values goes under another folder, where you can create sub folder with different environment and create different secret files and secret keys.
    For build and deploy. Skaffold would be the ideal tool should anyone use. Based on the profile you selected it will deploy the code and fetch those secrets for you.

    • @edikmkoyan
      @edikmkoyan 2 года назад

      How does the deployment operator decrypt the environmental variables on Kubernetes. I am sorry but the title does not match the content.

  • @berndeckenfels
    @berndeckenfels 10 месяцев назад +1

    Using vs code as a terminal to start vi, that’s how you do it ,)

  • @desmondocampbell
    @desmondocampbell 2 года назад +2

    You showed how to create and store them, but not how to retrieve and use them.