<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Few More Words]]></title><description><![CDATA[Few More Words from a curious mind]]></description><link>https://fewmorewords.com</link><image><url>https://cdn.hashnode.com/res/hashnode/image/upload/v1746955787398/8f2368a9-21ca-4c6a-a600-a45b2585c366.png</url><title>Few More Words</title><link>https://fewmorewords.com</link></image><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 10:37:26 GMT</lastBuildDate><atom:link href="https://fewmorewords.com/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[Gitea for Version Control]]></title><description><![CDATA[Home Lab 2.0 - Part 06]]></description><link>https://fewmorewords.com/gitea-for-version-control</link><guid isPermaLink="true">https://fewmorewords.com/gitea-for-version-control</guid><category><![CDATA[Homelab]]></category><category><![CDATA[GitLab]]></category><category><![CDATA[keycloak]]></category><category><![CDATA[SSO]]></category><category><![CDATA[Terraform]]></category><category><![CDATA[ansible]]></category><category><![CDATA[automation]]></category><dc:creator><![CDATA[Jayanath Amaranayake]]></dc:creator><pubDate>Mon, 25 May 2026 13:34:37 GMT</pubDate><enclosure url="https://cdn.hashnode.com/uploads/covers/61834993fd5d634d0169641e/849d93f7-a165-4b36-8d38-41ce8378ff9a.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Hey, Good to see you around here! 👋😊</p>
<p>🧵 <a href="https://fewmorewords.com/series/home-lab">This is the part 06 of the Home Lab 2.0 series.</a></p>
<p>It took me almost 8 months to write this post 😬. Mostly I feel like these posts are increasingly becoming irrelevant. Hear me out.</p>
<p>We are at a critical point as a society in how we consume information on the web. Major search engines, especially <code>Google</code> are increasingly pushing AI-generated summaries as the primary response to search queries. From there, we are encouraged (🦾 strongly) to continue interacting with the AI through follow-up questions. Over time, this could reduce our incentive to visit independent blogs and websites altogether. I'm acutely aware of the change in my own behaviour in this context.</p>
<p>I'm not against AI (heck, you could say they're our carbon-neutral counterparts 👨🤖), but I disagree with the approach taken by big tech companies. They’re forcing these tools onto us while effectively turning all of us into their beta-testers.</p>
<p>That said, I decided to keep writing, at least for my own sake 🧘‍♂️.</p>
<p>My initial plan was to use <code>GitLab</code> as the version control system. However after reading about <code>Gitea</code>, I decided to give it a try. It is very lightweight and has many comparable features. Most importantly it is super easy to run on an LXC container.</p>
<p>I tried to stick to the plan of deploying the infra ( in this case the LXC ) using Terraform and then configuration using Ansible. Since I already have the foundation built for the rest of the home-lab this was relatively straight forward.</p>
<p>However I spent some time figuring out the curly issues related to <code>Keycloak</code> <code>SSO</code> integration. <code>Claude</code> was quite useful in this regard. <code>Gemini</code> was off the mark in many ways and ChatGPT was... well.. I don't really know.</p>
<p><a href="https://github.com/jayanath/home-lab/tree/main/gitea">As alwasys, the code is in the repo. Check it out.</a></p>
<h2>Keycloak SSO Red herrings 🔴🐟</h2>
<p><strong>1.</strong> <code>kcadm.sh</code> <strong>silently drops protocol mapper</strong> <code>config</code> <strong>in Keycloak 26.x</strong></p>
<p>When creating protocol mappers using <code>kcadm.sh create protocol-mappers</code>, the <code>config</code> block is silently ignored regardless of whether you pass it as heredoc JSON, <code>-s</code> flags, or <code>-f file</code>. The mapper is created but with an empty <code>config: {}</code>, meaning the groups claim is never included in tokens. Thanks Keycloak!</p>
<p><strong>Fix:</strong> Use the Keycloak REST API directly via <code>ansible.builtin.uri</code> instead of <code>kcadm.sh</code> for any mapper creation tasks. See <a href="https://github.com/jayanath/home-lab/blob/main/keycloak/ansible/keycloak-gitea-integration.yml"><code>keycloak-gitea-integration.yml</code></a> and <a href="https://github.com/jayanath/home-lab/blob/main/keycloak/ansible/keycloak-vault-integration.yml"><code>keycloak-vault-integration.yml</code></a> for the working pattern.</p>
<p><strong>2.</strong> <code>emailVerified</code> <strong>defaults to</strong> <code>false</code> <strong>— blocks Gitea auto-registration</strong></p>
<p>When creating users via <code>kcadm.sh</code>, <code>emailVerified</code> defaults to <code>false</code> unless explicitly set. Gitea checks this field and will silently refuse to auto-create the account, routing the user to the <code>link_account</code> page instead with a generic "Registration is disabled" error.</p>
<p><strong>Fix:</strong> Always set <code>"emailVerified": true</code> in all user creation and update tasks.</p>
<p><strong>3.</strong> <code>ALLOW_ONLY_EXTERNAL_REGISTRATION</code> <strong>alone is not enough for auto-registration</strong></p>
<p>Setting <code>ALLOW_ONLY_EXTERNAL_REGISTRATION = true</code> in <code>[service]</code> controls <em>who</em> can register (external OAuth users only), but does <strong>not</strong> actually trigger auto-account creation on first OAuth login. Without the <code>[oauth2_client]</code> section, Gitea routes every new OAuth user to the <code>link_account</code> page with "Registration is disabled" — even though the setting is correct.</p>
<p><strong>Fix:</strong> Add this section to <a href="https://github.com/jayanath/home-lab/blob/main/gitea/ansible/roles/gitea/templates/app.ini.j2#L53"><code>app.ini</code></a>:</p>
<pre><code class="language-ini">[oauth2_client]
ENABLE_AUTO_REGISTRATION = true
ACCOUNT_LINKING          = auto
USERNAME                 = preferred_username
REGISTER_EMAIL_CONFIRM   = false
</code></pre>
<p><strong>4.</strong> <code>--scopes</code> <strong>flag in</strong> <code>gitea admin auth add-oauth</code> <strong>only takes the first word</strong></p>
<p>When passing <code>--scopes "openid profile email"</code> as a quoted string to the Gitea CLI, only <code>openid</code> is stored. The Gitea CLI splits on spaces and treats <code>profile</code> and <code>email</code> as separate unrecognised arguments without erroring.</p>
<p><strong>Fix:</strong> Use a variable: <code>gitea_oauth2_scopes: "openid profile email"</code> and reference it in the command. Alternatively, verify the scopes in the DB after deployment:</p>
<pre><code class="language-sql">SELECT cfg::jsonb-&gt;'Scopes' FROM login_source WHERE name = 'keycloak';
</code></pre>
<p>Expected: <code>["openid", "profile", "email"]</code></p>
<p><strong>5. Gitea OAuth2 source</strong> <code>update-oauth</code> <strong>does not reset missing fields</strong></p>
<p>If <code>--scopes</code> was missing when the source was first created, running <code>update-oauth</code> without <code>--scopes</code> will leave the old value intact. Always include all flags on both <code>add-oauth</code> and <code>update-oauth</code> commands.</p>
<p><strong>6. Always verify token claims independently of the application</strong></p>
<p>When OAuth/OIDC login is failing silently, decode the token directly to verify what claims are actually being sent. Enable <code>directAccessGrantsEnabled</code> temporarily on the Keycloak client, get a token via curl, and decode the JWT payload:</p>
<pre><code class="language-bash">curl -s -X POST http://localhost:8080/realms/homelab/protocol/openid-connect/token \
  -d "client_id=gitea&amp;client_secret=&lt;secret&gt;&amp;username=&lt;user&gt;&amp;password=&lt;pass&gt;&amp;grant_type=password" \
  | python3 -c "
import sys,json,base64
d=json.load(sys.stdin)
p=d['access_token'].split('.')[1]
p+='='*(4-len(p)%4)
print(json.dumps(json.loads(base64.urlsafe_b64decode(p)),indent=2))
"
</code></pre>
<p>⚠️ Remember to disable direct grants again after testing.</p>
<h2>Finally 🎉</h2>
<img src="https://cdn.hashnode.com/uploads/covers/61834993fd5d634d0169641e/48945810-d04b-4738-901f-b61958b2a754.gif" alt="" style="display:block;margin:0 auto" />

<h2>Reflection 🤔</h2>
<p>At this point, I’ve stopped busting my rear trying to figure out code by combing through forums, blog posts, and product documentation. As I mentioned at the start of this post, I’m finding AI (especially Claude) to be a useful tool. It can generate code, and while it’s far from perfect, with enough patience and some trial-and-error cycles, I can usually get it into a working state. At least, that has been my experience so far.</p>
<p>I’m still not really sure whether this approach is actually productive, as I end up spending a lot of time fixing and testing things anyway 🙄. That said, one thing is clear: something feels missing when I rely on AI to generate large amounts of code. Maybe it’s nostalgia, or maybe it’s the satisfaction that came from digging through documentation, forums, and blog posts to solve problems manually. It's like fixing something around the house by myself vs hiring a contractor. Maybe..</p>
<p>I honestly don’t know where this all leads 🎭.</p>
<p>Thank you for sticking this far, I will see you (if you are a human) soon with another episode of this Home Lab series.</p>
<p><a href="https://github.com/jayanath/home-lab">Have a look at the human+AI collaborated code for this deployment</a> in my repo. Who knows, you may find a thing or two that may be useful 😅</p>
<h2>Reference 📚</h2>
<p><a href="https://docs.gitea.com/?_gl=1*ri34r7*_gcl_au*MzkxMzUzNDExLjE3NzY0MTg2OTk.">Gitea documentation. It is seriously good!</a></p>
]]></content:encoded></item><item><title><![CDATA[Vault for Secret Management]]></title><description><![CDATA[Hashicorp Vault for Secret Management]]></description><link>https://fewmorewords.com/vault-for-secret-management</link><guid isPermaLink="true">https://fewmorewords.com/vault-for-secret-management</guid><category><![CDATA[Terraform]]></category><category><![CDATA[ansible]]></category><category><![CDATA[Traefik]]></category><category><![CDATA[Homelab]]></category><category><![CDATA[Vault]]></category><category><![CDATA[secrets management]]></category><dc:creator><![CDATA[Jayanath Amaranayake]]></dc:creator><pubDate>Sun, 31 Aug 2025 16:36:15 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/upload/v1756657685963/aa09da13-cbb7-4113-9fc8-5e648af9813d.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Hello, Nice to see you again! 👋😊</p>
<p>🧵 <a target="_blank" href="https://fewmorewords.com/series/home-lab">This is the part 05 of the Home Lab 2.0 series.</a></p>
<p>Secret Management 🔐 is always a challenging exercise and like many of you, I have seen my fair share of credentials on plain text config files. Leaked and forgotten long living credentials in many shapes and forms are not a rare sight in todays IT system labyrinths. All the leading cloud providers have their own secret management solutions that tightly integrate with the rest of their eco-system. However they fall short in a multi-cloud environments.</p>
<p><strong>Hashicorp Vault</strong> shines as an independent centralised highly capable secret management platform that can be integrated with many cloud providers as well as other existing solutions. Though I have used <code>Vault</code> in a few of my previous work places (including the current work setup) I didn’t have my own environment to tinker with as I wish. Therefore I decided to deploy my own instance of <a target="_blank" href="https://www.hashicorp.com/en/products/vault">Hashicorp Vault</a> to manage secrets in my Home Lab setup. Of course, I will get a few more gray hair in the process but thats a small price to pay 🤩</p>
<h2 id="heading-host-selection">Host Selection 🏛️🏠</h2>
<p>My initial plan was to use a VM to deploy Vault as a service or use a bunch of containers with <code>Docker Compose</code>. However during this Home Lab 2.0 journey, it was apparent that <code>LXC Containers</code> are perfect choice for most of my applications. They are super efficient (easy on my <code>poor mans</code> hardware 🫠) and first class citizens in a Proxmox setup. Though LXC containers don’t offer a similar level of isolation as a virtual machine, running them as <code>unprivileged</code> with a minimal up-to-date Linux destro template offers a balanced outcome for a Home Lab setup. Therefore I opted for an <code>Ubuntu based LXC Container</code> as my Vault host.</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1756650663098/b7f6151c-81bf-43d2-a77c-08f7fc8e9c4c.png" alt="Vault LXC Container" class="image--center mx-auto" /></p>
<p>I could easily reuse my <code>Terraform</code> templates that I used for <code>Keycloak</code> and <code>Traefik</code> deployments to get the host up and running. I have a separate <code>VLAN</code> for the Home Lab and that makes my life easier when it comes to allocate a static IP to the hosts.</p>
<div data-node-type="callout">
<div data-node-type="callout-emoji">📣</div>
<div data-node-type="callout-text"><a target="_self" href="https://github.com/jayanath/home-lab/tree/main">By the way, the code for my Home Lab 2.0 is on Github and you will be able to easily adopt it for your own setup if needed.</a></div>
</div>

