SShortSingh.
Back to feed

Master-Key Delegation Pattern Offers Safer Way to Grant AI Agents Tunnel Access

0
·1 views

AI coding agents like Claude Code, Cursor, and Devin often need a public URL to expose localhost for testing webhooks or previewing apps, but sharing a permanent API token with these agents poses serious security risks. A safer approach called the master-key delegation pattern allows a long-lived master key to mint short-lived, scoped child keys that are handed to the agent instead. Child keys expire automatically, are limited to a single project, and cannot generate further credentials, minimising potential damage if exposed. Revoking the master key instantly invalidates all child keys it created, enabling quick recovery from a compromise. The model mirrors established industry practices used by Stripe Restricted Keys, AWS STS, GitHub Fine-Grained Tokens, and HashiCorp Vault, applying the principle that long-lived credentials should only ever create short-lived ones.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingHacker News ·

Cloudflare Unveils Open Platform Designed for AI Agents and Applications

Cloudflare has announced what it calls 'Cloudflare OS,' an open platform aimed at supporting AI agents, applications, and automated workflows. The initiative positions Cloudflare's infrastructure as a foundational layer for developers building agent-based and app-driven systems. The platform is designed to integrate various tools and services within Cloudflare's ecosystem to streamline development and deployment. Details were shared via the official Cloudflare blog, signaling the company's push into the growing AI and agentic computing space.

0
ProgrammingDEV Community ·

MLCC Supply Crunch in 2026 Drives Sharp Price Hikes for Industrial Components

Multilayer ceramic capacitor (MLCC) prices are rising sharply in 2026 due to a significant supply shortage in the market. No new production capacity was added across the industry during 2024 and 2025, following a prolonged period of weak demand. High-capacity MLCC manufacturing requires a lead time of at least 12 to 18 months, making it difficult to quickly scale up output. As a result, the supply gap has widened rapidly, causing prices to spike and raising costs for industrial applications such as electronic switches.

0
ProgrammingDEV Community ·

How Suspense, Partial Prerendering, and Cache Components Work Together in Next.js

A technical deep-dive on DEV Community explains how React Suspense is a core building block of Next.js Partial Prerendering (PPR) and the Cache Components model. Components are rendered statically at build time unless they contain dynamic elements such as runtime APIs, uncached data fetches, or draft mode. When a route mixes static and dynamic components, Next.js prerenders the static content into an HTML shell at build time and streams dynamic content to the client at request time. This optimization means only dynamic components run at request time, improving overall page delivery performance. Routes that combine static and dynamic components require Suspense boundaries to wrap the dynamic parts, enabling this streaming behavior.

0
ProgrammingDEV Community ·

How to Build Stripe Web Checkout in a .NET MAUI App After Epic v. Apple Ruling

Following the Epic v. Apple injunction, US App Store apps can now direct users to external web payment flows, bypassing the store's 15–30% commission cut. A technical guide outlines an architecture using ASP.NET Core and .NET MAUI, where a Stripe-hosted checkout page is opened in the device's system browser rather than a WebView, a requirement for app store compliance. Subscription entitlements are granted server-side via Stripe webhooks rather than client-side claims, preventing fraud and enabling purchases made outside the app to unlock in-app features. A key implementation detail is setting the ClientReferenceId field in the Stripe session to link anonymous checkout sessions back to authenticated users when webhook events fire. The same pattern applies to Google's external-offers program and works across any technology stack, with the app checking both store SDKs and the backend API to determine a user's subscription status.

Master-Key Delegation Pattern Offers Safer Way to Grant AI Agents Tunnel Access · ShortSingh