A loja já está disponível

Construímos máquinas Workstation AI para websites, agentes de IA e treino de LLM – configure e compre online.

Obter preços para revendedores
Produtos de IA
Laboratórios de IAAgentes OpenAIAgentes ClaudeBot GrokCRM nativo de IA Workstation AIMarketingTodos os produtos
Soluções de IA
IA aplicadaAgentes de IAIA generativaAutomação com IAFormação em IAPacotes de IA para PMELaboratório de IA empresarialWorkstations de IAHardware e software NVIDIAComputação acelerada NVIDIAIA privadaCloud privada de GPUClusters de GPUIA na edgeIA por setor
Serviços de IA
Modernização de plataformasEngenharia digitalFundações de dados e IAOperações autónomasConsultoria de IAAutomação DevOpsCibersegurançaDesenvolvimento de softwareCriação de agentesConfiguração de MLOpsLeasing de GPUCloud privada de GPU
Sobre nós
EmpresaA nossa históriaParceirosHistórias de clientes
Centros de dados de IA
Centros de dados de IACloud privada de GPUClusters de GPULeasing de GPU
Perspetivas sobre IASérie JevLaboratório de benchmarksSeleção de modelos
Notas técnicas
Documentação
Sistema operativo LinuxUbuntuRed Hat Enterprise LinuxSUSE LinuxAlpine LinuxDebian, Rocky e AlmaLinux
Plataformas de IA na cloudAWS e Amazon BedrockGoogle Cloud e Vertex AIMicrosoft Azure e AI FoundryClouds de GPU e marketplaces
Centros de dados de IA privadosPara escritórios de advogadosPara empresas de contabilidadePlataformas on-premisesCloud totalmente protegida
FerramentasRing PromoterJobshout
Notícias
Blogue
Contacte-nosIniciar sessão

Workstations de IA, software de IA multiagente, infraestrutura de GPU e soluções de agentes inteligentes para empresas modernas.

Contacte-nos

Soluções de IA

IA aplicadaAgentes de IAIA generativaAutomação com IAFormação em IAPacotes de IA para PMELaboratório de IA empresarialIA por setor

Produtos

Todos os produtosCRM e ERP nativos de IA Workstation AIMarketingAgentes OpenAIRing PromoterJobshout

Empresa

Sobre nósEmpresaCentros de dados de IAPorquê a WorkstationParceirosHistórias de clientesPreçosContactoTenthMatrix

Recursos

Perspetivas sobre IANotas técnicasDocumentaçãoSistema operativo LinuxPlataformas de IA na cloudCentros de dados de IA privadosBloguePesquisarMapa do site
Escritório na Bélgica
Workstation SRL, Rue Vanderkindere 34, 1180 Uccle, BrusselsBE 0751.518.683Seg – Sex: 9h00 – 18h00 CET
+32 492 45 67 46
Sede no Reino Unido
77-79 Marlowes, Hemel Hempstead HP1 1LFIndicações – saia na junção 20 da M25 (Outer London)N.º de registo da empresa: 11641870Seg – Sex: 9h00 – 18h00 GMT
+44 7515 356 146
Escritório na Índia
#159 Sector 9, Pocket 1, DDA Flats, 110077 Dwarka, New Delhi
+91 98881 98841
Escritório em Taiwan
3F, No. 2-4, Aisi Rd., Ren'ai Dist., Keelung City 200, Taiwan基隆市仁愛區愛四路2之4號3樓Seg – Sex: 9h00 – 18h00, hora de Taiwan (GMT+8)
+886 926 892 701+32 492 45 67 46
Escritório na Estónia
Aleksander Puškini tn 30-25, 20306 Narva, EstoniaSeg - Sex: 9h00 - 18h00, hora da Estónia (EET)
+32 492 45 67 46

© 2000-2026 Balinder Singh Walia. Todos os direitos reservados.

O sítio web Workstation e todo o seu conteúdo, bem como as APIs e plugins associados, são protegidos por direitos de autor de Balinder Singh Walia. balinder.walia@gmail.com

PrivacidadeEliminação de dadosCookiesTermos de serviçoMapa do site