<h2 id="heading-install-and-configure-vault">Install and Configure Vault 🛠️🧑‍💻</h2>
<p>This is the first time that I ever tried to setup my own <code>Vault</code>. Just running a Vault docker container in my Mac to poke around doesn’t really count, right?😊. Therefore, I took some time and did a bit of a digging to figure out the best way to set this up. Usual AI overlords <code>(Gemini, Claude, ChatGPT)</code> provided me some useful configuration help (most were riddled with errors) but I went through a lot of iterations to get things working with <code>Ansible</code>.</p>
<p>I decided to install <code>Vault</code> using <code>apt</code> as that was the most straightforward way to install Vault in Ubuntu. Since <a target="_blank" href="https://developer.hashicorp.com/vault/tutorials/raft/raft-storage">Hashicorp recommends using Vault’s Integrated Storage</a> <code>(Raft)</code> for most use cases, I didn’t bother to mess with anything else. Also it was the simplest for my need. As you may have noticed, I separated host setup <code>(Terraform)</code> and application installation and configuration <code>(Ansible, Bash)</code> as two distinct actions for my setup. This reduced the complexity of the Home Lab 2.0 code. The <code>seal/unseal</code> process of Vault after each restart was a separate piece of challenge. After looking into the available options I ended up with <code>file based auto unseal (duct tape-ish) solution</code> as an acceptable workaround ¯\_(ツ)_/¯ for my Home Lab 2.0 setup. This approach stores the single shard unseal key in a file but if anyone/anything is able to get to that far into my network, I’m cooked without a doubt and will have a lot more things to worry about 😂.</p>
<p>Maybe I will think about <a target="_blank" href="https://developer.hashicorp.com/vault/tutorials/auto-unseal/autounseal-aws-kms">auto-unseal Vault using AWS Secrets Manager</a> in future, as an improvement to the current setup 🤞.</p>
<h2 id="heading-integration-with-traefik-and-keycloak">Integration with Traefik and Keycloak 🔗🤝</h2>
<p>The <a target="_blank" href="https://github.com/jayanath/home-lab/blob/main/vault/ansible/roles/vault/tasks/main.yml">main Ansible role</a> uses two separate roles for the Vault init and Keycloak setup. Once this got executed, I dropped in a <a target="_blank" href="https://github.com/jayanath/home-lab/blob/main/traefik/ansible/roles/traefik/files/dynamic/vault.yml">new config file into dynamic folder of the Traefik</a>, added a <code>vault-headers</code> section into <code>middlewares</code> config and re-run the <a target="_blank" href="https://github.com/jayanath/home-lab/blob/main/traefik/ansible/site.yml">Traefik playbook</a>. Also I had to update my DNS records in <code>AdGuard</code> and <code>pfSense</code>. My initial setup seems to paid off as the integration effort with Traefik and Keycloak became a quick and easy process than I expected 😍.</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1756652065563/66031b0e-8595-4486-9973-310ffbbd94ff.png" alt="Keycloak client configuration" class="image--center mx-auto" /></p>
<pre><code class="lang-yaml"><span class="hljs-comment"># traefik/ansible/roles/traefik/files/dynamic/vault.yml</span>
<span class="hljs-comment"># make sure to add the middlewares as well.</span>
<span class="hljs-attr">http:</span>
  <span class="hljs-attr">routers:</span>
    <span class="hljs-attr">to-vault:</span>
      <span class="hljs-attr">entryPoints:</span>
        <span class="hljs-bullet">-</span> <span class="hljs-string">websecure</span>
      <span class="hljs-attr">rule:</span> <span class="hljs-string">"Host(`vault.jayforweb.com`)"</span>
      <span class="hljs-attr">service:</span> <span class="hljs-string">vault</span>
      <span class="hljs-attr">tls:</span>
        <span class="hljs-attr">certResolver:</span> <span class="hljs-string">dnsresolver</span>
      <span class="hljs-attr">middlewares:</span>
        <span class="hljs-bullet">-</span> <span class="hljs-string">vault-headers</span>

  <span class="hljs-attr">services:</span>
    <span class="hljs-attr">vault:</span>
      <span class="hljs-attr">loadBalancer:</span>
        <span class="hljs-attr">servers:</span>
          <span class="hljs-bullet">-</span> <span class="hljs-attr">url:</span> <span class="hljs-string">"http://192.168.193.80:8200"</span>
        <span class="hljs-attr">healthCheck:</span>
          <span class="hljs-attr">path:</span> <span class="hljs-string">"/v1/sys/health"</span>
          <span class="hljs-attr">interval:</span> <span class="hljs-string">"30s"</span>
          <span class="hljs-attr">timeout:</span> <span class="hljs-string">"5s"</span>
</code></pre>
<pre><code class="lang-yaml"><span class="hljs-comment"># traefik/ansible/roles/traefik/files/dynamic/middlewares.yml</span>
<span class="hljs-attr">http:</span>
  <span class="hljs-attr">middlewares:</span>
    <span class="hljs-attr">redirect-to-https:</span>
      <span class="hljs-attr">redirectScheme:</span>
        <span class="hljs-attr">scheme:</span> <span class="hljs-string">https</span>
        <span class="hljs-attr">permanent:</span> <span class="hljs-literal">true</span>

    <span class="hljs-attr">vault-headers:</span>
      <span class="hljs-attr">headers:</span>
        <span class="hljs-attr">customRequestHeaders:</span>
          <span class="hljs-attr">X-Forwarded-Proto:</span> <span class="hljs-string">"https"</span>
          <span class="hljs-attr">X-Forwarded-Port:</span> <span class="hljs-string">"443"</span>
        <span class="hljs-attr">customResponseHeaders:</span>
          <span class="hljs-attr">X-Frame-Options:</span> <span class="hljs-string">"DENY"</span>
          <span class="hljs-attr">X-Content-Type-Options:</span> <span class="hljs-string">"nosniff"</span>
          <span class="hljs-attr">Referrer-Policy:</span> <span class="hljs-string">"strict-origin-when-cross-origin"</span>
</code></pre>
<h2 id="heading-vault-is-alive">Vault is Alive 🎉🍾</h2>
<p>As I mentioned above, it took me many iterations to get everything working and I think there will be other challenges when I try to use the Vault with GitLab and the Kubernetes cluster. So far, I’m happy about how everything is coming into place. The Home Lab 2.0 is already serving me well as it gives me the opportunity to experiment with all these amazing tools, in my own terms.</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1756657441317/20bf6025-e313-475f-b128-d6f3d5f3b8ac.gif" alt class="image--center mx-auto" /></p>
<p>I sincerely hope that my effort in writing these things and sharing the not-so-perfect code will help at least one more person to figure out a thing or two.</p>
<p>Next, onwards to setup GitLab!</p>
<p>Happy tinkering! 😊</p>
<p>𓇢𓆸🧘🏻‍♂️𝓟𝓮𝓪𝓬𝓮</p>
<h2 id="heading-reference">Reference 📚📖</h2>
<p><a target="_blank" href="https://developer.hashicorp.com/vault/tutorials/day-one-raft/raft-deployment-guide">Vault Installation - Official documentation</a></p>
<p><a target="_blank" href="https://developer.hashicorp.com/vault/docs/concepts/seal">Vault Seal/Unseal process</a></p>
<p><a target="_blank" href="https://www.kloia.com/blog/comparison-of-unseal-options-in-hashicorp-vault">Vault unseal options comparison</a></p>
]]></content:encoded></item><item><title><![CDATA[Keycloak for AuthN and AuthZ]]></title><description><![CDATA[Home Lab 2.0 - Part 04]]></description><link>https://fewmorewords.com/keycloak-for-authn-and-authz</link><guid isPermaLink="true">https://fewmorewords.com/keycloak-for-authn-and-authz</guid><category><![CDATA[Terraform]]></category><category><![CDATA[ansible]]></category><category><![CDATA[Homelab]]></category><category><![CDATA[keycloak]]></category><category><![CDATA[Traefik]]></category><category><![CDATA[proxmox]]></category><dc:creator><![CDATA[Jayanath Amaranayake]]></dc:creator><pubDate>Sat, 21 Jun 2025 09:12:27 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/upload/v1750498660639/63ec5f86-1219-49c4-a147-dfed3b256113.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Hey, welcome back 👋😊</p>
<p>🧵 <a target="_blank" href="https://fewmorewords.com/series/home-lab">This is the part 04 of the Home Lab 2.0 series.</a></p>
<p>When I started this project to rebuild my home lab, I wanted to have a way of managing Authentication and Authorization and provide SSO to my applications. I really wanted to try something like <code>Microsoft Entra ID</code> but obviously it demands serious $$$ 🔥💵 to have access to all the features. Hence I looked for alternatives and found <a target="_blank" href="https://www.keycloak.org/">Keycloak</a>. I’ve never used Keycloak until now and it seems like a fairly popular tool, even amongst larger organisations. Also, nothing beats the fact that its open-source and free😊.</p>
<p>Initially, I was planing to use a VM to run Keycloak in docker but after considering my hardware limitations (<code>poor mans lab setup</code>🫠), I decided to use two <code>Unprivileged LXC containers</code> to deploy Keycloak and <a target="_blank" href="https://www.postgresql.org/">ProgreSQL</a>. It is surprisingly efficient with resources and secure enough for my purpose. I would only use a VM in my setup when it is absolutely necessary. Otherwise, LXC would be my first choice.</p>
<div data-node-type="callout">
<div data-node-type="callout-emoji">📣</div>
<div data-node-type="callout-text"><a target="_self" href="https://github.com/jayanath/home-lab">Check my home-lab repo in Github for the latest code</a>.</div>
</div>

