/starlake-skills:securefrom starlake-skills
Apply row-level security (RLS) and column-level security (CLS) with `starlake secure` — mask PII, hash or encrypt sensitive columns, and restrict which users or groups see which rows, columns, and tables
Ships in starlake-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Applies Row Level Security (RLS) and Column Level Security (CLS) policies defined in your table configurations. Security policies control which users or groups can see which rows and columns.
starlake secure [options]
--domains <value>: Comma-separated list of domains to apply security (default: all)--tables <value>: Comma-separated list of tables to apply security (default: all)--accessToken <value>: Access token for authentication (e.g. GCP)--options k1=v1,k2=v2: Substitution arguments--scheduledDate <value>: Scheduled date for the job, format: yyyy-MM-dd'T'HH:mm:ss.SSSZ--reportFormat <value>: Report output format: console, json, or htmlSecurity policies are defined in table configuration files:
Filter rows based on user/group membership:
# In table.sl.yml
table:
rls:
- name: "USA only"
predicate: "country = 'USA'"
grants:
- "group:usa_team"
- name: "Recent data"
predicate: "order_date > CURRENT_DATE - INTERVAL 90 DAY"
grants:
- "user:[email protected]"
Restrict access to sensitive columns:
# In table.sl.yml
table:
attributes:
- name: "email"
type: "string"
accessPolicy: "PII"
- name: "credit_card"
type: "string"
accessPolicy: "SENSITIVE"
Grant table-level permissions:
# In table.sl.yml
table:
acl:
- role: "roles/bigquery.dataViewer"
grants:
- "user:[email protected]"
- "group:[email protected]"
- "serviceAccount:[email protected]"
Privacy transformations are applied during data loading to protect sensitive fields. Configure per attribute:
attributes:
- name: "ssn"
type: "string"
privacy: "HIDE" # Never stored: column is dropped
- name: "email"
type: "string"
privacy: "SHA256" # One-way hash
- name: "ip_address"
type: "string"
privacy: "MD5" # Anonymize
- name: "phone"
type: "string"
privacy: "AES" # Reversible encryption
| Type | Description | Reversible |
|---|---|---|
HIDE | Column is completely removed from output | N/A |
MD5 | MD5 hash of the value | No |
SHA1 | SHA-1 hash of the value | No |
SHA256 | SHA-256 hash of the value | No |
SHA512 | SHA-512 hash of the value | No |
AES | AES encryption (requires encryption key) | Yes |
Configure Column-Level Security policies at the application level for BigQuery:
# metadata/application.sl.yml
application:
accessPolicies:
apply: true
location: EU
taxonomy: RGPD
This enables BigQuery Data Catalog policy tags. Attributes with accessPolicy will be tagged accordingly, restricting column access to authorized users.
starlake secure
starlake secure --domains starbake
starlake secure --domains starbake --tables customers,orders
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
75 skills in this plugin
/acl-dependenciesVisualize access control with `starlake acl-dependencies` — graph which users and groups can access which tables, from the ACL and RLS (row-level security) definitions in your YAML, output as SVG, PNG, or JSON/autoloadInfer schemas from files in the incoming directory and load them into the warehouse in one step with `starlake autoload`. Use for quick starts or new data files with no YAML table definitions yet; generates the table configs automatically./bootstrapCreate a new Starlake project with `starlake bootstrap` — scaffold the standard metadata/load/transform directory structure and starter config from a template (quickstart, simple). Use when initializing or setting up a new project.Generated from the plugin's indexed repository (starlake-ai/starlake-skills) — no native marketplace selected
npx claudepluginhub p/starlake-ai-starlake-skills