Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

clickhouse-security-basics

Skill by jeremylongshore

Hardens a ClickHouse deployment with restricted users, roles, row policies, network allowlists, TLS and audit logging. It is for admins securing ClickHouse, including multi-tenant setups.

  • Score 80
  • 3k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install clickhouse-security-basics

Built from the published package, never by AI.

git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace /tmp/tons-of-skills-marketplace && mkdir -p ~/.claude/skills && cp -r /tmp/tons-of-skills-marketplace/skills/.curated/clickhouse-security-basics ~/.claude/skills/clickhouse-security-basics

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install clickhouse-security-basics in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill walks through seven hardening steps for a ClickHouse deployment. The steps cover SQL-based user management, roles, row-level security for multi-tenant data, network access restrictions, TLS on the HTTPS port, query audit logging through system.query_log, and secure application connections. Each step gives a short summary and a minimal example, and the full copy-ready SQL, XML and client code is kept in separate reference files.

The skill is aimed at ClickHouse administrators who want to harden a deployment, create restricted users, enforce tenant isolation, or set network-level access controls. It ends with a security checklist to run before a deployment is treated as hardened. It points to a separate skill, clickhouse-prod-checklist, for backups, replication, quotas and monitoring.

Written from the project's SKILL.md and checked against it.

What it can do

  • Restricted usersCreates least-privilege users and revokes destructive verbs from application users.
  • RolesDefines data_reader, data_writer and schema_admin roles and checks grants with SHOW GRANTS.
  • Row-level securityIsolates multi-tenant data with CREATE ROW POLICY keyed on a custom tenant setting.
  • Network securityRestricts connection sources with HOST IP rules, users.xml allowlists or the ClickHouse Cloud IP Access List.
  • TLS configurationEnables the HTTPS port 8443 in config.xml with a server certificate and strict verification.
  • Audit loggingUses system.query_log to review queries and filters exception code 516 to find failed logins.
  • Secure app connectionsConnects over HTTPS with a minimal-privilege user and a password from a secret manager.

What you need

  • ClickHouse admin access
  • CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT=1 for SQL-based user management
  • Access to config.xml and users.xml for self-hosted deployments

Try asking

  • Create a read-only analyst user for the analytics database in ClickHouse
  • Write a row policy so each tenant only sees its own rows
  • Show me how to restrict a ClickHouse user to a specific IP range

Good to know

  • SQL HOST IP restrictions require ClickHouse 22.6 or later.
  • Full copy-ready code is in separate reference files, not in the main skill text.
  • SQL-based user management requires the CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT=1 setting.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/.curated/clickhouse-security-basics/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

Allowed tools: Read

  • SKILL.md5 KB
  • references/examples.md2 KB
  • references/implementation.md5 KB

Alternatives to clickhouse-security-basics

All alternatives →
hugging-face-datasetssickn33
94

Creates, configures and manages datasets on the Hugging Face Hub, including SQL-based querying and transformation. Built for people who edit dataset content and metadata directly, alongside the HF MCP server.

AAA Skill 50k
db-repairgarrytan
94

Diagnoses and repairs gbrain's Postgres access when a command or MCP result shows a GBRAIN_DB_ACCESS marker, or when the operator reports the brain database is down. It runs the hardcoded gbrain db-repair ladder and verifies the result with a re-probe.

AAA Skill 34k
alloydb-basicsgoogle
94

Manages clusters, instances, and backups for AlloyDB for PostgreSQL. Built for creating, configuring, and administering AlloyDB databases, not general PostgreSQL or Cloud SQL instances.

AAA Skill 26k
clickhouse-logs-queriessupabase
94

Writes, reviews and migrates Supabase logs queries against the ClickHouse logs table served by the logs.all.otel endpoint. Built for developers who write Logs Explorer SQL or convert older BigQuery logs queries.

AAA Skill 116k
fix-slow-queriespaperclipai
94

Diagnoses and fixes slow Paperclip PostgreSQL queries using Cloud and Neon evidence, local benchmarks, regression tests, and a pull request with passing checks. Built for engineers working on Paperclip.

AAA Skill 119k
prisma-8prisma
94

Guides AI assistants through Prisma 8 projects built on @prisma/orm-postgres, @prisma/orm-sqlite, or @prisma/orm-mongo. It covers data contracts, migrations, typed queries and runtime setup for developers on Prisma 8.

AAA Skill 48k

Compare with hugging-face-datasets, db-repair or alloydb-basics

clickhouse-security-basics: common questions

What does clickhouse-security-basics cover?

It covers user management, roles, row policies, network restrictions, TLS and query audit logging for ClickHouse. It describes seven hardening steps in order.

Does it handle multi-tenant data isolation?

Yes. Step 3 uses CREATE ROW POLICY to map each user to a tenant through a custom setting, so tenants see only their own rows.

How does it help find failed logins?

It queries system.query_log and filters for exception_code 516, which the skill describes as the way to hunt failed logins.

How do I install clickhouse-security-basics?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is clickhouse-security-basics free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is clickhouse-security-basics safe to use?

It scores 80 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to clickhouse-security-basics?

Similar skills: hugging-face-datasets, db-repair, alloydb-basics, clickhouse-logs-queries.

clickhouse-security-basics Install

Add to stack

Loading.