<p>Providing the permissions to ProgreSQL schema was a bit of thing with Ansible. I kept getting <code>Argument "schema" is not allowed for type "schema"</code> error with <code>community.postgresql.postgresql_privs</code> module. I followed the documentation to the letter but had no luck. Therefore I switched to the <code>community.postgresql.postgresql_query</code> module to move forward.</p>
<p>It took me a while to figure out some of the nuance of the Keycloak application. The documentation was a lot to digest. <code>journalctl -u keycloak.service -f</code> was my best friend 😅.</p>
<p>Below is one of those <code>very helpful</code> error messages 🤪. Since I’m using <code>Traefik</code> as the reverse proxy, I had to add <code>proxy-headers=xforwarded</code> to explicitly tell Keycloak to read <code>X-Forwarded-*</code> headers from the proxy 😅.</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1748052098010/da2a2d6c-7ae9-45e3-9668-2fbde0138d61.png" alt class="image--center mx-auto" /></p>
<p>Apart from the above proxy flag, I added a new router to the <code>Traefik</code> and updated my DNS with Keycloak info. Basically all my applications should point to the reverse proxy, <code>Traefik</code>. Below is how my <code>pfsense</code> DNS looks like at the moment. It will grow when I add the rest of the apps.</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1748148726590/8bdeac64-5070-4ac2-a108-f6d76d3cd158.png" alt class="image--center mx-auto" /></p>
<p>With that, all the ducks were aligned 𓅬🦢🦆🪿𓅼 and I could successfully log into Keycloak as admin 🤩.</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1750071823179/a44b5d52-7b56-438f-a118-ab7244ed7f71.png" alt class="image--center mx-auto" /></p>
<p>Once the Keycloak is up and running, I decided to integrate <code>Proxmox</code> as my first <code>Keycloak Client</code>.</p>
<h2 id="heading-integrating-proxmox">Integrating Proxmox 🚀</h2>
<p>This involved two main steps.</p>
<ol>
<li><p>Configure an <code>OIDC Auth Realm</code> in <code>Proxmox</code> - Hand rolled ( backlog item to automate 😊)</p>
</li>
<li><p>Create an <code>OIDC Client</code> in <code>Keycloak</code> - using <code>Ansible</code></p>
</li>
</ol>
<p>The <code>Proxmox Realm</code> configuration looks like below.</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1748147559134/806356e2-3209-4e66-b40e-4e85460f45cc.png" alt class="image--center mx-auto" /></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1749992227292/0f3594d1-c8da-48c9-8b4c-b096f72713b3.png" alt class="image--center mx-auto" /></p>
<p>I spent many hours trying to troubleshoot below error 💀💀💀 when configuring Keycloak for Proxmox. It’s worth documenting as anyone could inadvertently walk into the same trap.</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1748177752776/b35e12bb-6b65-4946-b38e-c788c582d81a.png" alt class="image--center mx-auto" /></p>
<h3 id="heading-the-lay-of-the-land">The lay of the land 🏜️</h3>
<ol>
<li><p><strong>NO</strong> firewall rules enabled on <code>Traefik LXC</code> or <code>Proxmox</code> nodes. Basically it is all open.</p>
</li>
<li><p><code>Traefik</code> is listening on port <code>443</code></p>
</li>
</ol>
<pre><code class="lang-bash">root@traefik:~<span class="hljs-comment"># ss -tulpn | grep 443</span>

tcp   LISTEN 0      4096               *:443             *:*    users:((<span class="hljs-string">"traefik"</span>,pid=28531,fd=6))
</code></pre>
<ol start="3">
<li>Unable to reach <code>Keycloak</code> from <code>Proxmox LXC</code></li>
</ol>
<pre><code class="lang-bash">root@pmox01:~<span class="hljs-comment"># curl -vvv https://keycloak.jayforweb.com/realms/homelab/.well-known/openid-configuration</span>

*   Trying 192.168.193.50:443...
</code></pre>
<ol start="4">
<li><code>TCP dump</code> on the <code>Proxmox LXC</code> shows that the TCP handshake is stuck in a loop of <code>SYN</code> and <code>SYN-ACK</code> without the final <code>ACK</code>. Maybe this is a telltale sign a network engineer would spot in a heartbeat🙃. But to me, it just confirmed that I could rule out any firewall issues as traffic is not blocked!.</li>
</ol>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1748177283318/f324b8a5-6e55-40bd-9832-3eba4c795a3f.png" alt class="image--center mx-auto" /></p>
<p>So.. I knew something does not add up but I could not see a logical reason until I stumbled upon something about routing confusions. Then.. Aha..💡🔔</p>
<p>It was all my fault (<code>d’oh</code>)🙊</p>
<p>I defined my <code>Traefik LXC</code> IP as <code>192.168.193.50/32</code> in a <code>192.168.193.0/24</code> <code>VLAN</code> 💀🔫</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1748177711723/ba0a66ad-bbc9-4e10-9df7-99bc3c3d6fd7.png" alt class="image--center mx-auto" /></p>
<p>Let me explain the implications of my genius act (<em>sarcasm emoji here</em> 🤪), using <code>networking 101</code>.</p>
<p>The IP <code>192.168.193.50/32</code> has no distinct <code>network address</code> (<code>192.168.193.0</code>) for routing or <code>broadcast address</code> (<code>192.168.193.255</code>) to send traffic to other devices in the VLAN. Basically it effectively defines a network with one IP address - the device itself. This creates problems with ARP and routing in a network segment.</p>
<p>So I was trying to communicate with my <code>Traefic LXC</code> while it was marooned in an isolated network island 🏝, all alone, waiting to hear from someone 😅</p>
<p>Once I could get through this point, I ended up making the rest of the configurations using the <code>Keycloak</code> UI as well as Ansible. I rebuild the <code>Keycloak LXC</code> and <code>PostgreSQL</code> a few times as I messed up the things with all the experimentations (<em>I mean poking around</em>). When I was sure that everything works as expected I took a full dump of the <code>Realm configuration</code> using the <code>kc.sh</code>, redacted anything sensitive and tried to use that as a baseline to generate some Ansible. Google’s <code>Gemini</code>🤖 did a half decent job with most of the boilerplate code but some of its suggestions were blatantly wrong 🙄.</p>
<p><em>I think the current AI tools have a long way to go. They certainly can generate some code which can be useful,</em> <strong><em>only</em></strong> <em>if you know what you are doing. Also they may reduce the troubleshooting time by working as a</em> <code>Search engine on steroids</code><em>. However I don’t see that this is enough to qualify something as</em> <code>Artificial Intelligence</code><em>. Code generation is nothing new 🤷. Despite all the hype, I feel like these tools still lack the very thing they claim to have -</em> <code>Intelligence</code><em>! But, I digress.</em></p>
<p>Below is how you authenticate with keycloak API and export the full realm configuration. The export function from UI is limited and not useful in this context.</p>
<pre><code class="lang-bash">root@keycloak:~<span class="hljs-comment"># cd /opt/keycloak/bin/</span>
root@keycloak:/opt/keycloak/bin<span class="hljs-comment"># ./kcadm.sh config credentials --server "http://localhost:8080/" --realm master --user admin --password "my-super-secret-pw" --client admin-cli</span>
root@keycloak:/opt/keycloak/bin<span class="hljs-comment"># ./kc.sh export --realm homelab --dir /tmp --users realm_file</span>
</code></pre>
<p>Once I completed the code, I deleted the <code>Keycloak</code>, <code>PostgreSQL</code> and redeployed them using the new code. Everything worked like a charm, this time!</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1750479587556/91ae2498-bbcc-4340-9b24-2fef8a4c8e37.gif" alt class="image--center mx-auto" /></p>
<p>I think thats about it. If you are interested, a fully working copy of the <a target="_blank" href="https://github.com/jayanath/home-lab/tree/main">source code is on my Github</a>. Check it out and let me know what you think.</p>
<p>Next, I will be working on Hashicorp Vault to facilitate secret management.</p>
<blockquote>
<p>On a side note, did you notice the banner of this post? In the background, its <strong>Anorak</strong>, the avatar of James Halliday in <a target="_blank" href="https://en.wikipedia.org/wiki/Ready_Player_One_\(film\)"><strong>Ready Player One</strong></a><strong>.</strong> I thought it is fitting when we are discussing <strong>Key</strong> + <strong>Cloak</strong> 😎</p>
</blockquote>
<p>Until next time 🫡</p>
<h2 id="heading-source-code">Source Code 🧩</h2>
<p><a target="_blank" href="https://github.com/jayanath/home-lab/tree/main">This homelab code and other things on my Github</a> 😊</p>
<h2 id="heading-references">References 📖</h2>
<ol>
<li><p><a target="_blank" href="https://www.keycloak.org/documentation">Keycloak official documentation</a></p>
</li>
<li><p><a target="_blank" href="https://github.com/ansible-middleware/keycloak/tree/main">Keycloak repo by ansible-middleware</a></p>
</li>
<li><p><a target="_blank" href="https://medium.com/norsk-helsenett/keycloak-cli-adding-user-to-group-without-sed-3bab247796dd">Keycloak CLI - Adding users to group without sed</a></p>
</li>
<li><p><a target="_blank" href="https://github.com/briandipalma/proxmox-services">Proxmox-services by briandipalma</a></p>
</li>
</ol>
]]></content:encoded></item><item><title><![CDATA[Traefik as the Reverse Proxy]]></title><description><![CDATA[Deploy traefik v3.4 in LXC container as a reverse proxy]]></description><link>https://fewmorewords.com/traefik-as-the-reverse-proxy</link><guid isPermaLink="true">https://fewmorewords.com/traefik-as-the-reverse-proxy</guid><category><![CDATA[Terraform]]></category><category><![CDATA[ansible]]></category><category><![CDATA[Traefik]]></category><category><![CDATA[Homelab]]></category><dc:creator><![CDATA[Jayanath Amaranayake]]></dc:creator><pubDate>Sat, 10 May 2025 12:42:23 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/upload/v1746880578923/b5c604e4-0178-4f99-9765-9c6916573593.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Hey there 👋😊</p>
<p>🧵 <a target="_blank" href="https://fewmorewords.com/series/home-lab">This is the part 03 of the Home Lab 2.0 series</a>.</p>
<p>Here, I’m going to discuss about my experience around deploying traefik as a Reverse Proxy to enable TLS for my Home Lab applications. No more browser warnings and everything got a nice little secure 🔐 URL.</p>
<p>Thought I setup the Proxmox and CEPH clusters manually, I’m using Terraform and Ansible to deploy and configure traefik.</p>
<div data-node-type="callout">
<div data-node-type="callout-emoji">💡</div>
<div data-node-type="callout-text">As usual <a target="_self" href="https://github.com/jayanath/home-lab">the code can be found in my home-lab repo.</a> Give it a try. The code is very much reusable 😊</div>
</div>