NVIDIA, o logótipo NVIDIA, RTX, RTX PRO, Blackwell, CUDA, NVLink, MGX, Omniverse, Spectrum-X, Quantum, BlueField, DGX e HGX são marcas comerciais e/ou marcas registadas da NVIDIA Corporation nos EUA e noutros países. AMD, o logótipo AMD Arrow, EPYC, Instinct, Ryzen e Threadripper são marcas comerciais da Advanced Micro Devices, Inc. Dell e PowerEdge são marcas comerciais da Dell Inc. ou das suas subsidiárias. Intel e Xeon são marcas comerciais da Intel Corporation ou das suas subsidiárias. AMAX, AceleMax e LiquidMax são marcas comerciais da AMAX Engineering Corporation. Todos os outros nomes de produtos, logótipos e marcas são propriedade dos respetivos proprietários. Utilizamo-los apenas para identificar os produtos que descrevemos, fornecemos ou suportamos; a sua utilização não significa que os respetivos proprietários nos recomendem.

Início / Notas técnicas / Technology
AISecurityDevOps

Agentic AI Security: MCP OAuth, VPN & HashiCorp Vault Leases

Enterprise reference: MCP OAuth 2.1 + EMA, VPN integration, Vault dynamic secrets, auto-rotation, lease revoke, and vendor setup matrix

8 de agosto de 2026Technology7 min read

This Workstation technical brief covers agentic AI security and authentication: securing enterprise agents that call tools through MCP (Model Context Protocol) with OAuth 2.1, placing high-risk MCP endpoints behind VPN / private networking, and managing tool credentials with HashiCorp Vault — dynamic secrets, leases, auto-rotation, and immediate revoke. It recommends industry-aligned setups for Claude, OpenAI, and Cursor.

Agentic AI security: MCP OAuth, VPN, Vault leases

Navigation. Companion blog: short digest. Related: deep learning systems, Bedrock agents, multi-agent teams.
Agent digest (machine-readable).
  • Problem: Agents with static long-lived tool keys + public MCP = credential sprawl and lateral movement.
  • Auth: Remote MCP = OAuth 2.1 resource server + RFC 9728 PRM + RFC 8707 audience; PKCE mandatory.
  • Enterprise: Prefer MCP Enterprise-Managed Authorization (EMA / ID-JAG) via corporate IdP.
  • Network: Internal MCP and Vault on VPN/private link; egress allowlists per tool.
  • Secrets: Vault dynamic secrets + lease TTL; auto-rotate static roles; revoke on session end.
  • Split: LLM provider API keys != MCP access tokens != backend tool secrets.

Sources: MCP Authorization, Vault leases, Vault AI agent validated pattern, Claude connector auth. Verify current vendor docs before production rollout.

1. Threat model for enterprise agents

An agent is a privileged automation principal. Typical failure modes:

  • Secret sprawl — API keys in MCP JSON, .env committed to git, or pasted into prompts.
  • Token substitution — access token minted for server A accepted by server B (missing audience binding).
  • Over-scoped tools — one MCP can write prod DBs and open firewalls with the same session.
  • Unaudited OBO — agent acts without linking actions to a human identity.
  • Public MCP — internal tools reachable from the internet without VPN or private link.

Controls must cover identity (who), authorization (what tools), secrets (with what credentials), and network (from where).

2. MCP authentication: industry standard

For HTTP-based remote MCP, the specification aligns with OAuth 2.1:

  • MCP server = OAuth resource server; clients send Authorization: Bearer.
  • PKCE is mandatory; implicit grant is prohibited.
  • Servers MUST publish Protected Resource Metadata (RFC 9728) so clients discover the authorization server.
  • Use Resource Indicators (RFC 8707) so tokens are audience-bound to that MCP server.
  • Authorization Server Metadata (RFC 8414) and/or OIDC discovery for AS capabilities.
  • Dynamic Client Registration (RFC 7591) is recommended where clients must onboard without manual client IDs.
# Protected Resource Metadata (conceptual)
{
  "resource": "https://mcp.internal.example/mcp",
  "authorization_servers": ["https://auth.example.com"],
  "scopes_supported": ["mcp:tools", "mcp:resources"]
}

STDIO / local MCP is different: prefer environment credentials injected by Vault Agent — do not force browser OAuth on every desktop tool. Remote/public MCP should implement OAuth 2.1.

2.1 Enterprise-Managed Authorization (zero-touch)

The MCP Enterprise-Managed Authorization extension lets the corporate IdP (Okta, Entra ID, etc.) grant access to approved MCP servers at SSO using an ID-JAG (Identity Assertion JWT Authorization Grant), avoiding per-server consent fatigue. Adopt EMA for org-wide Claude / IDE / agent fleets.

3. VPN and private MCP integration

OAuth authenticates the client; it does not replace network isolation.

  • Host internal MCP servers and Vault on private CIDR (VPN, PrivateLink, Tailscale/WireGuard mesh, or service mesh mTLS).
  • Bind MCP listeners to private interfaces; block public 443 unless the product is intentionally internet-facing.
  • Apply egress allowlists from the agent runtime: only approved APIs/MCP hosts.
  • Split planes: developer laptops on corp VPN for Cursor; server-side agents in VPC with no internet MCP except approved SaaS.

Pattern: VPN for reachability + OAuth for authorization + Vault for secrets.

Figure A: IdP MCP Vault VPN architecture

4. HashiCorp Vault for agent secrets

Static long-lived tool keys are incompatible with agent blast radius. Vault provides:

4.1 Dynamic secrets + leases

Every dynamic secret returns a lease_id and TTL. The consumer must renew (if allowed) or request a replacement before expiry. When the lease ends, Vault can revoke the credential at the provider. This forces check-in, improves audit logs, and shrinks exposure windows.

4.2 Auto-rotation

For static roles (e.g. database password with rotation_period), Vault rotates on a schedule. Vault Agent templates re-fetch near end of life (default lease_renewal_threshold ~0.9 of TTL) and can restart a child process when credentials change.

4.3 Recommended TTLs for agents

Risk class Example TTL guidance
Critical writeProd DB mutate, IAM admin5-15 minutes; revoke on tool end
Read / stagingRead replicas, ticket APIs30-60 minutes
LLM provider keyOpenAI / Anthropic org keyVault-managed; rotate on schedule; never in MCP JSON

Figure B: Vault lease lifecycle

4.4 Vault + user attribution (validated pattern)

HashiCorp’s validated pattern: user authenticates; agent receives an on-behalf-of (OBO) token; tools authenticate to Vault with JWT; Vault maps claims to policies and issues scoped dynamic secrets. Audit trails link secret issuance to the human, not a shared robot account.

Vault Enterprise adds Agent Registry and OAuth resource server profiles so enrolled agents present OAuth JWTs without a separate Vault login step — with agent-specific constraints for delegation / OBO.

# Conceptual agent tool hook (do not ship secrets to the model)
vault_token = login_jwt(obo_token)           # Vault auth
secret = vault.read("database/creds/agent-ro")
lease_id, ttl = secret["lease_id"], secret["lease_duration"]
try:
    run_tool(db_url=secret["data"])          # use within TTL
finally:
    vault.lease.revoke(lease_id)             # or let TTL expire

5. Recommended setups by vendor

Figure C: Claude OpenAI Cursor patterns

5.1 Claude (Anthropic)

  • Prefer OAuth for remote MCP connectors; return 401 with WWW-Authenticate pointing at PRM so clients can discover auth.
  • Never put tokens/API keys in connector URL query strings (logged, cached, prohibited by MCP token rules).
  • Claude Code: local OAuth with secure token store and refresh; plugins must not read tokens.
  • Hosted Claude: Anthropic-managed client credentials for consenting users; still keep tool secrets in Vault behind your MCP.
  • Enterprise: align IdP with MCP EMA for zero-touch server access.

5.2 OpenAI (Agents / tools)

  • Separate model API keys from tool credentials; different rotation and blast radius.
  • Run agent runtimes in VPC; call private MCP over private networking.
  • Pass user-attributed tokens into tools; authenticate to Vault with JWT; mint dynamic secrets per invocation.
  • Log every tool call with user + agent + lease_id for compliance.

