Christoph Eicke

IP Authentication: A Tale of Performance Pitfalls and Challenges in Prod

They cached 72 million IPs to fix a performance bug, but the system kept failing. The real root cause was far more subtle.

IP Authentication: A Tale of Performance Pitfalls and Challenges in Prod
#1about 1 minute

The case against IP-based authentication for microservices

Migrating a PHP monolith to microservices revealed the fundamental problems with using IP-based authentication, a method you should avoid.

#2about 6 minutes

Understanding the mechanics and tradeoffs of IP authentication

IP authentication simplifies user access for large institutions by mapping an IP address to a user, but it creates issues with user tracking, licensing, and technical complexity.

#3about 3 minutes

Investigating initial deployment failures and performance issues

The first two production deployments failed due to massive error spikes, leading to an architectural change from a slow MySQL database lookup to a faster Redis cache.

#4about 2 minutes

Adopting a fail forward strategy to debug in production

After repeated failures, the team decided to stop rolling back and instead collaborated directly with customers in screen-sharing sessions to diagnose the issue live.

#5about 2 minutes

Discovering the root cause of the infinite redirect loop

The core problem was that legacy and new AWS accounts read the user's IP from different headers, causing a mismatch that sent cookieless bots into an infinite redirect loop.

#6about 2 minutes

How proxies and data entry errors break assumptions

The investigation revealed that academic and corporate proxies often rewrite URLs and strip cookies, and a simple data entry error in the CRM granted access to 1.5% of the internet.

#7about 1 minute

Lessons in collaborative problem-solving and architecture evolution

Using mob programming sessions during the crisis strengthened the team, and the final architecture evolved from Lambda to Fargate for cost and performance reasons.

Related jobs
Jobs that call for the skills explored in this talk.

Featured Partners

Related Articles

View all articles
DC
Daniel Cranney
Dev Digest 188: CfP time, the risks of NPM and IKEA algorithms
Inside last week’s Dev Digest 188 . 🤖 GitHub Copilot CLI is now in public review 💻 Microsoft is bringing ‘vibe working’ to office apps 🎣 Attackers abuse AI tools to generate captchas in fishing attacks ⚠️ When LLMs autonomously attack 🧠 Common cause...
Dev Digest 188: CfP time, the risks of NPM and IKEA algorithms
CH
Chris Heilmann
Dev Digest 134 - Where pixels sing?
News and ArticlesWeAreDevelopers LIVE Data and Security Day is on Wednesday, 25/09/2024. Learn about OPC UA Updates, Best Practices for Using GitHub Secrets, Passwordless Web 1.5, Emerging AI Security Risks, Data Privacy in LLMs and get a chance to t...
Dev Digest 134 - Where pixels sing?
DC
Daniel Cranney
Dev Digest 170: All things MCP, huge login data leaks and web privacy
Inside last week’s Dev Digest 170 . 🙌 MCP - Hype or hope? 🤖 Hidden costs of AI coding 😬 2 billion Discord messages leaked 🕵️ W3C releases web privacy principles ⚠️ Detecting malicious unicode 🎂 The history of JavaScript and Java at 30 ▦ A Tailwind g...
Dev Digest 170: All things MCP, huge login data leaks and web privacy

From learning to earning

Jobs that call for the skills explored in this talk.

IAM Product Owner

CROWDCONSULTANTS
Berlin, Germany

Remote
DNS
Scrum
Agile Methodologies
Microsoft Active Directory
Product Owner IAM

IMPACT GmbH Unternehmen für Zeitarbeit
Lucerne, Switzerland

Azure
Agile Methodologies