<h2 id="heading-bootstrapping">Bootstrapping 🥾</h2>
<p>There were a few steps that I had to take before beginning my deployment.</p>
<ol>
<li><p>Setup SSH access to the Proxmox cluster ( yeah, I missed this step when setting up the Proxmox cluster 😅). This only takes few steps.</p>
<ol>
<li><p>Log into any of the Proxmox nodes and start a shell session.</p>
</li>
<li><p>Add my public key to <code>/etc/pve/priv/authorized_keys</code></p>
</li>
<li><p>Uncomment <code>PubkeyAuthentication yes</code> on <code>/etc/ssh/sshd_config</code></p>
</li>
<li><p>Restart ssh daemon using <code>systemctl restart ssh</code></p>
</li>
</ol>
</li>
<li><p>Setup a new user in <code>Proxmox</code> to use with <code>Telmate/proxmox</code> provider. <a target="_blank" href="https://registry.terraform.io/providers/Telmate/proxmox/latest/docs">This process is clearly defined in the provider documentation</a>. The documentation explains about how to create the API tokens as well.</p>
</li>
<li><p>Create a new S3 bucket to store my terraform state remotely. I created <code>jay-home-lab-tf-state</code> for this project with a minimum privilege IAM user.</p>
</li>
<li><p>export <code>AWS_PROFILE</code>, <code>PM_API_TOKEN_ID</code> and <code>PM_API_TOKEN_SECRET</code></p>
</li>
</ol>
<h2 id="heading-deploy-lxc-with-terraform">Deploy LXC with Terraform 🏗</h2>
<p>Proxmox supports <a target="_blank" href="https://linuxcontainers.org/lxc/introduction/">LXC containers</a> and they are super resource efficient. LXC containers are sitting somewhere in the middle of Containers and full blown Virtual machines. They are quick to spin up and I decided to deploy traefik in a LXC container. There are many examples out there to explain how to deploy traefik v3.x as a docker container. However I could not find anything that clearly explains about deploying traefik v3.4 in a vm or a LXC container. Unfortunately the traefik docomentation didn’t offer much help either. In-fact the official documentation is more like a labyrinth😓 where you get lost without much hope.</p>
<p>After spending some time trying to figure out the new traefik v3.4 configurations, I stumbled upon <a target="_blank" href="https://youtu.be/C6IL8tjwC5E?si=LrcO6q61YMqEFE7F">this old video from Hussein Nasser</a>. He explains about the traefik concepts and the basic configurations without fluff 🤗. Hussein’s youtube channel is a gold mine. Check it out and you will not regret it. Using that as a start, I was able to figure out the rest of the stuff without much trouble.</p>
<p>At first I created an LXC module but decided against it at the end as it is just a single resource. Also I wanted to use <code>debian-12-standard_12.7-1_amd64.tar.zst</code> but it was taking over 30 seconds to establish ssh connections. Something weired was going on with that and after restling with it for a few hours I opted for <code>ubuntu-24.04-standard_24.04-2_amd64.tar.zst</code>. That LXC image worked like a charm at the first go.</p>
<p><a target="_blank" href="https://github.com/jayanath/home-lab/tree/main">If you are interested, the Terraform code for the LXC container deployment can be found here.</a></p>
<h2 id="heading-install-and-configure-traefik-with-ansible">Install and configure Traefik with Ansible 🧩</h2>
<p>Once the LXC container is deployed I started working on the configuration part of traefik. I wanted to use my test domain <code>jayforweb.com</code> and obtain a wildcard cert from <code>Lets Encrypt</code> for the Home Lab applications. <code>journalctl -u traefik -f</code> was my best friend when trying to get the config files in order.</p>
<p>I used <code>ansible-galaxy role init traefik</code> to generate the scafolding for Ansible bits and it worked out quite well. If you’ve noticed, I’m using AWS Route53 to manage my DNS. Therefore I had to provide AWS credentials.</p>
<h3 id="heading-few-notable-points">Few notable points ⚡</h3>
<ul>
<li><p>It is best to use <code>ansible-vault encrypt files/.aws/credentials</code> to encrypt the aws credentials.</p>
</li>
<li><p>Run the LXC container as <code>Unprivileged</code> and add grant the required capabilities. In this case traefik process requires <code>CAP_NET_BIND_SERVICE</code> capability to avoid port binding permission errors when serviving on port <code>80</code> and <code>443</code>.</p>
</li>
<li><p>Create an empty <code>acme.json</code> file with <code>0600</code> permission. This is done by the ansible playbook.</p>
</li>
<li><p>Setup <code>ssh</code> access for Ansible. I’m using <a target="_blank" href="https://developer.1password.com/docs/ssh/get-started/">1password to store my ssh keys</a>. With that 1password ssh agent intercepts the ssh key requests and prompt me for the authentication. This works really well and I think its a great way to protect the ssh keys.</p>
</li>
<li><p>Use <code>ansible-playbook site.yml -i inventory.ini --ask-vault-pass</code> to deploy the playbook. The <code>—ask-vault-pass</code> allows ansible to decrypt the credentials.</p>
</li>
</ul>
<p>Since I first installed and configured traefik manually to understand the configuration caveats the automating everything with ansible was a relatively smooth process.</p>
<p>Below is the shiny new traefik dashboard. I will setup authentication to the dashboard when I deploy Keycloak and Vault.</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1746956825609/2069dc54-4552-4a16-bc36-82759ea06239.png" alt class="image--center mx-auto" /></p>
<p><a target="_blank" href="https://github.com/jayanath/home-lab/tree/main">Check out the code for the deployment of traefik</a>. Hopefully it will be useful to you as well in case you want to deploy traefik in your own setup 👍🏻.</p>
<p>Also don’t hesitate to ping me for any questions related to the code. I’m more than happy to share my thoughts 😊.</p>
<p>See you next time with details about setting up Keycloak 👋🏻</p>
]]></content:encoded></item><item><title><![CDATA[Proxmox and CEPH Cluster]]></title><description><![CDATA[Home Lab 2.0 - Part 02]]></description><link>https://fewmorewords.com/proxmox-and-ceph-cluster</link><guid isPermaLink="true">https://fewmorewords.com/proxmox-and-ceph-cluster</guid><category><![CDATA[Homelab]]></category><category><![CDATA[Kubernetes]]></category><category><![CDATA[keycloak]]></category><category><![CDATA[Vault]]></category><category><![CDATA[Terraform]]></category><category><![CDATA[ansible]]></category><dc:creator><![CDATA[Jayanath Amaranayake]]></dc:creator><pubDate>Tue, 22 Apr 2025 13:30:03 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/upload/v1756565039979/a4bb6020-97aa-45ee-9dee-d66d3a035ac5.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Hi Again 👋😊</p>
<p>Thanks for stopping by. <a target="_blank" href="https://fewmorewords.com/series/home-lab">This is the part-02 of my Home Lab 2.0 series</a> where I share my thoughts around rebuilding the Home Lab.</p>
<p>I had some time to setup the hardware for my cluster. The newly upgraded <code>Dell Optiplex 7050</code> Microservers are now sitting on a <a target="_blank" href="https://www.kmart.com.au/product/white-wire-3-tier-shelf-43475780/">cheap Kmart kitchen shelf</a> a.k.a my server rack. Hey, its not that bad as it serves the purpose 😊. I’m not very keen to spend on a mini rack or building one at this point of time. Unfortunately there is not enough room for my NAS with this setup, so the Synology sits on the table for now.</p>
<p>So, this is how it looks like at the moment. Yeah, its not the work of art what I want it to be 🫠</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1745320793944/41b07216-969c-41b0-a992-8a199439b0b9.jpeg" alt class="image--center mx-auto" /></p>
<p>Once the logistics sorted out, I installed <a target="_blank" href="https://www.proxmox.com/en/">Proxmox 8.4.1</a> on them, which is quite straightforward in these days. I have a dedicated VLAN for my Proxmox cluster with the <code>192.168.193.0/24</code> range.</p>
<div data-node-type="callout">
<div data-node-type="callout-emoji">💡</div>
<div data-node-type="callout-text">Find a way to setup VLANs as early as possible to save yourself from limitations around security, performance and flexibility with your experimentaions. An old micro PC with dual NICs and OPNSense is a great start. I invested on a <a target="_self" href="https://shop.netgate.com/products/1100-pfsense">pfSense Plus SG-1100</a> and a <a target="_self" href="https://techspecs.ui.com/unifi/switching/usw-lite-16-poe">UniFi USW Lite 16 POE</a> switch a while back to solve this problem.</div>
</div>

<p>Once Proxmox is installed I did the followings before anything else.</p>
<ol>
<li><p><code>apt update</code> and <code>apt upgrade</code> the destro</p>
</li>
<li><p>Disable the <code>Enterprise</code> repos</p>
</li>
<li><p>Add <code>No Subscription</code> repos for both <code>Proxmox</code> and <code>CEPH</code>.</p>
</li>
<li><p>Install <code>lm-sensors</code> package to get the thermal stats.</p>
<pre><code class="lang-bash"> apt-get install lm-sensors
 modprobe drivetemp
 <span class="hljs-built_in">echo</span> drivetemp | tee -a /etc/modules
 sensors
