altinity-expert-clickhouse-grants
21
总安装量
3
周安装量
#17535
全站排名
安装命令
npx skills add https://github.com/altinity/skills --skill altinity-expert-clickhouse-grants
Agent 安装分布
amp
3
opencode
3
kimi-cli
3
codex
3
github-copilot
3
claude-code
3
Skill 文档
Diagnostics
Run all queries from the file checks.sql and analyze the results.
Propose Minimal Grants
Provide the smallest set of GRANT statements that match observed needed_grant values. Prefer role-based grants when the user already uses roles.
Example pattern:
-- Direct grants
GRANT SELECT ON system.processes TO user_x;
GRANT SELECT ON INFORMATION_SCHEMA.COLUMNS TO svc_y;
GRANT CLUSTER ON *.* TO svc_z;
-- Role-based grants (preferred)
GRANT SELECT ON system.processes TO role_analytics;
GRANT role_analytics TO user_x;
Post-Upgrade Compatibility Checks
Verify access_control_improvements settings, which can change privilege requirements:
select_from_system_db_requires_grantselect_from_information_schema_requires_granton_cluster_queries_require_cluster_grant
If these are enabled post-upgrade, users may require new explicit grants for system.*, INFORMATION_SCHEMA.*, or CLUSTER.