5.3 Cursor

  • MCP server config: reference environment variables only — never hardcode secrets in mcp.json.
  • STDIO servers: run under Vault Agent (template or env) so leases rotate without developers copying passwords.
  • Remote MCP: OAuth when the server supports it; otherwise corp VPN + short-lived bearer from Vault.
  • Team policy: allowlist approved MCP servers; block untrusted community MCPs on prod codebases.
  • Keep .env / secret files out of context via ignore rules; project rules: forbid pasting secrets into chat.

6. Reference control matrix

Layer Control Anti-pattern
IdentitySSO IdP + EMA / OAuth PKCEShared robot password
MCPPRM + audience-bound tokensTokens in URL; no expiry
NetworkVPN / PrivateLink + egress ACLPublic MCP for prod tools
SecretsVault lease + rotate + revokeYear-long keys in mcp.json
OpsAudit IdP+MCP+Vault; human gatesUngated prod deploys / payments

7. Implementation checklist

  1. Inventory every MCP server and classify public vs private.
  2. Implement OAuth 2.1 + PRM on all remote MCP; enable EMA with corporate IdP.
  3. Move MCP + Vault behind VPN/private networking; document how Cursor/Claude join the network.
  4. Replace static tool keys with Vault dynamic secrets; set TTLs by risk class.
  5. Wire Vault Agent (or SDK renew/revoke) into agent runtimes; revoke leases on session end.
  6. Separate LLM provider keys; store and rotate them in Vault — never in prompts or MCP config.
  7. Add human approval gates for money, identity changes, and production deploys.
  8. Test: expired lease fails closed; wrong-audience token rejected; public path blocked.
Workstation routing rule. Front door = MCP OAuth (who may call tools). Network door = VPN/mesh (from where). Secret door = Vault leases (with what). If any door is propped open with a static key, treat it as an incident waiting to happen.
Related reading. Edge WAF on the same live-config OpenResty proxy: WSL Proxy WAF blog · explainable edge WAF article · product overview · wslproxy.org/waf · tour youtu.be/r10XSonA5JE.

Published by Workstation — enterprise automation, multi-agent platforms, and secure delivery on Kubernetes.

Partilhar este artigo

Mais sobre Technology

Portáteis para programadores de IA: correr LLM localmente em Linux com GPU de 16 GB e 24 GB (guia de 2026)

Portáteis para programadores de IA: correr LLM localmente em Linux com GPU de 16 GB e 24 GB (guia de 2026)

O que cabe numa RTX 5080 ou RTX 5090 Laptop GPU, as contas da memória, os modelos abertos que vale a pena correr, a configuração do Ubuntu 26.04 com a stack NVIDIA, Ollama, llama.cpp e vLLM, assistentes de programação, fine-tuning LoRA, segurança e quando passar o trabalho para um servidor

Ler mais
Testar sistemas de ML e LLM que não pode provar corretos: um kit de evidências em Python

Testar sistemas de ML e LLM que não pode provar corretos: um kit de evidências em Python

Evidências em vez de provas, em cerca de 400 linhas de Python com resultados reais: métricas por segmento com intervalos bootstrap e um contrato de aprovação/reprovação, testes de propriedades e metamórficos com Hypothesis, calibração e conformal prediction, contratos Pydantic e avaliações de regressão para saídas de LLM, verificações de drift, um gate de CI e a verificação exata de uma pequena rede neuronal

Ler mais
TorchCurves na prática: curvas B-spline e de Legendre aprendíveis em PyTorch

TorchCurves na prática: curvas B-spline e de Legendre aprendíveis em PyTorch

Instalar o torchcurves, ajustar e dimensionar uma curva, escolher B-spline ou Legendre e o mapa de entrada, construir uma curva de calibração monótona e um modelo aditivo sobre dados tabulares, comparar com SciPy, scikit-learn, uma KAN e uma MLP, exportar os coeficientes para JSON, testar e executar em produção, com resultados reais

Ler mais