<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/why-the-german-government-emailed-me-about-my-kamal-deployment-s3dzdmghv" -->

---
title: Why the German Government Emailed Me About My Kamal...
description: A developer received an abuse report from Hetzner (forwarded from Germany&#x27;s BSI) because their PostgreSQL database was publicly exposed despite having a...
canonical: https://daily.dev/posts/why-the-german-government-emailed-me-about-my-kamal-deployment-s3dzdmghv
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Why the German Government Emailed Me About My Kamal Deployment | daily.dev
og:description: A developer received an abuse report from Hetzner (forwarded from Germany&#x27;s BSI) because their PostgreSQL database was publicly exposed despite having a...
og:url: https://daily.dev/posts/why-the-german-government-emailed-me-about-my-kamal-deployment-s3dzdmghv
og:image: https://api.daily.dev/og/posts/S3DZdmgHv.png
og:image:alt: Why the German Government Emailed Me About My Kamal Deployment
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Why the German Government Emailed Me About My Kamal Deployment

**[Ruby Flow](https://daily.dev/sources/rubyflow)** · 5 min read · 1 upvotes · 0 comments

## Summary

A developer received an abuse report from Hetzner (forwarded from Germany's BSI) because their PostgreSQL database was publicly exposed despite having a firewall configured. The root cause: Docker's default port binding to 0.0.0.0 bypasses UFW firewall rules via iptables NAT chains. The fix is explicitly binding to 127.0.0.1 in Kamal's deploy.yml (e.g., '127.0.0.1:5432:5432'). The post also covers a secondary issue with Kamal 2.x secrets evaluation, where .env sourcing from Kamal 1.x no longer works, and provides an awk-based workaround to extract secrets without extra dependencies.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://syedaslam.com/posts/why-the-german-government-emailed-me-about-my-kamal-deployment/>

## Similar posts on daily.dev

- [My PostgreSQL database got nuked lol](https://daily.dev/posts/my-postgresql-database-got-nuked-lol-4uecfbpj6) · Lobsters · 0 upvotes · 0 comments
- [Deploying Rails 8 with Kamal on a Single Server](https://daily.dev/posts/deploying-rails-8-with-kamal-on-a-single-server-a3gwyzjhn) · Ruby Flow · 1 upvotes · 0 comments
- [Docker bypasses your firewall silently, and most home labs don't realize it](https://daily.dev/posts/docker-bypasses-your-firewall-silently-and-most-home-labs-don-t-realize-it-spygdglss) · XDA Developers · 2 upvotes · 0 comments

---

Tags: [#docker](https://daily.dev/tags/docker), [#kamal](https://daily.dev/tags/kamal), [#postgresql](https://daily.dev/tags/postgresql), [#security](https://daily.dev/tags/security)

[View this post on daily.dev](https://daily.dev/posts/why-the-german-government-emailed-me-about-my-kamal-deployment-s3dzdmghv)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Why the German Government Emailed Me About My Kamal Deployment","url":"https://daily.dev/posts/why-the-german-government-emailed-me-about-my-kamal-deployment-s3dzdmghv","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/why-the-german-government-emailed-me-about-my-kamal-deployment-s3dzdmghv"},"datePublished":"2026-03-08T20:36:37.244Z","dateModified":"2026-04-23T02:15:03.513Z","description":"A developer received an abuse report from Hetzner (forwarded from Germany's BSI) because their PostgreSQL database was publicly exposed despite having a...","image":"https://media.daily.dev/image/upload/s--VDukGCjf--/f_auto/v1722860399/public/Placeholder%2002","thumbnailUrl":"https://media.daily.dev/image/upload/s--VDukGCjf--/f_auto/v1722860399/public/Placeholder%2002","isAccessibleForFree":true,"articleSection":"Ruby Flow","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Ruby Flow","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/a21aaa8bcbbf448193a016895c90a0e1","url":"https://daily.dev/sources/rubyflow"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/why-the-german-government-emailed-me-about-my-kamal-deployment-s3dzdmghv","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"docker,kamal,postgresql,security","timeRequired":"PT5M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Ruby Flow","item":"https://daily.dev/sources/rubyflow"},{"@type":"ListItem","position":3,"name":"Why the German Government Emailed Me About My Kamal Deployment"}]}
```