</code></pre>
</li>
</ol>
<p>After that I joined the Proxmox nodes into a cluster and setup a CEPH cluster with the NVMe drives. There are many great tutorials on <a target="_blank" href="https://youtu.be/a7OMi3bw0pQ?si=xMPMDv8cxJflNB1f">how to setup both Proxmox and CEPH and this one was very helpful.</a> Apparently it took me more time to settle on a name for the cluster, <code>(proxmox-collective)</code> than setting it up ¯\_(ツ)_/¯.</p>
<p>Right after the cluster setup, I installed <code>Adguard</code> to implement time based service blocks for the kids VLAN. It blocks some distractions during their study times.</p>
<p>Here are some screenshots of the current clsuter state. You can see the list of the repositories as well.</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1745325784311/b022c778-b2bb-4938-a9ea-8ee6397cb721.png" alt class="image--center mx-auto" /></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1745325829009/4b0e997b-6bc1-49bc-b5e3-84211d7c0f71.png" alt class="image--center mx-auto" /></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1745325908724/6c2ebacc-c79c-4b56-8d86-b013f465f855.png" alt class="image--center mx-auto" /></p>
<p>Next I will setup <code>Traefik</code> as my reverse proxy. This can be easily deployed as an LXC container.</p>
<p>Thanks for joining me on this journey. I would love to hear your thoughts!.</p>
<p>Until next time</p>
<p>-`♡´-</p>
]]></content:encoded></item><item><title><![CDATA[Thinking Out Loud 🤔💭]]></title><description><![CDATA[Deploying Home Lab with Traefik, Keycloak, Vault, Kubernetes, Proxmox etc.]]></description><link>https://fewmorewords.com/thinking-out-loud</link><guid isPermaLink="true">https://fewmorewords.com/thinking-out-loud</guid><category><![CDATA[Homelab]]></category><category><![CDATA[Kubernetes]]></category><category><![CDATA[keycloak]]></category><category><![CDATA[Vault]]></category><category><![CDATA[Terraform]]></category><category><![CDATA[ansible]]></category><dc:creator><![CDATA[Jayanath Amaranayake]]></dc:creator><pubDate>Wed, 09 Apr 2025 13:44:13 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/upload/v1756566536276/aaf6c330-fef8-45e2-ad14-d060d0343301.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Hey there 👋</p>
<p>Welcome back, after a long time 😊. I thought its about time for me to share some thoughts.</p>
<p>First a bit of background. A friend of mine wanted a router with built in features like <a target="_blank" href="https://adguard.com/en/welcome.html">Adguard</a> and I promised him that I will build him an <a target="_blank" href="https://opnsense.org/">OPNSense</a> router. After some looking around for a suitable micro PC, I ended up buying 4 <a target="_blank" href="https://www.dell.com/support/manuals/en-au/optiplex-7050-desktop/optiplex-7050-desktop-micro-owners-manual/processor-specifications?guid=guid-8ca53ab2-a85d-42d5-9106-5214220306aa&amp;lang=en-us">Dell Optiplex 7050 Micro</a> thingys (yeah, my home lab badly needed some ❤️ ) for $80 a pop. Obviously the total cost went up a bit more as I upgraded 3 of them to the brim. Each home lab candidate micro server got 32GB RAM, 240GB SSD as the boot disk and 1TB NVMe for storage. Also to give those tired CPU’s some relief, I replaced their thermal paste with some Noctua NT-H2. Obviously, I built the OPNSense router first and soon started planing my Home Lab 2.0. This time I took the liberty to treat myself with a shiny new <a target="_blank" href="https://www.synology.com/en-us/products/DS224+">Synology DS-224+ NAS</a> with 2x4TB drives as a birthday gift ( I think that was my 2nd birthday in 2025, but who is counting 😜 ). I debated about buying a Synology vs building a TrueNAS server for a few days and settled with the DS-224+. I hope that it will give me the freedom to focus on learning things that matters the most ☸️ at the moment.</p>
<p>Below is the desired <strong>end state</strong> of my <strong>Home Lab 2.0</strong>.</p>
<p>As usual, I intend to automate 🤖 all (pos|sen)sible things as I go on.</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1744201629293/2a0d02f3-a3e9-45da-b6bc-0bf085fe888d.png" alt class="image--center mx-auto" /></p>
<p>My plan is to deploy the resources in the following order. I will try to write about each step as it comes. The code will still be with the <a target="_blank" href="https://github.com/jayanath">trusty Github</a> as I will certainly break things when poking around 😅.</p>
<h3 id="heading-order-of-deployments">Order of Deployments 🏗️</h3>
<ol>
<li><p><a target="_blank" href="https://www.proxmox.com/en/">Proxmox</a> Cluster and <a target="_blank" href="https://ceph.io/en/">CEPH</a> Cluster - Manual setup. All VMs run on Proxmox cluster use CEPH storage.</p>
</li>
<li><p>Reverse Proxy (LXC) - Thinking of using <a target="_blank" href="https://traefik.io/traefik/">Traefik</a>. This will eliminate that pesky browser warning and give me the freedom to use nice URLs. I will be using my test domain, jayforweb.com for this purpose.</p>
</li>
<li><p><a target="_blank" href="https://www.keycloak.org/">Keycloack</a> (VM) - This will be my central auth provider for SSO.</p>
</li>
<li><p><a target="_blank" href="https://developer.hashicorp.com/vault?product_intent=vault">HashiCorp Vault</a> (VM) - This is going to manage my secrets.</p>
</li>
<li><p><a target="_blank" href="https://about.gitlab.com/">GitLab</a> (VM) - Manage some code with replication to Github. Also I can use the built-in Container Registry.</p>
</li>
<li><p><a target="_blank" href="https://www.proxmox.com/en/products/proxmox-backup-server/overview">Proxmox Backup Server</a> (LXC) - Great way to backup all the Proxmox resources into NAS.</p>
</li>
<li><p>Kubernetes Cluster ( <a target="_blank" href="https://www.talos.dev/">Talos Linux</a> VMs ) - I always wanted to try out Talos and this is the time.</p>
</li>
<li><p><a target="_blank" href="https://www.synology.com/en-au/dsm/solution/kubernetes">Synology CSI Driver</a> - proper storage for the Kubernetes Apps.</p>
</li>
<li><p>Applications in the cluster.</p>
</li>
</ol>
<p>Thats about it.</p>
<p>Next, I will write a bit about the initial Proxmox cluster setup.</p>
<p>Until next time ✌!</p>
]]></content:encoded></item><item><title><![CDATA[EKS with ArgoCD using Terraform]]></title><description><![CDATA[Recently I wanted to try out a few things with EKS and ArgoCD. I ended up writing a bit of Terraform to make it easier for me to create and destroy the…]]></description><link>https://fewmorewords.com/eks-with-argocd-using-terraform</link><guid isPermaLink="true">https://fewmorewords.com/eks-with-argocd-using-terraform</guid><category><![CDATA[AWS]]></category><category><![CDATA[EKS]]></category><category><![CDATA[ArgoCD]]></category><category><![CDATA[Terraform]]></category><category><![CDATA[gitops]]></category><dc:creator><![CDATA[Jayanath Amaranayake]]></dc:creator><pubDate>Fri, 04 Nov 2022 15:52:13 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/upload/v1667577093133/1uCk0G3YX.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Recently I wanted to try out a few things with <code>EKS</code> and <code>ArgoCD</code>. I ended up writing a bit of Terraform to make it easier for me to create and destroy the infrastructure in my test AWS account.</p>
<p>The code in <a target="_blank" href="https://github.com/jayanath/k8-eks-argocd-terraform">k8-eks-argocd-terraform</a> deploys all these👇 things.</p>
<ul>
<li><p>VPC and the baseline networking</p>
</li>
<li><p>EKS cluster</p>
</li>
<li><p>AWS Load Balancer Controller</p>
</li>
<li><p>ArgoCD with Ingress</p>
</li>
<li><p>ArgoCD UI over 🔐 https with ACM cert</p>
</li>
<li><p><a target="_blank" href="https://argo-cd.readthedocs.io/en/stable/user-guide/application-set/"><strong>ArogoCD ApplicationSet</strong></a> (this is cool!)</p>
</li>
<li><p>Sample applications under ApplicationSet</p>
</li>
</ul>
<p>I used <code>Kubernetes Manifest files</code> to deploy ArgoCD. This is because the existing <a target="_blank" href="https://github.com/argoproj/argo-helm/tree/main/charts/argo-cd"><code>Helm Chart</code> for ArgoCD</a> doesn't support the new-ish <strong>ApplicationSet</strong> feature at the moment. I wanted to try this feature instead of using the good old <code>app of apps</code> workaround. I used the <code>git-dir-generator</code> and pointed it to the same repository to keep everything in one place.</p>
<p>Rather than deploying from the laptop, I wanted to use <code>Github Actions</code> to deploy the infra 🤖. Though this made things a bit complicated, it was fun to experiment with Github Actions, and <em>reusable</em> workflows. I separated the code into <code>vpc</code>, <code>eks</code> and <code>argocd</code> for me to create/destroy parts of the infrastructure when needed.</p>
<h2 id="heading-is-this-code-reusable">♻️ Is This Code Reusable?</h2>
<p>Of course 😊. I tried to keep things as generic as possible but you still need to update a few things to get this working with your AWS account.</p>
<p>☠️ <strong>WARNING!!</strong> ☠️</p>
<p><strong>This is going to cost you a little. Please make sure to tear down everything once you are done with your testing.</strong></p>
<p>Start with forking the repo <a target="_blank" href="https://github.com/jayanath/k8-eks-argocd-terraform">jayanath/k8-eks-argocd-terraform</a>. If you don't care about deploying the infra using Github Actions, just clone this repo instead.</p>
<h3 id="heading-1-click-ops-bits">1️⃣ Click-Ops bits</h3>
<p>As with any 🐔 and 🥚 problem, there are few <code>Click-Ops</code> bootstrapping bits. This is needed even if you want to deploy from your laptop.</p>
<ul>
<li><p>Create an <code>S3 bucket</code> for you to store terraform remote state. (yeah, the local state works too, but..)</p>
</li>
<li><p>Create a <code>Hosted zone</code> in <code>R53</code> with a public domain</p>
</li>
<li><p>Create an <code>ACM cert</code> issued for <code>yourdomain.com</code> and <code>*.yourdomain.com</code></p>
</li>
</ul>
<p>I just created the hosted zone and ACM using click-ops 🤷‍♂️. Those cert validations take time and I don't have my domain registered with R53. It's with Google for safekeeping 🤫.</p>
<h3 id="heading-2-github-actions-bits">2️⃣ Github Actions bits</h3>
<p>Skip these steps if you are deploying from your laptop.</p>
<details>
<summary>
Create an <code>IAM role</code> with enough permissions for Github Actions
</summary>
<img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1667564743824/d2ozDTrYs.png" alt="image.png" />
</details>

<details>
<summary>
Create a Github secret <code>AWS_CI_ROLE</code> with the IAM role ARN
</summary>
<img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1667564849001/J3CjEMM3v.png" alt="image.png" />
</details>

<details>
<summary>
Configure <code>Open ID Connect (OIDC)</code> for Github Actions in AWS. Just follow the docs in the reference section.
</summary>
<img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1667564949329/DD1iybKCj.png" alt="image.png" />
</details>

<h3 id="heading-3-findreplace-bits">3️⃣ Find/Replace bits</h3>
<p>This is to update the bucket name, domain name etc in a few places in the code before deployment.</p>
<ul>
<li><p><code>k8-eks-argo-terraform-state-jay</code> with your S3 🪣 name</p>
</li>
<li><p><code>argo.jayforweb.com</code> with <code>argo.yourdomain.com</code></p>
</li>
<li><p><code>eksadmin</code> with your AWS IAM user if you want to use <code>kubectl</code> from your laptop</p>
</li>
<li><p><code>us-west-2</code> with your region. ⚠️ Make sure to update <code>aws_image_repository</code> URL if you change the region.</p>
</li>
</ul>
<h3 id="heading-4-time-to-deploy">4️⃣ Time to Deploy</h3>
<p>I'm sure you already know this but we need to follow the order of <code>vpc</code> --&gt; <code>eks</code> --&gt; <code>argocd</code> when deploying all this. If you are doing it from your laptop, just follow the drill of <code>terraform init</code>, <code>terraform plan</code> and <code>terraform apply</code> from within <code>vpc</code>, <code>eks</code> and <code>argocd</code> folders. If you set up the Github Actions, all you have to do is to select the action and run it.</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1667562662800/ivTlSEZs2.png" alt="image.png" /></p>
<p>EKS takes about 15-20 minutes to deploy. Maybe there is a chance to fix a ☕ until the machines in the cloud do their thing 😜.</p>
<p>This is how long it took me to deploy everything.</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1667569101672/RHPlDHQ6N.png" alt="image.png" /></p>
<h3 id="heading-5-post-deployment-stuff">5️⃣ Post Deployment Stuff</h3>
<ol>
<li><p>Add an alias record with the Ingress Load Balancer URL. `AWS LoadBalancer Controller` dynamically deploy a new LB or add new ingress into the same LB based on the setup. I couldn't figure out a way to automagically add this record to the hosted zone as I had no way of knowing when would the LB gets created.</p>
</li>
<li><p>Add alias records for sample apps, nginx1, nginx2 and nginx3 and target the same ALB.</p>
<p> <img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1692533215187/c9362bbd-6e4e-4bdc-98f9-880a2d26aff4.png" alt /></p>
</li>
<li><p>Add your IAM user (`eksadmin` in my case) to the AWS configuration. Then update the `kubeconfig` to get access to your brand new EKS cluster and grab the ArgoCD default password from the `argocd-initial-admin-secret`.</p>
<ol>
<li><p>`export AWS_DEFAULT_PROFILE=eksadmin`</p>
</li>
<li><p>`aws sts get-caller-identity`</p>
</li>
<li><p>`aws eks update-kubeconfig --name eks-demo --region us-west-2 --profile eksadmin`</p>
</li>
<li><p>`kubectl get secrets -n argocd` ![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1667571895727/bxQU2HTnW.png align="left")</p>
</li>
<li><p>`kubectl get secret argocd-initial-admin-secret -n argocd --template={{.data.password}} | base64 -d`</p>
</li>
</ol>
</li>
</ol>
<h3 id="heading-6-the-end-result">6️⃣ The End Result 🎉</h3>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1667573856669/ZKL0Cw5Lu.png" alt="image.png" /></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1667572376206/JS-ERyz8W.png" alt="image.png" /></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1692533292728/4dbdbfae-9cb3-43eb-9dfa-c62a13e5da0c.png" alt class="image--center mx-auto" /></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1692533401661/3a830b2a-48c0-4007-9f41-3efda011ccfb.png" alt class="image--center mx-auto" /></p>
<p>Now you could experiment by adding/removing/updating the sample applications. Once you commit the code, ArgoCD will faithfully adjust the apps in the cluster.</p>
<h3 id="heading-tear-down">🔥 Tear Down ☠️</h3>
<p><strong>This is super important! If you leave this setup running for long time, it's going to cost you an 🦾 and a 🦿before you know it. Make sure to use</strong> <code>terraform destroy</code> or those Github Workflows to nuke everything.</p>
<details>
<summary>Sometimes, AWS fails to destroy certain resources. </summary>
<p>The underlying issue is with the ENIs. This is a very old issue with AWS. Just go ahead and delete the ENI and security groups manually.
<img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1667575769991/Du2oqMmBC.png" alt="image.png" />
<img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1667575957586/3T2ZEoXV7.png" alt="image.png" />
<img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1667576060960/3SefJ-1sp.png" alt="image.png" /></p>
</details>

<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1667576578358/AbN3tc8CU.png" alt="image.png" /></p>
<p>That's about it! If you reach this far, thank you 🙇‍♂️ for your time.</p>
<p>As always, just let me know if you got stuck, or if you have any questions. I'm more than happy to help! 😄👍.</p>
<h3 id="heading-reference">📚 Reference</h3>
<ol>
<li><p>[OIDC setup instructions for AWS](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_create_oidc.html#manage-oidc-provider-console)</p>
</li>
<li><p>[OIDC setup instructions for Github](https://docs.github.com/en/actions/deployment/security-hardening-your-deployments/configuring-openid-connect-in-amazon-web-services)</p>
</li>
<li><p>[ArgoCD ApplicationSet](https://argo-cd.readthedocs.io/en/stable/user-guide/application-set/)</p>
</li>
<li><p>[jayanath/k8-eks-argocd-terraform](https://github.com/jayanath/k8-eks-argocd-terraform)</p>
</li>
</ol>
]]></content:encoded></item><item><title><![CDATA[CKA Exam Prep Tips]]></title><description><![CDATA[CKA exam prep tips]]></description><link>https://fewmorewords.com/cka-exam-prep-tips</link><guid isPermaLink="true">https://fewmorewords.com/cka-exam-prep-tips</guid><category><![CDATA[Kubernetes]]></category><category><![CDATA[tips]]></category><category><![CDATA[k8s]]></category><dc:creator><![CDATA[Jayanath Amaranayake]]></dc:creator><pubDate>Fri, 11 Mar 2022 03:02:24 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/unsplash/cckf4TsHAuw/upload/v1647393056440/C52j50yO3.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>I passed my CKA exam about a week back and it was such a great learning experience. There are no shortcuts for this one 😊. Hard work and practice is the only way. However we can be smart in certain areas that helps us to be more efficient.</p>
<p>Having my own local cluster to play around was very useful. I had an old server that I ended up using for this purpose. I did a separate post about how to setup a 3 node cluster using Proxmox, Terraform and Ansible.</p>
<p>There are ton of other posts, videos explaining lots of useful tips. I don't think it's worth repeating the same. However below are some of the things that I ended up using during my exam.</p>
<h3 id="heading-documentation-bookmarks">Documentation Bookmarks</h3>
<p>It is best to invest some time and prepare your own set of K8 documentation bookmarks during the studies. This will be invaluable during the exam and knowing where things are is the key to efficiently find the required information within few seconds.<br />When bookmarking sub topics, make sure to hover over the topic to display the link icon at the end of the sub topic. The sub topics usually look like below.</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1724291479491/7dbf2321-1d36-4f7f-a1a2-b3ba4e76fe44.png" alt class="image--center mx-auto" /></p>
<p>When hover the mouse over a sub topic, it displays a direct link to that sub topic itself. <strong>This is what we should book mark instead of the entire page</strong>. Look for the dynamic link icon at the end of the sub topics of your choice.</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1724291512550/583b9873-a118-4dd4-8836-51ce58a6cbb1.png" alt class="image--center mx-auto" /></p>
<p>Below is my set of book marks before the exam. I knew exactly where to look for anything. So build your own! 🦾</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1650737447986/z9vPMF6-V.png" alt="image.png" /></p>
<p><a target="_blank" href="https://gist.github.com/jayanath/76b2718db71229b4b84bf1daee02d5a4">In case you need a baseline to build your own, import my bookmarks from this gist.</a></p>
<h3 id="heading-working-with-vim">Working with Vi(m)</h3>
<p>Take few minutes to update <code>~/.vimrc</code> with followings and do source <code>~/.vimrc</code> . Don't think you are wasting any time here, you will save a lot of time during the exam by doing this.</p>
<ul>
<li><p><code>set tabstop=2</code></p>
</li>
<li><p><code>set softtabstop=2</code></p>
</li>
<li><p><code>set shiftwidth=2</code></p>
</li>
<li><p><code>set expandtab</code></p>
</li>
<li><p><code>set autoindent</code></p>
</li>
<li><p><code>set smartindent</code></p>
</li>
</ul>
<p>When <code>copy + paste</code> from documentations, make sure to enable paste mode on vi using <code>:set paste</code> and hit return. Otherwise your content would look like this</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1650740292351/qDf2qaDLk.png" alt="vim-01.png" /></p>
<p>If there are tabs and other characters, you will get an error like this.</p>
<p><code>error: error parsing maptest.yaml: error converting YAML to JSON: yaml: line 9: found a tab character that violates indentation</code></p>
<p>If this happens, use <code>:set list</code> to show special characters.</p>
<p>You will see something like this.</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1650740334330/F9q8__6EP.png" alt="vim-02.png" /></p>
<p>Now use <code>:retab</code> to convert all the tabs to spaces. Make sure to save the file using <code>:x</code> ( yeah, that is a neat shortcut for <code>:wq</code> )</p>
<p>Happy learning 😊👍</p>
]]></content:encoded></item><item><title><![CDATA[Deploying K8 cluster in Proxmox]]></title><description><![CDATA[Deploy Kubernetes cluster in Proxmox using Terraform and Ansible]]></description><link>https://fewmorewords.com/deploying-k8-cluster-in-proxmox</link><guid isPermaLink="true">https://fewmorewords.com/deploying-k8-cluster-in-proxmox</guid><category><![CDATA[Kubernetes]]></category><category><![CDATA[ansible]]></category><category><![CDATA[Terraform]]></category><category><![CDATA[k8s]]></category><category><![CDATA[automation]]></category><dc:creator><![CDATA[Jayanath Amaranayake]]></dc:creator><pubDate>Sun, 16 Jan 2022 03:54:43 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/unsplash/-K6JMRMj4x4/upload/v1647402093950/LVQiMzjoK.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>I was lately tinkering with Kubernetes with the intention of getting myself some hands-on experience and eventually get certified as a <strong>CKA</strong> on the way. </p>
<p>Initially I was playing with <a target="_blank" href="https://kind.sigs.k8s.io/docs/user/quick-start/">Kind</a> and virtual machines in the laptop. Then I ended up purchasing a used <em>i7</em> with <em>32g</em> for few hundreds and deployed my clusters in <a target="_blank" href="https://proxmox.com/en/">Proxmox</a>. </p>
<p>It was all fun until I destroyed my cluster 🔥  and had to rebuilt all over again. It was too many steps and I couldn't find any end to end automation that I could use to make the new cluster creation quicker.</p>
<p>Therefore I decided to automate everything with <code>Terraform</code> and <code>Ansible</code> 🤖</p>
<p>Its nothing fancy but works end to end and creates a three node cluster within 5-6 minutes ( depending on your hardware ) 😊</p>
<p><a target="_blank" href="https://github.com/jayanath/k8-cluster-in-proxmox">The repo is here and hope it helps someone who is travelling the same path and tinkering with Kubernetes in a home lab setup</a>.</p>
<p>Until the next time! 👋</p>
]]></content:encoded></item><item><title><![CDATA[Deploy Ghost on AWS using CloudFormation - Part 06]]></title><description><![CDATA[A series of posts that explains about how to setup a self managed secure personal blog in AWS using Ghost.]]></description><link>https://fewmorewords.com/deploy-ghost-on-aws-using-cloudformation-part-06</link><guid isPermaLink="true">https://fewmorewords.com/deploy-ghost-on-aws-using-cloudformation-part-06</guid><category><![CDATA[AWS]]></category><category><![CDATA[ghost]]></category><category><![CDATA[infrastructure]]></category><category><![CDATA[Blogging]]></category><category><![CDATA[automation]]></category><dc:creator><![CDATA[Jayanath Amaranayake]]></dc:creator><pubDate>Thu, 20 May 2021 16:38:58 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/upload/v1650726450531/FVq7AJfQ6.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Finally, we are at the end of this series!!</p>
<p>It took me a while to write this last bit of our journey. I ended up updating the codebase quite a bit and I apologise if some of the screenshots are bit outdated. If you are trying to deploy your own Ghost blog with the help of these posts, please have a look at the source code first. It can be found here https://github.com/jayanath/ghost-blog-in-aws</p>
<p>At this point we have a fully functional Ghost blog and I managed to integrate self hosted <code>Commento</code> into the site. Getting the self hosted Commento was easy enough once we know how to get the templates updated with commento integration code. </p>
<p>Commento comes as a container and below is a gist of the <code>docker-compose</code> file with the <code>commento</code> and <code>postgreSQL</code> containers.</p>
<div class="gist-block embed-wrapper" data-gist-show-loading="false" data-id="43125dd558122c50e1bb4afcc27fa09c"><div class="embed-loading"><div class="loadingRow"></div><div class="loadingRow"></div></div><a href="https://gist.github.com/jayanath/43125dd558122c50e1bb4afcc27fa09c" class="embed-card">https://gist.github.com/jayanath/43125dd558122c50e1bb4afcc27fa09c</a></div><p>The environment variables for Commento can be provided in a separate <code>.env</code> file like below</p>
<div class="gist-block embed-wrapper" data-gist-show-loading="false" data-id="5b898174e67a1514d69874676897c917"><div class="embed-loading"><div class="loadingRow"></div><div class="loadingRow"></div></div><a href="https://gist.github.com/jayanath/5b898174e67a1514d69874676897c917" class="embed-card">https://gist.github.com/jayanath/5b898174e67a1514d69874676897c917</a></div><p>At this point, the entire Ghost blog with Commento can be deployed very easily by following the instructions on <a target="_blank" href="https://github.com/jayanath/ghost-blog-in-aws/blob/e339c58b8cca78c38308dd5a54a89064107982d2/README.md"><code>README.md</code> file of the repository</a>.  <strong>Once everything is working, make sure to disable new owners soon after you register yourself as the owner of the Commento platform</strong>. Also have a look at https://akismet.com/ to get some free anti-spam filtering enabled for your shiny new commenting solution.</p>
<p>Once deployed, follow Part 05 of this series to update your Ghost theme with the new self hosted Commento URL and give everything a nice restart.  The URL  information can be found here https://docs.commento.io/installation/self-hosting/embed-on-your-website/</p>
<p>Thank you for taking time to read this series and I hope it helps in some way or the other!</p>
<p>Next, I'm going to start a new series of posts about deploying a production ready Ghost installation on <code>AWS Fargate</code> using <code>Terraform</code>. This time I am planing to do a full CI/CD pipeline with <code>Git Actions</code> to deploy my infrastructure and the application.</p>
<p>Thanks again and see you soon! 👋</p>
]]></content:encoded></item><item><title><![CDATA[Deploy Ghost on AWS using CloudFormation - Part 05]]></title><description><![CDATA[A series of posts that explains about how to setup a self managed secure personal blog in AWS using Ghost.]]></description><link>https://fewmorewords.com/deploy-ghost-on-aws-using-cloudformation-part-05</link><guid isPermaLink="true">https://fewmorewords.com/deploy-ghost-on-aws-using-cloudformation-part-05</guid><category><![CDATA[AWS]]></category><category><![CDATA[ghost]]></category><category><![CDATA[infrastructure]]></category><category><![CDATA[Blogging]]></category><category><![CDATA[automation]]></category><dc:creator><![CDATA[Jayanath Amaranayake]]></dc:creator><pubDate>Sun, 29 Mar 2020 16:34:19 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/upload/v1650716374537/lRZnqQC5a.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Now we have a running Ghost on AWS!. It's alive but something is missing. We need a way to receive some feedback from our readers. Ghost does not have an out of the box solution for commenting. I don't like this part of the Ghost but.. 🤷</p>
<h3 id="heading-commenting-with-commento">Commenting with Commento</h3>
<p>I looked at many commenting options such as <a target="_blank" href="https://disqus.com/">Disqus</a>, <a target="_blank" href="https://posativ.org/isso/">Isso</a> and <a target="_blank" href="https://utteranc.es/">Utterances</a>. <code>Disqus</code> is slow, clunky and it has some privacy concerns 🤨. <code>Isso</code> and <code>Uttrerrances</code> are promising and I almost got one of those until I discovered <strong>Commento</strong>. It is open source and comes with features like <code>OAuth</code>, <code>Spam filtering</code> and <code>voting</code>. Best of all, it does not haunt the readers with some random advertisements (Disqus, cough cough). Commento comes with self hosted and SaaS variants. We will go ahead with SaaS for now to keep it simple.</p>
<p>I could find few places that explain how to integrate comments into Ghost installations on an Ubuntu server. I tried that but wanted something that works with containers. I tried to make my own Ghost docker image, tried to use Ghost containers in Ubuntu server containers etc. Finally Ghost custom themes became the ideal solution. We can customise an existing theme, deploy and test locally. Once we are happy, we can import it to our production environment. Below are the steps to follow. </p>
<h3 id="heading-changes-on-ghost-theme">Changes on Ghost theme</h3>
<ol>
<li>Setup local Ghost development environment by following the <a target="_blank" href="https://ghost.org/docs/install/local/">documentation</a>
<img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1650717628328/bVIu7sARH.png" alt="commento-1.png" /></li>
<li>Log in to production setup as admin and download existing theme
<img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1650723039117/DSJLdagkU.png" alt="commento-2.png" /></li>
<li>Unzip the downloaded theme file into <code>{Local Ghost Root}/content/themes/</code> folder</li>
<li>Get yarn installed with <code>brew install yarn</code></li>
<li>Get gulp installed with <code>brew cask install gulp</code></li>
<li>Add gulp to yarn with <code>yarn global add gulp-cli</code></li>
<li>Make sure you have the local ghost up and running with <code>ghost start</code></li>
<li>Update <code>post.hbs</code> as shown below to integrate with <code>commento</code>
<img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1650723241722/Fjmm9mXc4.png" alt="commento-3.png" /></li>
<li>Build files locally with <code>gulp</code> and verify the changes. The zip file is saved in the <code>dist</code> folder
<img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1650723337370/bt733ymM6.png" alt="commento-4.png" /></li>
<li>Run compatibility test against our version of Ghost with <code>yarn test</code>
<img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1650723398853/eDZoXSJrn.png" alt="commento-5.png" />
📌 <em>As per the ghost doc we can safely ignore the warnings</em></li>
<li>Import the zip file into production
<img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1650723708886/9SRFh3PwG.png" alt="commento-6.png" /></li>
</ol>
<h3 id="heading-changes-on-commento">Changes on Commento</h3>
<p>This is the easiest step. Just go to <a target="_blank" href="https://commento.io/">https://commento.io/</a>. Create an account and register the domain. That's it!</p>
<div class="hn-table">
<table>
<thead>
<tr>
<td><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1650724128030/FeiCl9xj9.png" alt="commento-7.png" /></td></tr>
</thead>
<tbody>
<tr>
<td><em>Comments with OAuth</em></td></tr>
</tbody>
</table>
</div><p>Commento SaaS version is very easy to integrate but there is a catch. We can't export any comments. So we have to get the self hosted option up and running, sooner than later.</p>
<p>Until next time! 👋</p>
]]></content:encoded></item><item><title><![CDATA[Deploy Ghost on AWS using CloudFormation - Part 04]]></title><description><![CDATA[A series of posts that explains about how to setup a self managed secure personal blog in AWS using Ghost.]]></description><link>https://fewmorewords.com/deploy-ghost-on-aws-using-cloudformation-part-04</link><guid isPermaLink="true">https://fewmorewords.com/deploy-ghost-on-aws-using-cloudformation-part-04</guid><category><![CDATA[AWS]]></category><category><![CDATA[ghost]]></category><category><![CDATA[infrastructure]]></category><category><![CDATA[Blogging]]></category><category><![CDATA[automation]]></category><dc:creator><![CDATA[Jayanath Amaranayake]]></dc:creator><pubDate>Sun, 15 Mar 2020 16:23:32 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/upload/v1650713267737/F9E7-Zo6-.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>🚨 Check out the <a target="_blank" href="https://github.com/jayanath/ghost-blog-in-aws">latest source code</a> if you are following along. I wouldn't trust the screenshots that much as they are bit outdated with latest updates to the code 😅🙏🏻</p>
<p>In the part 03 of this series we got the basic infrastructure ready. Now we can continue to build our Ghost host server on that. Before anything, its best to setup <code>AWS-CLI</code> to use <code>Systems Manager (SSM)</code> so that we can connect to the Ghost host without leaving the terminal. Following the <a target="_blank" href="https://docs.aws.amazon.com/systems-manager/latest/userguide/session-manager-working-with-install-plugin.html">AWS documentation</a> gets us setup in few minutes. </p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1650714380589/fEOuwFoPf.png" alt="ssm-session.png" /></p>
<p>Also we need to have a real domain name for test secure site setup etc. I always use jayforweb.com as my test domain and I use google domains as my domain registrar.</p>
<p>Now we have to setup the followings in our Ghost host.</p>
<ul>
<li>Docker</li>
<li>Docker-compose</li>
<li>Traefik container</li>
<li>Ghost container</li>
<li>Route53 hosted zone</li>
<li>Route53 record set</li>
</ul>
<p>CloudFormation made this easy by providing us some helper scripts. We use <code>cfn-init:file</code> to create configuration files and copy they to the appropriate places. Also we use <code>cfn-init:commands</code> to install and setup <code>Docker</code> and <code>Docker-compose</code>. Also we need to add Route53 hosted zone and the record set with our domain name.</p>
<p><a target="_blank" href="https://gist.github.com/jayanath/6db76af72832f2f93e6cfbf3cd76812b">The <code>ghost-host-setup.cfn</code> template</a> contains all these changes. Have a quick look 👀 if needed.</p>
<p>We need to add an alias record as <code>www.jayforweb.com</code> to point to <code>jayforweb.com</code>. I tried to create a record set for that but didn't work. So we will revisit that later.Now its time run our CloudFormation to see what it creates! [yeah, just delete the old stack to start fresh]</p>
<p><code>make create-blog-host-stack STACK_NAME=ghost-host-1</code></p>
<p>It's always handy to know where to look for any errors. On our Ghost host, we can find all the logs under <code>/var/log</code></p>
<div class="hn-table">
<table>
<thead>
<tr>
<td><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1650715378313/x3pdCcoZa.png" alt="ghost-logs.png" /></td></tr>
</thead>
<tbody>
<tr>
<td><em>Log files under /var/log on Ghost host</em></td></tr>
</tbody>
</table>
</div><p><code>cfn-init-cmd.log</code> file is what we should look first. After the deployment our log shows happy faces.</p>
<div class="hn-table">
<table>
<thead>
<tr>
<td><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1650715491242/iJJvJcD8a.png" alt="ghost-logs-2.png" /></td></tr>
</thead>
<tbody>
<tr>
<td><em>Check all the commands for any errors</em></td></tr>
</tbody>
</table>
</div><p>Now we can verify whether our configuration files are in place at <code>/data/traefik</code>. Obviously they should be as we had no errors at all.</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1650715591069/8O8OQP_xS.png" alt="ghost-logs-3.png" /></p>
<p>The site is up, with one small problem 😬. We have to tweak the <code>acme.json</code> file to get the <code>LetsEncryption</code> working properly. I remember got it working after few tries last time with my site, <code>fewmorewords.com</code> but I don't remember how I did it 🙃. I will update this post when I work it out.  But this is awesome as we got everything as code, no click-ops at all.</p>
<div class="hn-table">
<table>
<thead>
<tr>
<td><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1650715839870/akhXlRR64.png" alt="ghost-live-again.png" /></td></tr>
</thead>
<tbody>
<tr>
<td><em>YEY!! we got it working!</em></td></tr>
</tbody>
</table>
</div><p>We can start up, shut down the site very easily with <code>docker-compose</code> via <code>SSM</code>. We have to make sure to use <code>sudo</code>. Also we should run <code>docker-compose</code> in <code>detached mode [-d flag]</code> when we start up the stack. Have a look at the commands in the below screenshot.</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1650715962803/QbH6l2gsx.png" alt="docker-compose-up.png" /></p>
<p>Thats it for now and hanks for staying with me so far. As always the <a target="_blank" href="https://github.com/jayanath/ghost-blog-in-aws">full code is on github</a> if you want to try this out by yourself.</p>
<p>Cheers 🍻 until next time! </p>
]]></content:encoded></item><item><title><![CDATA[Deploy Ghost on AWS using CloudFormation - Part 03]]></title><description><![CDATA[A series of posts that explains about how to setup a self managed secure personal blog in AWS using Ghost.]]></description><link>https://fewmorewords.com/deploy-ghost-on-aws-using-cloudformation-part-03</link><guid isPermaLink="true">https://fewmorewords.com/deploy-ghost-on-aws-using-cloudformation-part-03</guid><category><![CDATA[AWS]]></category><category><![CDATA[ghost]]></category><category><![CDATA[infrastructure]]></category><category><![CDATA[Blogging]]></category><category><![CDATA[automation]]></category><dc:creator><![CDATA[Jayanath Amaranayake]]></dc:creator><pubDate>Mon, 17 Feb 2020 16:12:10 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/upload/v1650705767992/R5s608zrF.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>📌 Have a look at the full source code at https://github.com/jayanath/ghost-blog-in-aws 😊</p>
<p>In the Part 02 of this series, we setup <code>AWS CLI</code> and tested that we can access AWS resources using command line. Now we can use <strong>CloudFormation</strong> to provision our infrastructure.</p>
<p>A new AWS account comes with some default networking components such as, a <code>VPC</code>, a <code>Route table</code>, a <code>NACL</code>, an <code>Internet Gateway</code> and 3 <code>Subnets</code>. However it is best to leave these default components to themselves and provision our own infrastructure from the scratch.</p>
<p>We will have 2 CloudFormation templates, one for the inception of networking and other bits and pieces and another one to deploy the host EC2 and its related components. I tweak this code whenever I get a chance, so please check the <a target="_blank" href="https://github.com/jayanath/ghost-blog-in-aws">Github repository</a> for the latest code.</p>
<h3 id="heading-inception-template">Inception Template</h3>
<p>In this template we export <code>Security Group</code>, <code>Subnet ID</code>s and <code>R53 Hosted Zone ID</code> from the stack so that we can use them for the host configuration using CloudFormation <code>Fn::ImportValue</code> function.</p>
<div class="gist-block embed-wrapper" data-gist-show-loading="false" data-id="f2380e74ba006b142361f1182961a1e3"><div class="embed-loading"><div class="loadingRow"></div><div class="loadingRow"></div></div><a href="https://gist.github.com/jayanath/f2380e74ba006b142361f1182961a1e3" class="embed-card">https://gist.github.com/jayanath/f2380e74ba006b142361f1182961a1e3</a></div><p>I use a <code>Makefile</code> with few tasks so that it's easier for us to execute <code>AWS CLI</code> commands with ease. The current Makefile looks like this.</p>
<div class="gist-block embed-wrapper" data-gist-show-loading="false" data-id="a137e734eebc96bb6668afce79ef58e7"><div class="embed-loading"><div class="loadingRow"></div><div class="loadingRow"></div></div><a href="https://gist.github.com/jayanath/a137e734eebc96bb6668afce79ef58e7" class="embed-card">https://gist.github.com/jayanath/a137e734eebc96bb6668afce79ef58e7</a></div><p>Now it's time to test it out. With <code>make</code> all we have to do now is to call <code>make create-inception-stack STACK_NAME=mystack</code></p>
<div class="hn-table">
<table>
<thead>
<tr>
<td><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1650711542996/J1wL0OYyg.jpeg" alt="ghost-inception-cli.jpeg" /></td></tr>
</thead>
<tbody>
<tr>
<td><em>Using make target to create the inception stack</em></td></tr>
</tbody>
</table>
</div><p>We can check the AWS console to see how it goes on that end.</p>
<div class="hn-table">
<table>
<thead>
<tr>
<td><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1650711819030/fiCXciGWl.jpeg" alt="ghost-inception-console.jpeg" /></td></tr>
</thead>
<tbody>
<tr>
<td><em>ghost-inception-test-1 stack</em></td></tr>
</tbody>
</table>
</div><p>This is great 🎉. Now we have the basic setup in place for us to deploy the Ghost host EC2.</p>
<h3 id="heading-ghost-blog-setup-template">Ghost Blog Setup Template</h3>
<p>In this template we are using the <code>CloudFormation export values</code> from the previous stack deployment. The <em>Security Group</em> and the <em>Subnet ID</em> values are imported using <code>Fn::ImportValue</code> function. </p>
<p>⚠️ One thing to keep in mind is that the CloudFormation Export values should be unique for the account. We can follow <code>ExportNamePrefix-ExportName-InstallationNumber</code> pattern to keep everything in order.</p>
<div class="gist-block embed-wrapper" data-gist-show-loading="false" data-id="6db76af72832f2f93e6cfbf3cd76812b"><div class="embed-loading"><div class="loadingRow"></div><div class="loadingRow"></div></div><a href="https://gist.github.com/jayanath/6db76af72832f2f93e6cfbf3cd76812b" class="embed-card">https://gist.github.com/jayanath/6db76af72832f2f93e6cfbf3cd76812b</a></div><p>Since we already deployed the <code>inception stack</code> we can now go ahead and deploy the <code>ghost-blog-setup</code> template.</p>
<p>This time the command should be <code>make create-blog-host-stack STACK_NAME=ghost-blog-test-1</code></p>
<div class="hn-table">
<table>
<thead>
<tr>
<td><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1650712378988/4mfdbpWXk.jpeg" alt="ghost-blog-setup-cli.jpeg" /></td></tr>
</thead>
<tbody>
<tr>
<td><em>Using make target to create blog-host stack</em></td></tr>
</tbody>
</table>
</div><p>No errors is a good news. From the console, we can check if everything is in place as expected.</p>
<div class="hn-table">
<table>
<thead>
<tr>
<td><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1650712463380/gNYMgTikx.jpeg" alt="ghost-blog-setup-console.jpeg" /></td></tr>
</thead>
<tbody>
<tr>
<td><em>CloudFormation console with two stacks</em></td></tr>
</tbody>
</table>
</div><p>Both stacks are in CREATE_COMPLETE state. We can test few more things. SSM is a must to maintain our instance. We will setup SSM from CLI at some point. For now, we can verify if we can get to our EC2 using SSM.</p>
<p>Go to AWS Systems Manager console and click on Managed Instances menu item from the left panel. You should see our new EC2 instance is listed there.</p>
<div class="hn-table">
<table>
<thead>
<tr>
<td><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1650712545585/TvjPqSba0.jpeg" alt="ghost-blog-host-ssm.jpeg" /></td></tr>
</thead>
<tbody>
<tr>
<td><em>New Ghost EC2 is managed by AWS Systems Manager</em></td></tr>
</tbody>
</table>
</div><p>The beauty of CloudFormation shines when we want to delete our resources. If we did Click-Ops (create resources using the AWS console) then it will be a nightmare to keep track of all the resources and delete them one by one, like doing a treasure hunt 🏴‍☠️. With CloudFormation, all we have to do is just delete the stack!</p>
<p>Once we have everything is in place, the project looks like below in the VSCode.</p>
<div class="hn-table">
<table>
<thead>
<tr>
<td><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1650712716368/fJL0u_YNW.jpeg" alt="ghost-blog-project.jpeg" /></td></tr>
</thead>
<tbody>
<tr>
<td><em>Ghost Blog project in VSCode</em></td></tr>
</tbody>
</table>
</div><p>In case you want to try out the entire stack, have a look at my <a target="_blank" href="https://github.com/jayanath/ghost-blog-in-aws">Github</a> repository.</p>
<p>In the next part of this effort, let's update our Ghost host and configure Docker and other bits so that we can have a live blog running.</p>
<p>See you again! 👋</p>
]]></content:encoded></item><item><title><![CDATA[Deploy Ghost on AWS using CloudFormation - Part 02]]></title><description><![CDATA[A series of posts that explains about how to setup a self managed secure personal blog in AWS using Ghost.]]></description><link>https://fewmorewords.com/deploy-ghost-on-aws-using-cloudformation-part-02</link><guid isPermaLink="true">https://fewmorewords.com/deploy-ghost-on-aws-using-cloudformation-part-02</guid><category><![CDATA[AWS]]></category><category><![CDATA[ghost]]></category><category><![CDATA[infrastructure]]></category><category><![CDATA[Blogging]]></category><category><![CDATA[automation]]></category><dc:creator><![CDATA[Jayanath Amaranayake]]></dc:creator><pubDate>Fri, 17 Jan 2020 15:22:15 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/upload/v1650700899129/CGgGHdpwg.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>This post is the second part of the Ghost on AWS series. At this point we have to setup AWS CLI and test it out. The installation process is very straight forward and <a target="_blank" href="https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-configure.html#cli-quick-configuration">AWS explains</a> how to configure it in different operating systems. Below is how I ended up doing it on <a target="_blank" href="https://manjaro.org/">Manjaro Linux</a>.</p>
<p>I'm using YAY as my package manager. It's a wrapper for pacman, the default package manager for Manjaro with bit more features.</p>
<p>Using <code>yay aws-cli</code> brings in all the available versions and just make sure that we pick the version from the community repo.</p>
<div class="hn-table">
<table>
<thead>
<tr>
<td><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1650695267842/BZAMWhHQp.jpeg" alt="aws-cli-yay2.jpeg" /></td></tr>
</thead>
<tbody>
<tr>
<td><em>Installing aws-cli using yay on Manjaro</em></td></tr>
</tbody>
</table>
</div><p>Once <code>aws-cli</code> installation is done, we have to log into AWS console and create <strong>AWS Access Key ID</strong> and <strong>AWS Secret Access Key</strong> for the user that we intend to use with aws-cli.</p>
<p>On the AWS console, go to IAM[1] --&gt; Users[2] and click on the user[3]. Then click on the Security credentials[4] and click on the Create access key[5] to generate the keys.</p>
<div class="hn-table">
<table>
<thead>
<tr>
<td><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1650695505495/Nku9VEa-M.jpeg" alt="aws-secret-key.jpeg" /></td></tr>
</thead>
<tbody>
<tr>
<td><em>Generating AWS Access Key ID and AWS Secret Access Key</em></td></tr>
</tbody>
</table>
</div><p>This gives us a pop up with the keys. It's always a good idea to download the CSV file.</p>
<div class="hn-table">
<table>
<thead>
<tr>
<td><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1650696055401/2mjTxlCcu.png" alt="aws-secret-key-2.png" /></td></tr>
</thead>
<tbody>
<tr>
<td><em>AWS Secret Keys</em></td></tr>
</tbody>
</table>
</div><p>Now we are ready to configure the <code>AWS-CLI</code> with a new profile. On the command line, use <code>aws configure --profile blog-admin</code> to create a new profile using the generated keys. If you don't specify <code>--profile</code>, it will create a <em>default</em> profile for us. However it's a good idea to have a named profile as we may have few profiles for different tasks.</p>
<div class="hn-table">
<table>
<thead>
<tr>
<td><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1650696219799/GVTRxo6TH.png" alt="aws-cli-config.png" /></td></tr>
</thead>
<tbody>
<tr>
<td><em>Configure blog-admin profile</em></td></tr>
</tbody>
</table>
</div><p>Finally we can test if our profile can connect to AWS.</p>
<div class="hn-table">
<table>
<thead>
<tr>
<td><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1650700678943/xHGrmO-Of.png" alt="aws-cli-config-2-1.png" /></td></tr>
</thead>
<tbody>
<tr>
<td><em>Successful test with AWS-CLI</em></td></tr>
</tbody>
</table>
</div><p>If you can execute a simple command through <code>aws-cli</code> without any errors like mine, we are all good to go with the next steps. In case you got any errors, check out the <a target="_blank" href="AWS documentation">AWS documentation</a> for troubleshooting tips based on your OS.</p>
<p>That's it for today. Thanks for your time! 👋</p>
]]></content:encoded></item><item><title><![CDATA[Deploy Ghost on AWS using CloudFormation - Part 01]]></title><description><![CDATA[A series of posts that explains about how to setup a self managed secure personal blog in AWS using Ghost.]]></description><link>https://fewmorewords.com/deploy-ghost-on-aws-using-cloudformation-part-01</link><guid isPermaLink="true">https://fewmorewords.com/deploy-ghost-on-aws-using-cloudformation-part-01</guid><category><![CDATA[AWS]]></category><category><![CDATA[ghost]]></category><category><![CDATA[infrastructure]]></category><category><![CDATA[Blogging]]></category><category><![CDATA[automation]]></category><dc:creator><![CDATA[Jayanath Amaranayake]]></dc:creator><pubDate>Mon, 13 Jan 2020 15:13:09 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/upload/v1650701269823/9uArBm3Aw.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>It's being a while after I deployed a self managed blog in AWS as a side project. At that time, everything was created as Click-Ops through the AWS console but then I decided to deploy the entire solution using CloudFormation. </p>
<p>Check out the github repository for the most up to date source code for this project at https://github.com/jayanath/ghost-blog-in-aws</p>
<p>Below diagram represents the current architecture.</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1648454597622/1DfAgYPah.png" alt="Screen Shot 2022-03-28 at 6.59.25 pm.png" /></p>
<h3 id="heading-current-setup">Current setup</h3>
<p>The current setup is a very simple design and it is not highly available and/or fault tolerant at all. However this setup is good enough for my purpose for now. I have one VPC in the Sydney region with a single Subnet in one of the availability zones. This subnet has a NACL and a Route table attached to it and a single EC2 is deployed as the host for the containers. The EC2 instance has a Security group attached to its network interface. I'm using a third party DNS registrar and Route53 has an A record to map my Public IP that I have attached to the EC2 instance. The EC2 runs Ghost, Traefik, Commento with PostgreSQL and its orchestrated using Docker compose. Ghost is the blogging engine and Traefik works as a reverse proxy. Commento provides the commenting platform for the site. The site runs on HTTPS and Traefik handles all the encryption magic with LetsEncrypt. I'm using SSM to manage the EC2 instead of using SSH (yeh, no keys!) . Last but not least I am backing up my contents to an S3 bucket using a shell script.</p>
<h3 id="heading-the-plan">The plan</h3>
<p>My plan is to write up few posts explaining everything involved in setting up the blog. There are enough resources out there to explain how to setup AWS account and AWS CLI. I will skip all that except few tips around how to setup AWS CLI on Manjaro Linux.</p>
<p>Below are most likely to be the main areas.</p>
<ul>
<li>Setup AWS CLI and try out deploying test CloudFormation templates on Manjaro Linux</li>
<li>Incrementally build/test the CloudFormation template for the stack</li>
<li>Setup DNS - need to have another domain for me to play around</li>
<li>Configure Traefik and LetsEncrypt to have a secured site</li>
<li>Automate backups using SSM</li>
<li>Setup a Lambda to replicate the backups to another AWS account - will explain why I need this</li>
</ul>
<p>Until next time 👋</p>
]]></content:encoded></item></channel></rss>