惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

T
The Exploit Database - CXSecurity.com
F
Fortinet All Blogs
U
Unit 42
F
Full Disclosure
雷峰网
雷峰网
博客园 - 司徒正美
云风的 BLOG
云风的 BLOG
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
T
Tailwind CSS Blog
The Cloudflare Blog
Last Week in AI
Last Week in AI
罗磊的独立博客
D
DataBreaches.Net
C
Check Point Blog
www.infosecurity-magazine.com
www.infosecurity-magazine.com
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
O
OpenAI News
C
CXSECURITY Database RSS Feed - CXSecurity.com
aimingoo的专栏
aimingoo的专栏
S
Security @ Cisco Blogs
大猫的无限游戏
大猫的无限游戏
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
S
SegmentFault 最新的问题
NISL@THU
NISL@THU
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
The Hacker News
The Hacker News
Webroot Blog
Webroot Blog
Security Latest
Security Latest
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Google DeepMind News
Google DeepMind News
酷 壳 – CoolShell
酷 壳 – CoolShell
N
News | PayPal Newsroom
P
Proofpoint News Feed
B
Blog RSS Feed
MongoDB | Blog
MongoDB | Blog
C
Cybersecurity and Infrastructure Security Agency CISA
N
News and Events Feed by Topic
Google Online Security Blog
Google Online Security Blog
H
Help Net Security
Spread Privacy
Spread Privacy
T
Threat Research - Cisco Blogs
GbyAI
GbyAI
I
Intezer
Application and Cybersecurity Blog
Application and Cybersecurity Blog
M
MIT News - Artificial intelligence
Vercel News
Vercel News
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
IT之家
IT之家
MyScale Blog
MyScale Blog
腾讯CDC

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
How to keep third-party integrations alive when vendor APIs lock down
Alan West · 2026-05-13 · via DEV Community

The 2am page nobody wants

Last month I got the page every developer dreads. A scheduled job that's been quietly running for two years started spitting 401 Unauthorized at every request. The target was a fleet of network-connected hardware sitting on our office LAN. No code had changed. No certificates had expired. The only thing that had moved was the vendor's firmware, which had auto-updated overnight.

If you've ever built tooling against a vendor's local-network API and watched it die after a forced firmware push, this one's for you. I want to walk through how I diagnosed it, the workaround I shipped that afternoon, and the architectural changes I made afterward so I never have to do this again.

What actually broke

The symptom was clean: every HTTP call to the device's LAN endpoint returned 401. The device still responded to ICMP. The web UI on the device still worked. But anything calling the documented local API now demanded a token it had never required before.

First instinct is always to blame your own code, so I rolled the integration back two versions. Same error. Then I pulled the firmware changelog. Buried under "stability improvements" was a single line about "enhanced authentication for network requests." Translation: the vendor had quietly retrofitted a cloud-issued bearer token into what used to be an open LAN endpoint.

This is a pattern. A device ships with a permissive local API, an ecosystem of community tooling grows up around it, and then a later firmware tightens the screws. The community tools break. The vendor's official app keeps working because it knows the new handshake.

Step 1: confirm the wire-level change

Before you guess, capture. I always reach for tcpdump first because it tells you what the device is actually doing, not what the docs claim.

# Capture traffic between this host and the device on the LAN
# -i any  : listen on all interfaces
# -w      : write to file so we can open in Wireshark
sudo tcpdump -i any -w /tmp/device.pcap host 192.168.1.42

Enter fullscreen mode Exit fullscreen mode

Open the pcap in Wireshark, filter for http (or tls if the device upgraded to HTTPS), and compare a known-good capture against the broken one. In my case the broken request was missing an Authorization: Bearer ... header that the official app was sending. The vendor's app was first hitting their cloud, getting a short-lived token, and presenting it to the device on the LAN.

That single observation collapsed the search space. The device wasn't broken. It was now demanding proof that the caller had recently authenticated against the vendor's cloud.

Step 2: find the local escape hatch

