Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

static-egress

БесплатноЗапускает вложенные скриптыНе проверен

Give this agent a fixed egress IP for TCP services that use IP allowlists (RDS/Postgres, MySQL, Redis, Kafka). Use when a database or API firewall keeps…

Starchild-ai-agentот Starchild-ai-agent★ 34 звезды на GitHub

Об этом скилле

static-egress — a fixed outbound IP for this agent

The platform's relay app holds a static egress IP; your TCP traffic goes out through it. The target's firewall then allowlists one address, permanently — it never has to track this agent's drifting egress again.

agent container ──6PN private──▶ sc-static-egress relay ──static egress IP──▶ your DB

When to Use

  • A DB/API firewall is keyed on source IP and the agent's IP keeps changing.
  • You need a stable source address for raw TCP (Postgres 5432, MySQL 3306, Redis 6379…).
  • Someone must allowlist your traffic and you want to hand them one IP.

When NOT to Use

Situation Use instead
HTTP(S) API calls byo-proxy (per-request, bring your own account) or the platform's sc-proxy
Geo-blocked HTTP request sc-vpn
The DB supports IAM database authentication IAM auth — but note it removes passwords, not IP requirements; the firewall still applies
The DB is not reachable from the public internet (VPC-private endpoint) This relay cannot reach it either. Ask the platform team for an AWS-side relay/tunnel.
The target is inside the platform's own private network (a .internal service, localhost, or a private/link-local address) Refused by policy — the relay only dials external destinations. Reach those directly.
You want a different IP per request Not possible here — this is a container-level egress, not per-request routing

How to Call

# 1. Open an allocation for the target(s) you need to reach
python3 skills/static-egress/scripts/enable.py --target db-prod.xxx.rds.amazonaws.com:5432

# 2. Prove it works (NEVER skip: it checks the exit IP *and* a real TCP handshake)
python3 skills/static-egress/scripts/verify.py --target db-prod.xxx.rds.amazonaws.com:5432

# 3. Show the current allocation (never prints the credential)
python3 skills/static-egress/scripts/status.py

# 4. Stop paying for it / revoke the credential
python3 skills/static-egress/scripts/disable.py

Or call it in-process (another skill wiring the egress without shelling out):

from core.skill_tools import _modules
egress = _modules["static-egress"]
egress.enable_egress(["db-prod.abc123.us-east-1.rds.amazonaws.com:5432"])  # -> allowlist + rule
egress.verify_egress("db-prod.abc123.us-east-1.rds.amazonaws.com:5432")    # read-only proof
egress.egress_status()                                                     # read-only
egress.disable_egress()                                                    # revoke

enable.py is idempotent: re-running keeps the same egress IPs, so an allowlist entry you already installed stays valid. It mints a fresh credential each time and revokes the previous one, so it also doubles as "renew".

Workflows — the typical case: an RDS Postgres behind a security group

This is the case the service exists for: the agent's own egress IP drifts, RDS's security group allowlists IPs, so the allowlist keeps breaking. Put the static IP on the relay and point the DB client at the relay.

No database yet? Prove the mechanism first — it needs no DB and no allocation of your own (it saves and restores whatever you already have):

python3 skills/static-egress/scripts/selftest.py

It must print two PASS lines:

  • tcp + source address — the relay reaches a real target and the far end sees the allowlisted address. A MISMATCH here is exactly the condition that breaks an RDS allowlist.
  • tls verify-full via relay — a TLS handshake with hostname verification succeeds while the socket goes to loopback, i.e. the host + hostaddr semantics the recipe below relies on.

It cannot prove that your firewall allows the address or that your endpoint is reachable — only a real target can, which is what step 3 is for.

1. Open an allocation for the DB endpoint

python3 skills/static-egress/scripts/enable.py \
    --target db-prod.abc123.us-east-1.rds.amazonaws.com:5432

Read the two addresses it prints — those are the only thing the firewall needs, and they never change (re-running enable.py returns the same ones).

2. Allow the relay in the RDS security group (once, ever)

Use the sg_rule from step 1, with the group attached to the RDS instance and the DB port. Both an IPv4 and an IPv6 entry are printed; RDS endpoints normally resolve to IPv4, so the IPv4 entry is the one that matters — verify.py tells you which family the DB will actually see. sc-static-egress needs the endpoint to be publicly reachable: a VPC-private RDS has no route from here.

3. Prove it before touching the application

python3 skills/static-egress/scripts/verify.py \
    --target db-prod.abc123.us-east-1.rds.amazonaws.com:5432

Expect egress matches: yes and tcp handshake: ok. If the handshake fails, the security-group entry is missing or the endpoint is private — fix that now, not after changing the

Полный SKILL.md на GitHub

Установить static-egress в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

exports.pylogo.pngscripts/_common.pyscripts/api.pyscripts/disable.pyscripts/enable.pyscripts/selftest.pyscripts/status.pyscripts/tunnel.pyscripts/verify.py

FAQ

Что делает скилл static-egress?

Give this agent a fixed egress IP for TCP services that use IP allowlists (RDS/Postgres, MySQL, Redis, Kafka). Use when a database or API firewall keeps failing because the agent's outbound IP changes (e.g. "RDS whitelist broke again", "our IP isn't in the security group"), or when you need the agent to appear from one stable address for raw TCP traffic.

Как установить скилл static-egress?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл static-egress запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

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

Сравнить static-egress с