<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Unwichtig on bruck.me</title><link>https://bruck.me/category/unwichtig/</link><description>Recent content in Unwichtig on bruck.me</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Sun, 18 Apr 2021 17:41:56 +0000</lastBuildDate><atom:link href="https://bruck.me/category/unwichtig/index.xml" rel="self" type="application/rss+xml"/><item><title>Pinning SSL Certs with cURL from PHP</title><link>https://bruck.me/2021/04/18/pinning-ssl-certs-with-curl-from-php/</link><pubDate>Sun, 18 Apr 2021 17:41:56 +0000</pubDate><guid>https://bruck.me/2021/04/18/pinning-ssl-certs-with-curl-from-php/</guid><description>&lt;p class="wp-block-paragraph"&gt;
I wanted to do some REST client stuff in PHP with cURL today. It has the neat &lt;em&gt;&lt;a href="https://curl.se/libcurl/c/CURLOPT_PINNEDPUBLICKEY.html#PUBLIC"&gt;CURLOPT_PINNEDPUBLICKEY&lt;/a&gt;&lt;/em&gt; option that one can use to set the certificate fingerprint. &lt;a href="https://stackoverflow.com/a/39561602"&gt;Unfortunately its a bit cumbersome&lt;/a&gt;, as one needs to enter the fingerprint in base64, instead of just the format the browser displays if you look at the cert directly (e.g.: 529728d7c43746c0bb02ac4a4c3bffb7028ac1591ecb08b6a0721a660aa1d3ce).
&lt;/p&gt;
&lt;p class="wp-block-paragraph"&gt;
Luckily we can just get the correct fingerprint format using this one command:
&lt;/p&gt;</description></item><item><title>Why software matters</title><link>https://bruck.me/2020/06/21/why-software-matters/</link><pubDate>Sun, 21 Jun 2020 15:31:20 +0000</pubDate><guid>https://bruck.me/2020/06/21/why-software-matters/</guid><description>&lt;p class="wp-block-paragraph"&gt;
Years ago I worked at a consulting company writing software for a German car manufacturer. This project was a multi-year endeavor and had all the bits and pieces in place to become the next generation legacy software that nobody wants to touch. We are talking about a multi-million investment and a 50 person team of engineers, business analysts, architects and managers.
&lt;/p&gt;
&lt;p class="wp-block-paragraph"&gt;
We were essentially building a Java EE monolith with a Javascript-backed frontend. Back then, in 2017, Kubernetes was starting to emerge as an interesting option and we experimented around with deployments, but it didn’t affect the architecture decisions too much. We continued to build a humongous monolith and the project was only set to go live after the core functionality had been built.
&lt;/p&gt;</description></item><item><title>The simplest CI setup ever</title><link>https://bruck.me/2020/05/01/the-simplest-ci-cd-setup-ever/</link><pubDate>Fri, 01 May 2020 23:25:44 +0000</pubDate><guid>https://bruck.me/2020/05/01/the-simplest-ci-cd-setup-ever/</guid><description>&lt;p class="wp-block-paragraph"&gt;
This weekend I started to go back and look at a few projects of mine. A few years ago I setup most of those using a mix of Travis CI for building/testing, docker hub for image building/hosting and then somehow wiring this all together with a custom stack. Today this feels outdated and overly complex. As an &lt;a href="https://landing.google.com/sre/workbook/chapters/simplicity/"&gt;SRE I&amp;#8217;m allergic to complexity&lt;/a&gt;. So I spent a few hours checking out the new Github &lt;a href="https://github.com/features/packages"&gt;packages&lt;/a&gt; and &lt;a href="https://github.com/features/actions"&gt;actions&lt;/a&gt;.
&lt;/p&gt;</description></item><item><title>Kubernetes: proxy requests without additional pods</title><link>https://bruck.me/2018/10/04/kubernetes-proxy-requests-without-additional-pods/</link><pubDate>Thu, 04 Oct 2018 13:12:10 +0000</pubDate><guid>https://bruck.me/2018/10/04/kubernetes-proxy-requests-without-additional-pods/</guid><description>&lt;p class="wp-block-paragraph"&gt;
Sometimes you need to provide a legacy access to various downloads or proxy some requests to a different endpoint, that might not be running in your cluster. One can natively redirect such requests with having to add additional deployments / containers to your Kubernetes cluster.
&lt;/p&gt;
&lt;p class="wp-block-paragraph"&gt;
There is a special type of Kubernete&amp;#8217;s service object that simply points any traffic to that external DNS name. This &lt;a href="https://github.com/kubernetes/website/issues/5822"&gt;isn&amp;#8217;t really document&lt;/a&gt; all too well but eventually you will find enough issues and pointers to frankenstein a solution together. For anybody else looking on how to do this correctly, here is run down with nginx-ingress-controller:0.19.0 that worked for me.
&lt;/p&gt;</description></item><item><title>The road to Kubernetes: hosting your own cluster on VMs</title><link>https://bruck.me/2018/04/06/the-road-to-kubernetes/</link><pubDate>Fri, 06 Apr 2018 22:45:00 +0000</pubDate><guid>https://bruck.me/2018/04/06/the-road-to-kubernetes/</guid><description>&lt;p&gt;I finally wanted to setup my own &lt;a href="https://kubernetes.io"&gt;kubernetes cluster&lt;/a&gt; as everyone I talk to, said its the hottest shit.&lt;/p&gt;
&lt;p&gt;I’m using three VMs, hosted at &lt;a href="https://netcup.de"&gt;Netcup&lt;/a&gt; running the latest Debian 9 Stretch build. I’ve installed most basic tools for me and also already set up docker using this amazing &lt;a href="https://github.com/nickjj/ansible-docker"&gt;ansible role&lt;/a&gt;. &lt;strong&gt;Make sure to disable any swap you have configured – kubelet will not start otherwise.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The &lt;a href="https://kubernetes.io/docs/setup/independent/install-kubeadm/"&gt;documentation&lt;/a&gt; on how to install things is pretty good, but I’ve missed some details, that I banged my head on, so I will copy most snippets over for future reference. Keep in mind, that this might have already changed and is no longer working at the time you read this.&lt;/p&gt;</description></item><item><title>Featured on Codementor – 25 PHP Interview Questions</title><link>https://bruck.me/2016/03/01/featured-on-codementor-25-php-interview-questions/</link><pubDate>Tue, 01 Mar 2016 04:33:43 +0000</pubDate><guid>https://bruck.me/2016/03/01/featured-on-codementor-25-php-interview-questions/</guid><description>&lt;p&gt;I’m glad to be part of the amazing community at &lt;a href="http://codementor.io"&gt;codementor.io&lt;/a&gt;. In the past years I’ve been able to talk and help many different people with a range of problems. Often some hints and good advice was enough to point them in the right direction and I really enjoy teaching other people.&lt;/p&gt;
&lt;p&gt;Codementor recently approached me and asked me if I could contribute some questions from my experience in the last years to &lt;a href="https://www.codementor.io/php/tutorial/php-interview-questions-sample-answers"&gt;their blog post “25 PHP Interview Questions”&lt;/a&gt;. I’m happy they found my suggestions useful and featured me in that article! Hope it helps some developers that are just getting to know the world of PHP and all its hiccups.&lt;/p&gt;</description></item></channel></rss>