airlock

mcp
Guvenlik Denetimi
Basarisiz
Health Uyari
  • License — License: Apache-2.0
  • Description — Repository has a description
  • Active repo — Last push 0 days ago
  • Low visibility — Only 6 GitHub stars
Code Basarisiz
  • rm -rf — Recursive force deletion command in install.sh
  • network request — Outbound network request in install.sh
Permissions Gecti
  • Permissions — No dangerous permissions requested

Bu listing icin henuz AI raporu yok.

SUMMARY

Access private databases, EKS clusters, caches and AWS data from localhost and as guarded MCP servers for AI assistants

README.md

🔐 airlock

One access point to your private resources, for you and your AI assistants.

Databases, EKS clusters, caches, DynamoDB tables, S3 buckets and CloudWatch Logs,
reached through an SSM jumphost, directly, in Docker or through the AWS API. Your tools connect on
localhost, with IntelliJ data sources; your AI assistants get guarded, audited MCP tools.

Release
License
Go
AWS
MCP
Platforms

Features ·
Quick start ·
How it works ·
Documentation ·
Contributing ·
Security


airlock is a single command-line tool for teams whose databases, Kubernetes clusters and caches
live in private networks on AWS. Instead of a VPN, SSH bastions or hand-written
aws ssm start-session commands, you run airlock, pick a target, and get it on localhost,
signed in with your own AWS profiles. The same connection becomes a set of MCP tools for AI assistants (Claude
Code, VS Code, Codex, Cursor, Gemini CLI), read-only unless you allow writes, with every call shown
live and logged.

It is for developers and operators who work with AWS, and for anyone who wants their AI assistant
to query a database without handing it a password. Without AWS, it still serves databases you reach
directly or run in Docker.

✨ Features

🧭 Guided wizard Pick a recent connection, or go resource type → profile → target → review. Search every target of a profile in one list.
🔑 Passwordless databases RDS sign-in with short-lived AWS IAM tokens. Password and AWS Secrets Manager sign-in are available too, with an optional OS keychain.
🪟 Parallel sessions Open as many tunnels as you need, switch between them with a keystroke. Local ports never collide.
🤖 AI-ready Each database, EKS, cache, DynamoDB, S3 and CloudWatch Logs session serves a guarded MCP server and registers it for Claude Code, VS Code, Codex, Cursor and Gemini CLI.
🗄 Direct databases Declare the PostgreSQL, SQL Server, MySQL and MariaDB databases you reach without jumphost, and get the same MCP server, audit log and IDE data source.
🧾 Audited Every MCP call is shown live in the dashboard and written to a daily JSONL audit log.
📦 Project stacks Commit .airlock.json with the targets an application needs; airlock up opens them all.
🧩 IDE integration Registers the tunnel as an IntelliJ data source in .idea/dataSources.xml.
🌍 Region aware Switch region at any time from a searchable list (paris, eu-west, japan…).
👥 Team settings Share one config string with airlock config export / import.

🚀 Quick start

1. Install. No Go needed: the installer downloads the latest release for your machine. It needs
no GitHub account or token.

macOS and Linux:

curl -fsSL https://raw.githubusercontent.com/n2jsoft-public-org/airlock/main/install.sh | sh

Windows (PowerShell 7+):

