SShortSingh.
Back to feed

How to Let AI Agents Deploy Code Without Granting Dangerous Server Access

0
·72 views

AI coding agents like Cursor and Claude can now handle deployments, but giving them broad server access via SSH keys or admin tokens creates serious security risks. A safer approach uses the Model Context Protocol (MCP), which exposes only specific deployment operations — such as deploy, rollback, and log retrieval — as typed tools the agent can call. Authorization is enforced server-side on every request, and all actions are logged through the same audit trail used by human operators. The pattern recommends per-workspace tokens, role inheritance from the issuing user, no shell access for agents, and treating tokens like passwords stored in secret managers. Open-source self-hostable platform Peon is cited as a reference implementation, with its MCP endpoint built directly into the application rather than added as a separate script.

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
ProgrammingDEV Community ·

Glass.NET 1.3.0 adds a headless CLI and an MCP server for static .NET assembly analysis

Glass.NET, a free .NET decompiler, has released version 1.3.0 with a command-line interface that runs without a window, using the same decompiler engine as its UI. The new tool supports commands for exporting buildable C# projects, generating software bills of materials, verifying NuGet package signatures and strong-name identities, and diffing public API surfaces between builds. It also adds a Model Context Protocol server that lets AI coding assistants read decompiled C# on a user's behalf. All operations are static analysis that reads metadata and IL without executing the inspected assemblies, and every command supports JSON output for scripting.

0
ProgrammingDEV Community ·

Auditing SMS Alert APIs for Healthtech Compliance Notices: Three Evidence Gates

An engineering guide explains how US and EU healthtech SaaS teams can test whether a transactional SMS provider's delivery evidence can be reconciled with an internal notice ledger before onboarding. It argues that a successful API response is insufficient to close a compliance notice, and that uncertain sends should stay visible rather than being marked complete. The author proposes three gates: durable intent before sending, recorded submission outcomes including timeouts, and reconciliation of delivery state against notice policy. Recommended records include internal notice and attempt IDs, provider message IDs, timestamps, template versions, and observed delivery states. The piece stresses that its figures are proposed acceptance criteria rather than measured vendor reliability results, and that legal definitions of notice require separate policy decisions.

0
ProgrammingDEV Community ·

Tutorial: Build a Before-and-After Image Comparison Tool with HTML, CSS and JavaScript

A DEV Community guide shows how to build a browser-based before-and-after image comparison tool using only HTML, CSS and JavaScript. Users select two photos from their own computer, which are displayed side by side without being uploaded to any server or stored permanently. The tutorial stresses keyboard accessibility, mobile use and removing images, and is designed to avoid exposing private details such as homes or cars in personal photos. It uses three files, index.html, style.css and script.js, with no frameworks, backend or external libraries required. CSS Grid arranges the images in two columns on larger screens and stacks them on mobile.

0
ProgrammingDEV Community ·

How Night Nabbers runs a 3D multiplayer stealth game in a browser tab

Night Nabbers is a free, browser-based 3D stealth game where players control a raccoon sneaking past guard dogs and searchlights to steal eggs. It supports solo play against bots or online rooms of up to 16 players, with no download or sign-up required. The developer built the game with TypeScript, Vite, three.js on WebGL2, and Preact for the interface, while online rooms run on Cloudflare Workers and Durable Objects. A key design choice was writing the game rules once in a shared deterministic simulation that runs in both the browser and the server, enabling exact client-side prediction. To keep costs and traffic low, the developer packs multiple streets into a single Durable Object, drops idle rooms, and uses compact five-byte input messages and delta-encoded updates.