К основному содержанию
скилл CX Codex

infisical-gateway — скилл для Claude Code: что делает и как установить

Скилл для Claude Code помогает настроить Infisical Gateway и Relay, чтобы получать доступ к внутренним базам, каталогам и API без публичного адреса.

MIT 238 установок ★ 41 обновлён 2026-10-19

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add Infisical/ai-skills --skill infisical-gateway -a claude-code
Открыть на GitHub

Что делает infisical-gateway

Агент становится ассистентом по подключению приватных ресурсов: база только внутри VPC, каталог в своём дата-центре, внутренний API. Гейтвей ставят внутри вашей сети, наружу он ходит сам — входящие правила в файрволе не нужны.

Дальше по шагам: убедиться, что ресурс правда недоступен извне, посчитать изолированные сети (на каждую нужен свой гейтвей), выбрать relay — управляемый Infisical или свой, зарегистрировать гейтвей через infisical gateway start или infisical gateway systemd, проверить egress. Порты скилл называет точно: TCP 2222 до relay, TCP 443 до Infisical, TCP 8443 от платформы к relay. Без исходящего TCP 2222 туннель не встанет, поэтому egress проверяют раньше конфига.

Внутри два файла: references/deployment-and-networking.md про деплой и сеть, references/pools-and-consumers.md про пулы и потребителей. Гейтвей — платная фича Enterprise. Только 16 типов App Connection принимают gatewayId, а вместе с gatewayPoolId его передавать нельзя. Для продакшена берут пул: одиночный гейтвей становится единой точкой отказа для всего, что через него ходит. Отметки о здоровье идут раз в 3 минуты от гейтвеев и раз в час от relay.

Какие задачи решает

  • пробросить доступ к базе, у которой нет публичного адреса
  • посчитать, сколько гейтвеев нужно для раздельных сетей prod и staging
  • проверить egress-правила до того, как деплой встанет
  • поднять гейтвей через systemd на внутреннем хосте
  • собрать пул гейтвеев вместо единой точки отказа

Примеры запросов агенту

  • Infisical не может достучаться до внутренней Postgres в VPC — разберись с Gateway и перечисли исходящие порты, которые нужно открыть.
  • Разверни гейтвей на on-prem хосте через infisical gateway systemd и объясни, зачем в схеме relay.
  • Сколько гейтвеев понадобится, если prod и staging живут в отдельных сетях?

Как установить infisical-gateway

1Через Skills CLI (Vercel)

npx skills add Infisical/ai-skills --skill infisical-gateway -a claude-code

2Вручную: положить файлы

~/.claude/skills/infisical-gateway/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/infisical-gateway/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы об infisical-gateway

Как установить infisical-gateway в Claude Code?

Выполните npx skills add Infisical/ai-skills --skill infisical-gateway -a claude-code. Скилл окажется по пути ~/.claude/skills/infisical-gateway/SKILL.md.

Что делает infisical-gateway?

Помогает агенту настроить Infisical Gateway и Relay, чтобы платформа доставала ресурсы без публичного адреса: считает изолированные сети, проверяет egress, даёт команды деплоя.

Какие порты нужны гейтвею?

Только исходящие: TCP 2222 до relay, TCP 443 до Infisical и TCP 8443 от платформы к relay. Входящие правила открывать не нужно.

Исходный текст

SKILL.md · MIT
---
name: infisical-gateway
description: "Guide for the Infisical Gateway and Relay — reaching private network resources (VPC-only databases, on-premises directories, internal APIs, HSMs) from Infisical without any inbound firewall rules. Covers the gateway/relay architecture using SSH reverse tunnels, exact ports and egress allowlist requirements (TCP 2222 to the relay, TCP 443 to Infisical, TCP 8443 platform-to-relay), deployment with `infisical gateway start` and `infisical gateway systemd`, Infisical-managed vs self-deployed relays, Gateway Pools for high availability, health checks and heartbeat intervals, and which features and App Connection types can be routed through a gateway. Use this skill when someone asks about: Infisical Gateway, relay server, accessing a private database from Infisical, dynamic secrets for a database with no public endpoint, gateway pools, or 'Infisical cannot reach my internal resource'. A Gateway is not a substitute for self-hosting (infisical-self-host) and not an App Connection (infisical-app-connections) — private resources need both a gateway and a connection."
---
# Infisical Gateway Guide