& ([scriptblock]::Create((Invoke-RestMethod https://raw.githubusercontent.com/n2jsoft-public-org/airlock/main/install.ps1)))

Or with a package manager:

brew install --cask n2jsoft-public-org/tap/airlock      # Homebrew (macOS, Linux)
scoop bucket add n2jsoft https://github.com/n2jsoft-public-org/scoop-bucket
scoop install n2jsoft/airlock                           # Scoop (Windows)
winget install N2JSoft.Airlock                          # winget (Windows)
go install github.com/n2jsoft-public-org/airlock/cmd/airlock@latest   # Go 1.27+

Debian, Ubuntu, Fedora, RHEL and Alpine packages (.deb, .rpm, .apk) are attached to every
release: see
Linux packages.

2. Connect. Open a new terminal, then:

airlock                      # launch the wizard
airlock rds my-db 5432       # …or connect directly

Then point your tools at localhost:5432. That's it. Later, airlock update keeps an installer
install current; a package manager updates its own install.
Something not working? Run airlock doctor (Troubleshooting).

Installer options, manual install, building from source, updating and uninstalling: see
Installing and updating.

The first airlock in a terminal asks a few settings (language, production profiles, AI clients):
see First launch. Each session also serves an MCP server to your AI assistants:
see AI access with MCP.

3. Configure, only if needed. Everything else has defaults: airlock finds the jumphost of each
AWS account by its tag, Usage=jumphost by default. If yours carries another tag, set it once:

airlock config set aws.jumphostTag Key=Value

No jumphost yet? See Setting up a jumphost. DynamoDB, S3, CloudWatch
Logs, direct and Docker databases need none.

Prerequisites

  • AWS CLI v2 and the Session Manager plugin, only for RDS, EKS and ElastiCache tunnels.
  • AWS profiles (aws configure or AWS SSO) with the IAM permissions airlock's calls need,
    including ssm:StartSession. airlock signs you in again when a sign-in expires.
  • A running jumphost for RDS, EKS and ElastiCache, in each account and region you connect to.

The full list is in Installing and updating; airlock doctor
checks all of it.

🛰 How it works

airlock reaches each resource the shortest way it can: through the AWS API for DynamoDB, S3 and
CloudWatch Logs, straight at the host for direct databases, on the local
Docker for containers, and through an SSM jumphost for what sits in
private subnets (RDS, EKS, ElastiCache). Then it serves each connection twice: on localhost for
your tools, and as an MCP server for your AI assistants.

The jumphost route, with no VPN, no SSH keys and no open ports:

flowchart LR
  subgraph laptop["Developer machine"]
    tools["IDE · psql · kubectl · redis-cli<br/>AI assistant (MCP)"] -->|"localhost:&lt;port&gt;"| airlock["airlock"]
    airlock --> plugin["AWS CLI +<br/>Session Manager plugin"]
  end
  plugin -->|"HTTPS 443<br/>ssm:StartSession"| ssm["AWS Systems Manager"]
  subgraph vpc["VPC, private subnets"]
    jumphost["EC2 jumphost<br/>tag Usage=jumphost<br/>SSM Agent, no inbound port"]
    rds[("RDS")]
    eks["EKS private<br/>API endpoint"]
    cache[("ElastiCache")]
    jumphost -->|"database port"| rds
    jumphost -->|"443"| eks
    jumphost -->|"cache port"| cache
  end
  jumphost -->|"outbound HTTPS 443<br/>(NAT or VPC endpoints)"| ssm
  1. Discover. airlock finds the target with the AWS APIs (rds describe-db-instances,
    eks describe-cluster, elasticache describe-*) and the jumphost with ec2 describe-instances,
    filtered on the jumphost tag.
  2. Tunnel. It starts aws ssm start-session with the AWS-StartPortForwardingSessionToRemoteHost
    document. Systems Manager relays the traffic to the jumphost's SSM Agent, which opens the
    connection to the target's endpoint inside the VPC.
  3. Connect. Your tools connect to localhost:<port>.

[!NOTE]
Nothing is exposed to the internet. The jumphost has no public IP and no inbound rule; it only
opens outbound connections to Systems Manager.

🧭 Usage

airlock                              # interactive wizard
airlock rds my-db 5432               # tunnel to an RDS instance on localhost:5432
airlock eks my-cluster 15432         # tunnel to a private EKS API endpoint
airlock elasticache my-cache 6379    # tunnel to an ElastiCache cluster
airlock dynamodb eu-west-3           # DynamoDB tables of a region, for the AI assistant (MCP)
airlock s3                           # S3 buckets of a profile, for the AI assistant (MCP)
airlock logs eu-west-3               # CloudWatch Logs of a region, read-only, for the AI assistant (MCP)
airlock sqs eu-west-3                # SQS queues and SNS topics of a region, for the AI assistant (MCP)
airlock direct legacy-billing        # a direct database declared with airlock connection add
airlock docker pg                    # a database running in a local Docker container
airlock forward search.internal 443  # any host:port the jumphost reaches
airlock exec rds my-db -- npm run migrate   # run a command with the tunnel open
airlock up                           # every target of the project's .airlock.json
airlock doctor                       # check the installation, the config and the AWS profiles

airlock --help and airlock <command> --help list every command and flag.

📚 Documentation

Page What it covers
First launch The setup wizard of the first run, airlock setup
Installing and updating Prerequisites, installer options, manual install, build from source, shell completion, airlock update, install tracking, airlock uninstall
Connecting Commands and flags, the wizard, regions, MFA profiles, database sign-in and the OS keychain, EKS, forwarding any host, parallel sessions and their keys, helper commands
Running commands and project stacks airlock exec, .airlock.json, airlock up and airlock down
Direct and Docker databases Databases reached without jumphost, and local Docker databases and caches
AI access with MCP The tools of each engine, AI client registration, the MCP gateway, the agent skill, credentials, write access and the audit trail
Configuration config.json keys, airlock config, the Settings screen, language, sharing settings with your team
Daemon mode Sessions kept by a background daemon
Organization config Company-wide settings and locks
Setting up a jumphost The EC2 instance airlock tunnels through
Troubleshooting airlock doctor
Upgrading Files and keys of older versions

🛠 Contributing

Contributions are welcome: see CONTRIBUTING.md to build airlock, run the checks,
sign off your commits and name your pull request. Bugs and feature requests go to
issues, vulnerabilities to
SECURITY.md, never to a public issue. Everyone taking part follows the
Code of Conduct.

📄 License

airlock is licensed under the Apache License 2.0, copyright 2026 n2jsoft. Release archives also ship
NOTICE and THIRD_PARTY_LICENSES, the licenses of the Go modules compiled into airlock
(make licenses writes it).

Yorumlar (0)

Sonuc bulunamadi