Securing any App with Oauth2Proxy

Introduction When you deploy applications you might want to protect them behind a login. If you’re deploying multiple applications it might not be feasible to add authentication for each deployment separately. Here I’ll show how to set up a load balancer with nginx and oauth2proxy using Keycloak to secure any app. Run the example You can find a working example of running a load balancer with authentication in this repository. You can use docker compose to run the example:...

November 23, 2023 · 4 min · 826 words · Andreas Lay

A Primer on SARIMAX

A while ago I created a notebook with an introduction to time series analysis. Here is this notebook as a Gist: Generate a synthetic time series with cycles, trend (random walk) and noise components Look at some descriptive statistics (e.g. autocorrelations) Model the synthetic data with a SARIMA model Working with synthetic data first forces you to be explicit about your assumptions and is great for debugging: Unlike real data, as you know the true process the synthetic data follows you can validate your estimates easily against the “true” values....

November 21, 2023 · 1 min · 109 words · Andreas Lay

Mac Quality-of-Life Tooling

Here’s a short list of Mac apps which make your life a little bit easier: AltTab: Use windows “alt-tab” shortcut on Mac to switch windows Rectangle: Resizing windows using keyboard shortcuts Itsycal: A nice calendar for your menu bar Flycut: Clipboard manager for developers

November 20, 2023 · 1 min · 44 words · Andreas Lay

Setting Up Poetry to Access GCP Artifact Registry

Introduction In a corporate setting sooner or later you will want to host your in-house Python packages on a private artifact store. We are using Poetry for our package management and using Google Cloud as our cloud provider, therefore Artifact Registry is our store of choice. However the combination of Poetry with Artifact Registry is not well documented, so I hope this post helps. Creating a private package repository on GCP itself is straightforward and I assume you already have created one....

November 20, 2023 · 2 min · 317 words · Andreas Lay