You are a setup assistant helping users reach private network resources from Infisical.

The problem the Gateway solves: Infisical needs to talk to a database, directory, or API that has no
public endpoint. The Gateway is a lightweight service you run **inside** your network that makes only
**outbound** connections, so no inbound firewall rules are needed.

Gateway is a **paid Enterprise** feature.

## Not this skill

The Gateway is a piece of shared plumbing, not a feature in itself. Users usually arrive because
something else cannot reach a resource:

| If the user wants... | Use, then come back here for the gateway |
|----------------------|------------------------------------------|
| Dynamic credentials for a private database | `infisical-dynamic-secrets` |
| An App Connection to a private host | `infisical-app-connections` |
| To rotate a credential on an internal system | `infisical-secret-rotation` |
| PAM sessions to internal infrastructure | `infisical-pam` |
| An internal CA (ADCS, Venafi) or an HSM | `infisical-pki` |
| To sync certificates to an on-prem load balancer | `infisical-pki` |
| A KMIP server | `infisical-kms` |
| To self-host Infisical itself | `infisical-self-host` |

**A Gateway is not a substitute for self-hosting.** Users sometimes think reaching private resources
requires self-hosting Infisical. It does not — that is precisely what the Gateway is for. Cloud
Infisical plus a Gateway reaches private resources without moving the platform.

**A Gateway is also not an App Connection.** The gateway provides the network path; the connection
provides the credentials. Private resources need both.

## Architecture

Two components:

| Component | Where it runs | What it does |
|-----------|--------------|--------------|
| **Gateway** | Inside **your** network | Proxies Infisical's requests to your private resources. Outbound-only |
| **Relay server** | Infisical-managed, or self-deployed | Routes encrypted traffic between the platform and your gateway. Never decrypts it |

The flow uses **SSH reverse tunnels with certificate-based authentication**:

1. **Registration** — the gateway opens an outbound SSH reverse tunnel to a relay, using SSH certificates issued by Infisical
2. **Persistent connection** — the gateway holds that TCP connection open, creating a channel for inbound requests
3. **Routing** — when the platform needs your resource, the request goes through the relay and down the existing tunnel
4. **Access** — the gateway connects to the private resource on Infisical's behalf

Traffic through the relay is **double-encrypted**, and the relay routes only — it cannot decrypt.

## The rule about network placement

**A gateway must sit in the same network as the resources it reaches, with direct connectivity to
them.** Separate networks, regions, or isolated environments each need their **own** gateway.

This is the most common design mistake: one gateway is expected to cover a whole estate. If the user
has a prod VPC and a staging VPC with no route between them, that is two gateways.

## How to use this skill

1. **Confirm a gateway is actually needed** — is the resource genuinely unreachable publicly?
2. **Count the networks** — one gateway per isolated network
3. **Decide relay strategy** — Infisical-managed (simplest) or self-deployed (lower latency)
4. **Deploy the gateway** and enroll it
5. **Verify the egress allowlist** — this is where deployments stall
6. **Attach the gateway** to the consuming connection or feature
7. **Consider a Gateway Pool** for production HA

## Reference files

| File | When to read |
|------|-------------|
| `references/deployment-and-networking.md` | Deploying gateways and relays, exact ports and egress rules, systemd, health checks, troubleshooting |
| `references/pools-and-consumers.md` | Gateway Pools for HA, which features and connection types accept a gateway |

## Guiding principles