Most vendors who do this still leave a developer-mode pressure valve, partly because their own QA teams need it. Common patterns I've seen:

  • A long-lived "access code" or "LAN key" you can read off the device's screen and pass as a header.
  • A toggle in the device settings to enable a legacy/local mode.
  • A printed setup credential in a config file on the device's storage.

In my case it was the first one. The device showed an 8-character code under a hidden settings panel. Passing it as X-Local-Access got me back a 200. That's the minimum-viable fix, and it's enough to get your CI green again.

import os
import httpx  # https://www.python-httpx.org/

DEVICE_HOST = os.environ["DEVICE_HOST"]
# Read the LAN code off the device's settings panel once,
# then store it in your secrets manager — it does not rotate.
LAN_CODE = os.environ["DEVICE_LAN_CODE"]

def call(path: str, payload: dict) -> dict:
    # The header name is vendor-specific; pull yours from the pcap.
    headers = {"X-Local-Access": LAN_CODE}
    r = httpx.post(f"http://{DEVICE_HOST}{path}", json=payload, headers=headers, timeout=10)
    r.raise_for_status()
    return r.json()

Enter fullscreen mode Exit fullscreen mode

If your vendor went a step further and signed the requests, you'll need to replay the handshake. That's a bigger lift, but the diagnostic approach is the same: capture, diff, replicate.

Step 3: stop trusting the vendor's surface

The afternoon fix is the easy part. The harder question is: how do I stop this happening again? The honest answer is that you can't stop a vendor from changing their own product. What you can do is reduce the blast radius when they do.

The single most useful change I made was wrapping the device behind a small adapter interface that the rest of my codebase talks to. Before, my job called httpx.post directly against the device. Now it calls a DeviceClient, and the only file that knows about authentication, headers, or hostnames is the adapter.

from typing import Protocol

class DeviceClient(Protocol):
    # The methods my application actually cares about.
    # Nothing here mentions HTTP, auth, or vendors.
    def send_job(self, job_id: str, payload: bytes) -> None: ...
    def status(self, job_id: str) -> str: ...

class LanHttpClient:
    """Implementation that talks to the vendor's LAN API."""
    def __init__(self, host: str, lan_code: str):
        self._host = host
        self._lan_code = lan_code

    def send_job(self, job_id, payload):
        # Vendor-specific request shape lives here and only here.
        ...

class MqttClient:
    """Alternative path over an open protocol if the device speaks it."""
    ...

Enter fullscreen mode Exit fullscreen mode

The payoff is that when the vendor changes their API again — and they will — only LanHttpClient has to move. Your scheduled jobs, your tests, your alerting, none of that cares.

Step 4: lean on open protocols where you can

A lot of network-connected hardware now speaks at least one open protocol underneath the vendor wrapper. MQTT is the big one in IoT, and many devices expose it on the LAN even when the vendor doesn't advertise it. If your device does, prefer that path. Open protocols have specifications you can read, brokers you can host yourself, and they don't change because a product manager decided to push everyone through a cloud.

I haven't tested this on every category of hardware, so check your specific device's docs and community forums. But as a rule of thumb: if there are two ways to reach the device and one of them is a documented open protocol, take the documented open protocol.

Prevention checklist

A few habits that have saved me since:

  • Pin firmware versions on production devices. Auto-update is convenient until it breaks your job at 2am.
  • Wrap vendor APIs in an adapter so the surface area of vendor knowledge in your codebase is exactly one file.
  • Capture a known-good pcap the first time you integrate. When something breaks later, you have a baseline to diff against.
  • Subscribe to firmware changelogs with a feed reader or a curl | diff cron. "Enhanced authentication" is almost always a breaking change in disguise.
  • Prefer open protocols when the device offers them. Vendor-specific JSON APIs are convenient and disposable; MQTT topics from five years ago still work.

The uncomfortable truth is that any closed surface you integrate against is borrowed time. Building like that's true from day one makes the inevitable firmware push a footnote instead of an incident.