Console Login

#Security

All articles tagged with Security

#Security

Make Trivy fail the build instead of just printing findings

Trivy exits 0 even with CRITICAL findings. I built it from source and made it a real CI gate, then found a secret-scan skip that a green result can hide.

Edge MQTT Node on a Norwegian VPS: K3s, WireGuard, Kernel Tuning

How to set up a single-node edge MQTT aggregator with K3s and WireGuard, and how to fix the faulty flags, units and sysctls that edge guides often repeat.

Kubernetes Pod DNS Fails After an Egress NetworkPolicy: Fix

Pods lose DNS after an egress NetworkPolicy is applied. This article covers the wrong namespace label, the missing TCP port 53 rule and a tested-in-theory fix.

GitOps with Argo CD and Kustomize: Ending Manual kubectl Changes

How to replace hand-run kubectl apply with a pull-based GitOps flow: Argo CD, Kustomize overlays, Sealed Secrets and a CI job that only edits an image tag.

Hybrid cloud and a local database: WireGuard link, latency and GDPR

How to link a hyperscaler workload to a database on a Norwegian VPS with WireGuard, what the tunnel does not fix, and the common mistakes in such setups.

Compliance as Code: CIS Hardening, OpenSCAP Gates and Policy Checks

Enforce CIS network sysctl baselines with Ansible, gate deployments on OpenSCAP results, and reject Ingress objects without TLS using an OPA admission policy.

Hardening Docker and Kubernetes Containers After Log4Shell (2022)

Run containers as non-root, with a read-only filesystem, dropped capabilities and a default-deny NetworkPolicy, so one compromised app has little to work with.

Zero Trust for Linux Servers: WireGuard, mTLS and Hardened SSH

Replace trust-by-network-location with encrypted, authenticated links: WireGuard between nodes, nginx client certificates and hardened SSH with a second factor.

Postfix on CentOS 6: Mail Delivery with PTR, SPF and DKIM

A reference setup for Postfix on CentOS 6 (2012): fix mail rejected or sent to spam with matching DNS, restricted SMTP, TLS submission with SASL, SPF and DKIM.

OpenVPN 2.2 gateway on CentOS 6: PKI, NAT and firewall fixes

Build an OpenVPN 2.2 gateway on CentOS 6 with a private CA, and fix the usual failures: missing TUN device, no forwarding or NAT, and iptables rule order.

Private Git Hosting with Gitolite on CentOS 6

How to run a private, key-only Git server with Gitolite 2.x on CentOS 6, with access rules kept in a Git repository. Covers latency, I/O, and backups.

Linux Server Hardening: SSH, iptables and sysctl Baseline (2010)

A 2010-era baseline for CentOS 5 and Ubuntu 10.04: key-only SSH, a default-drop iptables policy, sysctl network settings and fewer listening services.

Replacing FTP with chrooted SFTP on CentOS 5 using OpenSSH

Why plain FTP exposes credentials, and how to lock users into a directory with OpenSSH ChrootDirectory and internal-sftp on CentOS 5.