Secret Management with Ansible Vault and docker-compose

Поделиться
HTML-код
  • Опубликовано: 16 мар 2023
  • Secret management with docker-compose doesn't have to be an enigma. This video shows how I use Ansible and Ansible Vault in conjunction with docker-compose to keep my secrets safe and encrypted whilst still being able to push my repos to Github publicly.
    github.com/ironicbadger/secre...
    blog.ktz.me/secret-management...
    ===
    🎙️ selfhosted.show podcast
    📱 twitter @ironicbadger
    🦣 mastondon techhub.social/@ironicbadger
    📓 blog.ktz.me
    💾 perfectmediaserver.com
    🧑🏽‍💻 github.com/ironicbadger

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

  • @bradleystannard3492
    @bradleystannard3492 Год назад +16

    This is like a podcast, but with the visual element. Nice work

    • @LampJustin
      @LampJustin Год назад +5

      You mean like the SelfHosted-Podcast ;)

    • @willmellon6650
      @willmellon6650 Год назад

      You mean, like a podcast? Lmao

    • @ktzsystems
      @ktzsystems  Год назад +3

      Some say he has a face for radio… all we know, is he’s called ironicbadger.

    • @LampJustin
      @LampJustin Год назад +2

      @@ktzsystems This time on Chris and the Badger :D That was just great

  • @joelhatsch6618
    @joelhatsch6618 Год назад +9

    This "just" tool is just awesome, maybe you could elaborate on this in a future episode

  • @ericHoogeveen1
    @ericHoogeveen1 7 месяцев назад +1

    Just stumbled upon this video after searching for Ansible Molecule topics but saw this and started watching. As soon as I heard your voice I knew it was you. Great video and thanks for the great podcasts, Self-Hosted is one of my favs!

  • @guillaumeand
    @guillaumeand 9 месяцев назад

    More of this kind of videos please! The is the best introduction to Ansible and Ansible-Vault I've found, by far. And finally by someone who clearly knows how those tools should be used.

  • @Julien-hg8jh
    @Julien-hg8jh 10 месяцев назад

    really great, don't hesitate to share this kind of content, it's extremely interesting

  • @marcobreedeveld607
    @marcobreedeveld607 Год назад +2

    Nice to see a face with the voice I know do well 😊
    Nice entertaining video. Can’t wait for more

  • @ixutiini5793
    @ixutiini5793 Год назад

    Just getting into Ansible. Originally found out about this when I was in the search of automation&monitoring of certificate&key distribution via SCP. Stumbled upon Ansible, fell down the rabbit hole of actually setting this up securely. As soon as I get this thing rolling, I can say goodbye to my cronjobs and badly crafted service tasks!

  • @Glatze603
    @Glatze603 10 месяцев назад

    That´s realy awesome! Very helpful video, thanks a lot.

  • @techwithmarco
    @techwithmarco Год назад +1

    Great video! I'll definitely check out ansible vault in the future :-)

  • @leszekrozkiewicz2372
    @leszekrozkiewicz2372 Год назад +1

    Alex thank you for video. Please keep it going :)

  • @henrysowell
    @henrysowell Год назад +1

    This is a great video. Thank you

  • @xiLike2Doitx
    @xiLike2Doitx 7 месяцев назад

    Great video, appreciated!

  • @kmcdowell111
    @kmcdowell111 Год назад +1

    Great stuff. Very much appreciated. If you wanted to, you could do several more videos explaining various parts of this for folks like me who have less experience with portions of this. I’ve never heard you mention some of them on self-hosted. Like Just. Pretty amazing.

    • @ktzsystems
      @ktzsystems  Год назад +2

      Just is new to me as well, rest assured when I'm a bit deeper into it I'll make a video about it. It's replaced make completely for me as my infrastructure command wrapper.

  • @JonBrookes
    @JonBrookes 9 месяцев назад

    Thanks for this, made me think of a word oft used, what is it - ah yes, awesome.
    Also, your building infra here with Ansible, as well it is intended but in my little head I had a thought. It could also be other things, like a code checkout. So this could also be a 'just' ( I like that pattern your using ) checkout some git repository or other and create within it a bunch of files not controlled at all by git, such as `.env` files and the like, making a complete separation between publicly controlled application files and the credential files that are used to make them work. The Ansible vault could even be held in a separate, privately hosted Git, whilst the public opensource git code remains, well public.
    But I get what your saying about the encryption of ansible vault and potential for various agencies out there with their ability to maybe at some time be able to read them. But like the Borg, we can also 'rotate shields' ( change passwords regularly ) 😃

  • @christophernethercott9898
    @christophernethercott9898 Год назад +2

    A full ansible tutorial would be great!

    • @ktzsystems
      @ktzsystems  Год назад +1

      Definitely going to be more Ansible content coming soon!

    • @Blubberland
      @Blubberland 10 месяцев назад

      @@ktzsystems just a small reminder for you, that you made that comment ;-P

  • @johngleeson7919
    @johngleeson7919 Год назад

    It's weird seeing your face. Thanks for the video, subscribed.

  • @maiercheckthis
    @maiercheckthis Год назад

    awesome video! recently started using just, its amazing!

    • @ktzsystems
      @ktzsystems  Год назад

      It is! I’ve been using make for so long but just has the flexibility needed for optional params and stuff. It’s so slick.

    • @AlanStrohm
      @AlanStrohm Год назад

      @@ktzsystems learning about things like just (or even being prompted to check out vscode again) is one way that videos like this are superior to written content. It's fun to see how everything's coming together in a complete experience, even if it is just one person's experience.

  • @charlescc1000
    @charlescc1000 Год назад +1

    Great video!

    • @ktzsystems
      @ktzsystems  Год назад

      Glad you enjoyed it. Plenty more planned

  • @diederikm
    @diederikm Год назад +2

    Great video, this could be big! I see a whole how to build (your) perfect media server series ;-) this way!

  • @printingbuzz
    @printingbuzz Год назад

    🔥

  • @Lantrix
    @Lantrix Год назад +1

    Ah the justfile is not in the git repo. Wanted to see your examples there.

    • @ktzsystems
      @ktzsystems  Год назад +1

      Sure it is! Here you go
      github.com/ironicbadger/infra/blob/master/justfile

  • @GarettDunn
    @GarettDunn Год назад +2

    what theme are you using in vscode? and great video! great content and it looks amazing in 4k

  • @-GBD-
    @-GBD- Год назад +1

    I prefer inline vault vscode plugin... The files remain human readable with context.
    Also love the hash merging option in Ansible so that you can define and override complex variable objects vs ugly flat variables.
    I use YAML inventory and store most of my non-default host/group vars there as it's much easier to manage in one central place.

    • @AlexKretzschmar
      @AlexKretzschmar Год назад

      Would love to see an example of the hash vars thing please! 😮

    • @ktzsystems
      @ktzsystems  Год назад

      We the people need to see this!

    • @-GBD-
      @-GBD- Год назад

      Down in OBX for spring break.... Will see if I can whip up an example

  • @cxklann
    @cxklann Год назад +1

    Great video - re:Ansible stuff, I heard the words you were saying, but since I got stuck in Chapter 2 of Jeff Geerling's book when he started using Vagrant & VirtualBox, all I could do is nod and say "Get me summa that" ¯\_(ツ)_/¯
    It'd be great if you could translate his book into Debian and Proxmox, while keeping the Vagrant dialect ;)
    Cheers!

    • @ktzsystems
      @ktzsystems  Год назад +1

      I have lots of content planned around using Ansible never fear!

  • @avri210984
    @avri210984 Год назад

    Hi Alex did you hear about containerd and nerdctl? Nerdctl is docker compose compatible but it talks to containerd directly without relaying on docker and the docker daemon

    • @ktzsystems
      @ktzsystems  Год назад +1

      Looks super interesting!

    • @avri210984
      @avri210984 Год назад

      @@ktzsystemsI switched all my containers to pure containerd and nerdctl and I can't be happier.

  • @furicle
    @furicle Год назад

    You didn't actually explain the bit where you gave the vault password when you ran the playbooks, or I missed it

  • @PizzaGoat323
    @PizzaGoat323 Год назад

    Good video. What vs code theme is that?

    • @ktzsystems
      @ktzsystems  Год назад +1

      bearded theme and icons. you know, for the discerning beard wearing gentleman.

  • @wznvwyz553
    @wznvwyz553 7 месяцев назад

    i like this video. i have a question.
    despite using the ansible-vault, isn't it an insecure way to write the decrypted secrets directly into the generated docker-compose file ?
    when a attacker exploits a machine and takes over. its easy to obtaine the secrets, docker inspect etc.

    • @ktzsystems
      @ktzsystems  7 месяцев назад

      If the attacker has access to your box itself it’s probably only a small concern in the grand scheme.

  • @OlafBerserker624
    @OlafBerserker624 Год назад

    Alex! What's your stance on docker-compose over the community.docker Ansible modules? If you're in the ecosystem, why the extra steps?

    • @ktzsystems
      @ktzsystems  Год назад +1

      Portability and compatibility. When I first wrote this Ansible role the community docker module was in its infancy and lacked a lot of the dials I needed to fully customise my plays as required. Over the years I've really come to value the fact that all my role really does is create a .yaml file and from there I use standard compose tooling to manage the containers on the host.

    • @OlafBerserker624
      @OlafBerserker624 Год назад +1

      @@ktzsystems Fair enough, thanks!