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

推荐订阅源

K
Kaspersky official blog
G
Google Developers Blog
Apple Machine Learning Research
Apple Machine Learning Research
V
Visual Studio Blog
WordPress大学
WordPress大学
博客园 - Franky
雷峰网
雷峰网
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 【当耐特】
人人都是产品经理
人人都是产品经理
月光博客
月光博客
V
V2EX
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
IT之家
IT之家
小众软件
小众软件
Cloudbric
Cloudbric
量子位
N
News and Events Feed by Topic
Vercel News
Vercel News
Security Archives - TechRepublic
Security Archives - TechRepublic
www.infosecurity-magazine.com
www.infosecurity-magazine.com
C
Check Point Blog
The Cloudflare Blog
Hugging Face - Blog
Hugging Face - Blog
T
Tenable Blog
S
Secure Thoughts
Know Your Adversary
Know Your Adversary
C
CXSECURITY Database RSS Feed - CXSecurity.com
C
Cyber Attacks, Cyber Crime and Cyber Security
Stack Overflow Blog
Stack Overflow Blog
Help Net Security
Help Net Security
L
LINUX DO - 最新话题
Google DeepMind News
Google DeepMind News
云风的 BLOG
云风的 BLOG
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
N
News | PayPal Newsroom
PCI Perspectives
PCI Perspectives
T
Troy Hunt's Blog
GbyAI
GbyAI
Attack and Defense Labs
Attack and Defense Labs
C
Cybersecurity and Infrastructure Security Agency CISA
Y
Y Combinator Blog
美团技术团队
爱范儿
爱范儿
Martin Fowler
Martin Fowler
Last Week in AI
Last Week in AI
P
Privacy International News Feed
T
The Blog of Author Tim Ferriss
F
Full Disclosure

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
Why I built a Zero-Trust Proxy for my AI-controlled Robot 为什么我要为我的 AI 控制机器人构建零信任代理
loopgap · 2026-04-24 · via DEV Community

loopgap

Tags: #opensource #go #robotics #ai #embedded

We are officially in the era of "vibe coding." AI agents and LLMs are writing code, managing workflows, and executing complex software tasks at blistering speeds. It's an incredible time to be a developer.
我们已经正式迈入了“Vibe Coding”的时代。AI 智能体和大型语言模型正在以惊人的速度编写代码、管理工作流并执行复杂的软件任务。对开发者来说,这是一个不可思议的时代。

But what happens when you take that AI out of the browser and give it a physical body?
但是,当你把 AI 移出浏览器,赋予它一个物理躯体时,会发生什么?

What happens when an AI agent hallucinates while controlling a high-torque, 7-DOF (Degree of Freedom) robotic arm?
当 AI 智能体在控制一台高扭矩、7 自由度 (7-DOF) 的机械臂时发生“幻觉”,后果会怎样?

In the software world, a bad AI prompt leads to a failed build or a crashed app. In the hardware world, a bad AI prompt leads to broken servos, shattered workspaces, or physical injury.
在软件世界里,一个糟糕的 AI 提示词最多导致构建失败或应用崩溃。但在硬件世界里,一个糟糕的指令可能导致舵机烧毁、工作台粉碎,甚至造成人身伤害。

I needed a way to bridge my love for AI-assisted development with the unforgiving reality of embedded hardware. That’s why I built HAL-Proxy—a zero-trust Hardware Abstraction Layer gateway built in Go.
我需要一种方法,将我对 AI 辅助开发的热爱与嵌入式硬件容不得半点差错的现实连接起来。这就是为什么我使用 Go 语言构建了 HAL-Proxy —— 一个零信任的硬件抽象层网关。

Here is the story of why it exists, how it works, and how it fits into a larger open-source ecosystem I'm building.
下面是关于它为什么存在、如何运作,以及它如何融入我正在构建的更庞大的开源生态系统的故事。


The Danger of "Direct Connection"

“直连”的危险性

When I started experimenting with AI agents (using MCP protocols and tools like my web_ai_halfauto_mcp_tool), the initial thought was simple: just send JSON commands from the LLM straight to the robot's microcontroller via serial or WebSockets.
当我开始尝试使用 AI 智能体(使用 MCP 协议和我自己开发的 web_ai_halfauto_mcp_tool 等工具)时,最初的想法很简单:直接将 JSON 指令从 LLM 通过串口或 WebSocket 发送给机器人的微控制器。

Move Joint 1 to 90 degrees. Set torque to 50%.
“将 1 号关节移动到 90 度。将扭矩设置为 50%。”

But LLMs are probabilistic. Sometimes they miscalculate kinematics. Sometimes they ignore physical constraints. If you send an unfiltered, unverified command directly to an STM32 chip controlling high-power BLDC motors, you are asking for trouble.
但大语言模型是基于概率的。有时它们会算错运动学方程,有时它们会忽略物理限制。如果你将未经修改、未经实证的指令直接发送给控制大功率无刷直流 (BLDC) 电机的 STM32 芯片,那无疑是在自找麻烦。

I realized I couldn't trust the AI, and I couldn't burden the embedded firmware with heavy, complex validation logic. I needed a middleman.
我意识到我不能完全信任 AI,同时我也不能给嵌入式固件增加沉重、复杂的验证逻辑负担。我需要一个“中间人”。


Enter HAL-Proxy: The Zero-Trust Gateway

引入 HAL-Proxy:零信任网关

I decided to architect a dedicated proxy layer. I chose Go for this because of its exceptional concurrency model and networking performance.
我决定架构一个专用的代理层。我选择了 Go 语言,因为它具有出色的并发模型和网络性能。

HAL-Proxy sits exactly between the "Brain" (the AI Agent/Cloud) and the "Muscle" (the physical robot). It operates on a strict Zero-Trust philosophy.
HAL-Proxy 恰好位于“大脑”(AI 智能体/云端)和“肌肉”(物理机器人)之间。它基于严格的零信任理念运行。

How it works (工作原理):

  1. Intercept (拦截): The AI agent attempts to send a physical command (e.g., target coordinates, speed, torque). / AI 智能体尝试发送物理控制指令(例如目标坐标、速度、扭矩)。
  2. Validate (验证/沙箱): HAL-Proxy intercepts this command. It checks the payload against a strict set of pre-defined physical constraints. Is this joint angle out of bounds? Is this acceleration curve physically impossible or unsafe? / HAL-Proxy 拦截此指令,并根据一组预定义的严格物理约束条件检查载荷。这个关节角度越界了吗?这条加速曲线在物理上是否不可能或不安全?
  3. Translate (翻译): If the command is safe, the proxy translates it into the highly optimized, lightweight protocol expected by the embedded hardware. / 如果指令安全,代理会将其翻译为嵌入式硬件所期望的高度优化、轻量级的协议。
  4. Execute (执行): The command is passed down to the microcontroller. / 指令下发给微控制器执行。
  5. Feedback Loop (反馈循环): The proxy continuously streams telemetry data back to the AI, ensuring the digital twin matches physical reality. / 代理不断将遥测数据流回传给 AI,确保数字孪生与物理现实保持一致。

It acts as a firewall for the physical world. Even if the AI goes completely off the rails, HAL-Proxy ensures the hardware safely halts or ignores the bad instructions.
它充当了物理世界的防火墙。即使 AI 彻底失控,HAL-Proxy 也能确保硬件安全停机或忽略这些错误指令。


The Hardware Side: Memory-Safe Robotics

硬件端:内存安全的机器人控制

To make this ecosystem complete, the firmware executing these commands also needs to be bulletproof.
为了让这个生态系统更加完整,执行这些指令的底层固件也必须是无懈可击的。

While C/C++ is the traditional king of embedded systems, I’ve been transitioning my real-time control algorithms to Rust. For my 7-DOF robotic arm, I built the robot_ctrl_rust_app.
虽然 C/C++ 是嵌入式系统的传统霸主,但我一直在将我的实时控制算法向 Rust 迁移。针对我的 7 自由度机械臂,我构建了 robot_ctrl_rust_app

By leveraging Rust's ownership model and avoiding heap allocation, I can guarantee memory safety and deterministic real-time performance on STM32 microcontrollers. When HAL-Proxy sends a verified command, the Rust firmware executes the complex FOC (Field Oriented Control) and LADRC algorithms flawlessly.
通过利用 Rust 的所有权模型并避免堆分配,我可以在 STM32 微控制器上保证内存安全性以及确定性的实时性能。当 HAL-Proxy 发送经过验证的指令时,Rust 固件可以完美无瑕地执行复杂的 FOC(磁场定向控制)和 LADRC 算法。


The Big Picture: An "Atoms to Bits" Toolkit

全局视野:从原子到比特的工具包

HAL-Proxy isn't just a standalone tool; it's part of a broader vision to make hardware-software integration safer and more efficient. My open-source workflow now looks like this:
HAL-Proxy 不仅仅是一个独立的工具;它是让软硬件集成变得更安全、更高效的宏大愿景的一部分。我目前的开源工作流是这样的:

  • 🧠 Intelligence (智能): web_ai_halfauto_mcp_tool - Bridges the AI agents to my local development context. / 将 AI 智能体与本地开发上下文连接起来。
  • 🛡️ Security (安全): HAL-Proxy - The Go-based zero-trust gateway. / 基于 Go 的零信任网关。
  • ⚙️ Execution (执行): robot_ctrl_rust_app - The high-performance, memory-safe Rust firmware. / 高性能、内存安全的 Rust 固件。
  • 📊 Visibility (可视化): ShadowBoard - A unified control panel to monitor the whole system. / 用于监控整个系统的统一控制面板。

Let's Build a Safer AI-Hardware Future Together

让我们共同构建一个更安全的 AI 硬件未来

We are going to see a massive explosion in AI-driven robotics and IoT over the next few years. If we want this future to be safe, we need robust, open-source middleware.
在未来几年里,我们将见证 AI 驱动的机器人技术和物联网的爆炸式增长。如果我们希望这个未来是安全的,我们需要强大的开源中间件。

If you are an embedded engineer, a Go developer, or an AI enthusiast who wants to start interacting with the physical world without breaking things, I’d love for you to check out these repositories.
如果你是一名嵌入式工程师、Go 开发者,或者是一个想要开始与物理世界交互却不想搞砸一切的 AI 爱好者,我非常欢迎你来看看这些仓库。

  • Drop a ⭐ if you find the architecture interesting. / 如果你觉得这个架构有意思,请点个 ⭐。
  • Open an Issue or a PR (I actively label good first issues!). / 欢迎提交 Issue 或 PR(我会积极打上 good first issue 标签,方便新手参与!)。
  • Let's discuss in the comments: How are you handling the safety gap between AI logic and physical hardware? / 欢迎在评论区讨论:你是如何处理 AI 逻辑与物理硬件之间的安全鸿沟的?

Happy (and safe) coding! 🚀
祝编码愉快(且安全)! 🚀