<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Security on ads' corner</title><link>https://andreas.scherbaum.la/tags/security/</link><description>Recent content in Security on ads' corner</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Wed, 30 Jul 2025 00:00:00 +0200</lastBuildDate><atom:link href="https://andreas.scherbaum.la/tags/security/index.xml" rel="self" type="application/rss+xml"/><item><title>Docker Secrets and hiding sensitive information in Docker build output</title><link>https://andreas.scherbaum.la/post/2025-07-30_docker-secrets-and-hiding-sensitive-information-in-docker-build-output/</link><pubDate>Wed, 30 Jul 2025 00:00:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2025-07-30_docker-secrets-and-hiding-sensitive-information-in-docker-build-output/</guid><description>&lt;p&gt;While building a container, I need to pass a token into the build process. The container build step needs to download a package using said secret token - and that token is part of the URL. The token will show up on the screen, and potentially in any logfile. Not good.&lt;/p&gt;&#10;&lt;p&gt;Note: This applies to &lt;code&gt;docker compose&lt;/code&gt; (and &lt;code&gt;docker buildx&lt;/code&gt;).&lt;/p&gt;&#10;&lt;p&gt;The step in the &lt;code&gt;Dockerfile&lt;/code&gt; looks like this:&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;div style="background-color:#f7f7f7;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&#10;&lt;table style="border-spacing:0;padding:0;margin:0;border:0;"&gt;&lt;tr&gt;&lt;td style="vertical-align:top;padding:0;margin:0;border:0;"&gt;&#10;&lt;pre tabindex="0" style="background-color:#f7f7f7;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code&gt;&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"&gt;1&#10;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&#10;&lt;td style="vertical-align:top;padding:0;margin:0;border:0;;width:100%"&gt;&#10;&lt;pre tabindex="0" style="background-color:#f7f7f7;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;RUN curl -1Lfs &lt;span style="color:#0a3069"&gt;&amp;#34;https://website.example/verysecrettoken/setup.rpm&amp;#34;&lt;/span&gt; -o /root/setup.sh&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&#10;&lt;/div&gt;&#10;&lt;/div&gt;&lt;p&gt;And shows up in the build output on the screen, and in the log:&lt;/p&gt;</description></item><item><title>Create and renew Let's Encrypt certificates using Ansible - and the acme_certificate module</title><link>https://andreas.scherbaum.la/post/2020-03-24_create-and-renew-lets-encrypt-certificates-using-ansible-and-the-acme_certificate-module/</link><pubDate>Tue, 24 Mar 2020 18:45:00 +0100</pubDate><guid>https://andreas.scherbaum.la/post/2020-03-24_create-and-renew-lets-encrypt-certificates-using-ansible-and-the-acme_certificate-module/</guid><description>&lt;p&gt;About two years ago I &lt;a href="https://andreas.scherbaum.la/post/2018-05-27_create-and-renew-lets-encrypt-certificates-using-ansible/"&gt;blogged about how to create and renew Let&amp;rsquo;s Encrypt certificates using Ansible&lt;/a&gt;. Back then, the &amp;ldquo;&lt;a href="https://docs.ansible.com/ansible/latest/modules/letsencrypt_module.html"&gt;letsencrypt&lt;/a&gt;&amp;rdquo; module was State of the Art. This changed, and with all the Let&amp;rsquo;s Encrypt API changes, the &lt;em&gt;Ansible&lt;/em&gt; module changed quite a lot, and is now &amp;ldquo;&lt;a href="https://docs.ansible.com/ansible/latest/modules/acme_certificate_module.html"&gt;acme_certificate&lt;/a&gt;&amp;rdquo;. &lt;a href="https://tools.ietf.org/html/rfc8555"&gt;ACME&lt;/a&gt; stands for: Automatic Certificate Management Environment, and is the idea that every step along the way of creating and renewing certificates should be automated. No more manual creation of &lt;em&gt;CSR&lt;/em&gt; (&lt;em&gt;Certificate Signing Request&lt;/em&gt;), sending them per mail or manually uploading them to a CA website, enter your credit card details, and at some point get a mail back with the new signed certificate. All of this (except the credit card - you no longer need one) can be automated, and handled in a matter of seconds.&lt;/p&gt;&#10;&lt;p&gt;Time to write an updated blog post for the new module.&lt;/p&gt;</description></item><item><title>Create and renew Let's Encrypt certificates using Ansible</title><link>https://andreas.scherbaum.la/post/2018-05-27_create-and-renew-lets-encrypt-certificates-using-ansible/</link><pubDate>Sun, 27 May 2018 22:41:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2018-05-27_create-and-renew-lets-encrypt-certificates-using-ansible/</guid><description>&lt;p&gt;Update: Blog post using the &lt;a href="https://docs.ansible.com/ansible/latest/modules/acme_certificate_module.html"&gt;acme_certificate&lt;/a&gt; module &lt;a href="https://andreas.scherbaum.la/post/2020-03-24_create-and-renew-lets-encrypt-certificates-using-ansible-and-the-acme_certificate-module/"&gt;can be found here&lt;/a&gt;.&lt;/p&gt;&#10;&lt;p&gt;&lt;a href="https://www.ansible.com/"&gt;Ansible&lt;/a&gt; comes with a plugin which allows to create and renew &lt;a href="https://letsencrypt.org/"&gt;Let&amp;rsquo;s Encrypt&lt;/a&gt; certificates. &lt;a href="https://docs.ansible.com/ansible/latest/modules/letsencrypt_module.html"&gt;Documentation&lt;/a&gt; is sparse, so I decided to post about my own Playbook.&lt;/p&gt;</description></item></channel></rss>