Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计通过

configuring-ip-allowlists配置 ip 允许列表

Agent Skill

configuring-ip-allowlists 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

374

周安装

15

GitHub Stars

9

下载量

121
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:configuring-ip-allowlists(配置 ip 允许列表)
来源仓库:https://github.com/cockroachlabs/cockroachdb-skills
仓库路径:skills/configuring-ip-allowlists
安装命令:
npx skills add https://github.com/cockroachlabs/cockroachdb-skills --skill configuring-ip-allowlists
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/cockroachlabs/cockroachdb-skills --skill configuring-ip-allowlists

简介

用于查找、检索和筛选与 IP 允许列表配置相关的信息。

  • 适合在需要根据关键词或场景快速定位候选结果时使用。
  • 可结合来源仓库进一步核验具体用法和适用条件。configuring-ip-allowlists 属于研究检索类 Skill,可作为该场景下的辅助能力补充。
  • 安装前建议确认权限范围及是否触发联网或命令执行。
  • 当前暂无已知稳定性问题,但需人工复核具体实现细节。

SKILL.md

Configuring IP Allowlists

Configures and hardens IP allowlists on CockroachDB Cloud clusters to restrict SQL and DB Console access to authorized CIDR ranges. Identifies overly permissive entries (such as 0.0.0.0/0) and replaces them with specific, narrow ranges.

When to Use This Skill

  • Removing 0.0.0.0/0 (open to all) from the IP allowlist
  • Restricting network access after initial cluster setup
  • Adding office, VPN, or CI/CD CIDR ranges to the allowlist
  • Reviewing and tightening existing allowlist entries
  • Responding to a security audit finding about overly broad network access

Prerequisites

  • ccloud CLI installed and authenticated (ccloud auth login)
  • Cloud Console role: Cluster Admin or Cluster Operator
  • Known CIDR ranges: Office IPs, VPN egress IPs, CI/CD runner IPs, or other authorized sources
  • Cluster ID: Available from ccloud cluster list

Verify access:

ccloud auth whoami
ccloud cluster list

Steps

1. List Current Allowlist Entries

# List all IP allowlist entries for the cluster
ccloud cluster networking allowlist list <cluster-id> -o json

Review each entry. Flag any of these as overly permissive:

  • 0.0.0.0/0 — Open to all IPv4 addresses
  • /8 ranges — 16 million+ addresses
  • /16 ranges — 65,000+ addresses
  • Unknown or undocumented entries

See ccloud commands reference for full command syntax.

2. Understand Allowlist Limits

CockroachDB Cloud clusters have a maximum number of IP allowlist entries per cluster. If you need more entries than the limit allows:

  • Consolidate entries: Use broader CIDR ranges where security permits (e.g., combine several /32 entries into a /24)
  • Use private endpoints: Switch to private endpoints instead of allowlists for VPC-based access — private endpoints bypass the allowlist entirely
  • Request a limit increase: Contact CockroachDB Cloud support if consolidation and private endpoints are not sufficient

3. Identify Required CIDR Ranges

Before modifying the allowlist, document all legitimate access sources:

SourceCIDRSQL AccessUI Access
Office network203.0.113.0/24YesYes
VPN egress198.51.100.0/24YesYes
CI/CD runners192.0.2.0/28YesNo
Monitoring10.0.1.5/32YesNo

4. Add Specific CIDR Entries

# Add a specific CIDR range (CIDR is a positional argument)
ccloud cluster networking allowlist create <cluster-name> <cidr> \
  --sql \
  --ui \
  --name "<description>"

Examples:

# Office network — SQL and UI access
ccloud cluster networking allowlist create <cluster-name> 203.0.113.0/24 \
  --sql \
  --ui \
  --name "Office network"

# CI/CD runners — SQL only
ccloud cluster networking allowlist create <cluster-name> 192.0.2.0/28 \
  --sql \
  --name "CI/CD runners"

# Single IP — /32 for maximum specificity
ccloud cluster networking allowlist create <cluster-name> 198.51.100.42/32 \
  --sql \
  --ui \
  --name "Developer workstation"

5. Remove Overly Permissive Entries

# Delete the 0.0.0.0/0 entry (or other overly broad entries)
ccloud cluster networking allowlist delete <cluster-name> 0.0.0.0/0

Important: Only remove 0.0.0.0/0 after confirming your specific CIDR entries are in place and tested.

6. Verify the Updated Allowlist

# Confirm the final allowlist
ccloud cluster networking allowlist list <cluster-id> -o json

Test connectivity from each authorized source:

# Test SQL connection from an allowed IP
cockroach sql --url "<connection-string>" -e "SELECT 1;"

# Test from a non-allowed IP (should fail)
# Attempt connection from an IP not in the allowlist — expect connection refused

Safety Considerations

Risk: Locking yourself out. Removing 0.0.0.0/0 before adding your current IP will immediately block your access.

Mitigation steps:

  1. Identify your current IP before making changes: curl -s https://checkip.amazonaws.com
  2. Add your IP first as a /32 entry before removing broad ranges
  3. Test connectivity after adding specific entries but before removing 0.0.0.0/0
  4. Keep Cloud Console access — the Cloud Console UI can modify allowlists even if SQL access is blocked

Order of operations:

  1. Add all specific CIDR entries
  2. Verify SQL connectivity from each allowed source
  3. Remove 0.0.0.0/0 only after verifying all needed entries are in place
  4. Test again to confirm access still works

Rollback

If you lose access after removing a broad entry:

  1. Cloud Console: Log into the CockroachDB Cloud Console (web UI) — this does not use the IP allowlist
  2. Re-add your IP: Add your current IP as a /32 or re-add 0.0.0.0/0 temporarily
  3. Investigate: Determine which CIDR was missing and add it
# Emergency: re-add 0.0.0.0/0 via ccloud (if you still have ccloud access)
ccloud cluster networking allowlist create <cluster-name> 0.0.0.0/0 \
  --sql \
  --ui \
  --name "Emergency - temporary open access"

References

Skill references:

Related skills:

Official CockroachDB Documentation:

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.64%
按下载量换算42

Claude

29.77%
按下载量换算36

Cursor

20.13%
按下载量换算24

Gemini CLI

10.19%
按下载量换算12

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills