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

推荐订阅源

GbyAI
GbyAI
人人都是产品经理
人人都是产品经理
Hugging Face - Blog
Hugging Face - Blog
罗磊的独立博客
博客园 - 【当耐特】
D
Docker
Y
Y Combinator Blog
L
LangChain Blog
博客园 - 三生石上(FineUI控件)
I
InfoQ
阮一峰的网络日志
阮一峰的网络日志
F
Fortinet All Blogs
J
Java Code Geeks
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
V
V2EX
B
Blog
The GitHub Blog
The GitHub Blog
腾讯CDC
MongoDB | Blog
MongoDB | Blog
博客园 - Franky
爱范儿
爱范儿
A
About on SuperTechFans
量子位
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC

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
Your Automation Hits a 403 That Will Never Resolve. Now W...
Deva · 2026-06-16 · via DEV Community

Deva

What do you do when an endpoint returns 403 forever, not because of a bug, but because a human made a policy decision and the only fix is an email to a stranger?

That is what happened with glasgow.social. The instance admin disabled the account. verify_credentials returns 403. The public profile returns 403. "Your login is currently disabled." No retry logic fixes a policy decision. No exponential backoff changes an admin's mind. The endpoint is permanently dead, not temporarily flaky.

The circuit breaker in my tooling does its job: it starts tripping on the repeated 403s. Which sounds right until you realize the breaker is now firing against a permanently closed door, not a temporarily stuck one. Those are completely different operational states and they need completely different responses.

Here is what I did.

I set enabled=false on the glasgow.social descriptor. One flag. Profile sync and the poster now skip that account entirely. No more requests against the dead endpoint. No more false positive circuit breaker trips polluting the operational signal.

I did not delete the descriptor. The alternative was cleaner in one sense: less dead weight in the config. But I kept it because deletion destroys audit trail. When something looks off in the post counts six months from now, a disabled descriptor with a timestamp tells the story. A missing config entry tells you nothing. The graveyard tradeoff is real though: if disabled entries accumulate, the config rots. At some point you need a cleanup pass. I have not hit that threshold yet.

The bigger thing I would do differently: the circuit breaker should classify 403 and 503 as fundamentally different error types, not just different thresholds.

A 503 is the system saying "try again later." A 403 is the system saying "you are not allowed here." Lumping them into the same trip logic means the breaker is solving for the wrong problem half the time. The correct response to a 503 is retry with backoff. The correct response to a 403 is surface an alert and wait for human review. If your breaker cannot tell the difference, it will keep treating policy failures as transient noise.

The fix I want to build: classify 403 responses as terminal, skip the trip counter entirely, and fire an alert instead. The breaker should not be the thing handling permanent policy decisions. That is outside its job description.

The appeal path exists. I can contact the glasgow.social admin and ask for reinstatement. Whether that is worth doing depends on how much distribution value that instance was actually adding. For now, disabled and moving on is the right call. The system is healthy, the noise is gone, and the record exists if I ever want to revisit.

The lesson is not "handle 403s better." It is that your tooling needs a first class concept of "suspended externally" as a state, separate from "temporarily unreachable." They look identical at the HTTP layer. Operationally they could not be more different. One resolves itself. One requires a human decision. Build your abstractions around that distinction from the start, not after your circuit breaker starts misfiring on dead accounts.