clickhouse-enterprise-rbac
Skill by jeremylongshore
Configures ClickHouse enterprise access control with SQL users, roles, row policies, column grants, quotas and settings profiles. It is for teams setting up multi-user access, tenant isolation or enterprise security on ClickHouse.
Install clickhouse-enterprise-rbac
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-enterprise-rbac ~/.claude/skills/clickhouse-enterprise-rbacRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install clickhouse-enterprise-rbac in Claude Code
git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace /tmp/tons-of-skills-marketplace && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/tons-of-skills-marketplace/skills/.curated/clickhouse-enterprise-rbac ~/.gemini/antigravity-cli/skills/clickhouse-enterprise-rbacAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install clickhouse-enterprise-rbac in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill guides the setup of role-based access control in ClickHouse using SQL statements. It covers creating users with authentication methods and network host restrictions, building a role hierarchy from base roles into job roles, and adding row policies that limit each user to rows matching a predicate.
The source also outlines column-level grants to hide PII, quotas that cap queries and rows per interval, and settings profiles that set resource ceilings. It lists verification commands such as SHOW GRANTS and SHOW ACCESS. The skill is aimed at administrators who need multi-tenant isolation or least-privilege access on ClickHouse.
Written from the project's SKILL.md and checked against it.
What it can do
- Create usersCreates ClickHouse users with a chosen authentication method, host restriction and per-user resource settings.
- Build role hierarchyComposes base roles such as data_reader into job roles and sets default roles for users.
- Row-level securityUses row policies so each user sees only rows that match a USING predicate.
- Column-level grantsGrants SELECT or INSERT on specific columns to hide PII or limit writes.
- QuotasCaps queries, read rows, result rows and execution time per interval for a user.
- Settings profilesEnforces readonly, memory, thread and concurrency ceilings, with a separate ETL profile.
- Application wrapperDescribes a per-role client factory so read, write and admin operations use distinct users.
What you need
- ClickHouse with access_management = 1 enabled
- An admin user with GRANT OPTION
Try asking
- Create a ClickHouse row policy so tenant_acme only sees tenant_id = 1 rows.
- Set up a ClickHouse analyst role that hides PII columns from the events table.
- Show me how to cap query memory and execution time for an app user in ClickHouse.
Good to know
- Steps 4 to 7 are summarized in this file and fully specified in a separate reference file.
Security check
B- Allowed to use Write without limitsIn
SKILL.md
Checked automatically: skills/.curated/clickhouse-enterprise-rbac/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: ReadWrite
-
SKILL.md6 KB -
references/examples.md2 KB -
references/implementation.md6 KB
Alternatives to clickhouse-enterprise-rbac
All alternatives →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.
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.
Manages clusters, instances, and backups for AlloyDB for PostgreSQL. Built for creating, configuring, and administering AlloyDB databases, not general PostgreSQL or Cloud SQL instances.
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.
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.
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.
Compare with hugging-face-datasets, db-repair or alloydb-basics
clickhouse-enterprise-rbac: common questions
Does this skill work with ClickHouse Cloud?
The source says access_management is enabled by default in Cloud. It requires an admin user with GRANT OPTION.
Which authentication methods does it cover for ClickHouse users?
The source names sha256_password for standard use, double_sha1_password for the MySQL wire protocol, and bcrypt_password for admin accounts.
How does the skill handle tenant isolation?
It uses row policies with a USING predicate, so each tenant role reads only its matching rows. The source gives a two-tenant example on an analytics.events table.
How do I install clickhouse-enterprise-rbac?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is clickhouse-enterprise-rbac free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is clickhouse-enterprise-rbac safe to use?
It scores 79 of 100. Grades: maintenance A, licence A, quality A. Security check: grade B (allowed to use write without limits). Review the code before you install. How grades work.
What are alternatives to clickhouse-enterprise-rbac?
Similar skills: hugging-face-datasets, db-repair, alloydb-basics, clickhouse-logs-queries.