- **No inbound ports, ever.** If a user is opening inbound firewall rules for a gateway, they have misunderstood the model. The gateway dials out.
- **One gateway per isolated network.** Not one per resource, and not one for everything.
- **Only 16 App Connection types accept a gateway.** Passing `gatewayId` to any other type is a validation error, not a no-op. See `infisical-app-connections`.
- **`gatewayId` and `gatewayPoolId` are mutually exclusive.** Specifying both fails.
- **Use a Gateway Pool for anything production.** A single gateway is a single point of failure for every feature routed through it.
- **Check egress before debugging anything else.** Most "gateway won't connect" reports are a blocked outbound port.
- **Gateways report health every 3 minutes; relays hourly.** Know the intervals before concluding something is down.

© Infisical · MIT · Infisical/ai-skills

Похожие скиллы

Все скиллы по теме «Безопасность» →
azure-nat-gateway MicrosoftDocs Скилл с экспертными знаниями по Azure NAT Gateway: архитектура, настройка SNAT портов, flow logs, интеграция с Azure Firewall. Помогает разобраться с outbound connectivity и устранить проблемы с исходящим трафиком. CX Codex +1 184установок ssh Dicklesworthstone Помогает агенту подключаться к серверам по SSH, пробрасывать порты, синхронизировать файлы через rsync и управлять ключами. Пригодится при деплое и удалённой отладке. CX Codex +1 705установок ssh-configuration devops-skills Скилл ssh-configuration настраивает OpenSSH на клиенте и сервере, помогает выпускать ключи Ed25519, пробрасывать порты и поднимать бастион-хосты для безопасного удалённого доступа. CX Codex +1 527установок huawei-cloud-ecs-passwordless-login huaweicloud Скилл huawei-cloud-ecs-passwordless-login настраивает беспарольный вход по SSH на серверы Huawei Cloud ECS через Cloud Operations Center со сбросом ключей через 60 секунд. CX Codex +1 194установок ssh-remote oakoss Скилл ssh-remote помогает ассистенту настраивать SSH-подключения, генерировать ключи Ed25519, пробрасывать порты и безопасно передавать файлы. CX Codex +1 183установок discover-networking rand Скилл discover-networking распознаёт задачи по сетям и подключению, затем помогает находить подходящие скиллы из набора cc-polymath. Пригодится при работе с протоколами, VPN и устойчивостью соединений. CX Codex +1 120установок

Из того же набора17

Весь набор →
infisical-secret-rotation Скилл infisical-secret-rotation помогает настроить регулярную смену существующих паролей и ключей в Infisical с записью новых значений в хранилище. CX Codex +1 255установок infisical-secret-scanning Скилл infisical-secret-scanning помогает найти утёкшие ключи в репозитории и поставить проверку до пуша: облачные источники, infisical scan, pre-commit хук. CX Codex +1 254установок infisical-kms Скилл объясняет агенту, как шифровать, подписывать и считать HMAC ключами Infisical KMS, которые не покидают платформу. CX Codex +1 238установок infisical-pam Настраивает доступ людей и ИИ-агентов к серверам и базам через Infisical PAM без передачи паролей наружу. CX Codex +1 238установок infisical-sso Скилл infisical-sso помогает подключить Infisical к системе управления идентичностью (Google, GitHub, Okta, Azure AD, SAML, OIDC или LDAP) — чтобы люди логинились через неё и автоматически создавались учётные записи. CX Codex +1 237установок infisical-pki Скилл infisical-pki помогает развернуть инфраструктуру PKI в Infisical: настроить центры сертификации, выпуск X.509, автопродление и синхронизацию с облачными хранилищами. CX Codex +1 235установок infisical-kubernetes-operator Скилл infisical-kubernetes-operator ведёт по оператору Infisical: как держать Kubernetes Secrets и ConfigMaps в синхроне с Infisical и не писать YAML наугад. CX Codex +1 223установок infisical-setup Скилл infisical-setup для Claude Code и Codex помогает подключить Infisical для передачи секретов в приложения, контейнеры и CI/CD. Агент выбирает инструкцию по задаче: настройка CLI, SDK, Docker, Kubernetes или машинной аутентификации. CX Codex +1 163установок

Спонсоры проекта

Компании, которые помогают держать аналитику открытой