Weekly ClickHouse Cloud security and access review email
Every Friday, get an emailed brief of risky API keys, new or removed team members, and high-risk changes in your ClickHouse Cloud organization.
Every Friday at 9am, run a security and access review of my ClickHouse Cloud organization and email a prioritized brief to my security team. This needs judgement about which keys, members, and events actually matter, so weigh each finding and explain why it made the list.
First gather the current state of the organization. Use ClickHouse Cloud List API Keys to pull every API key with its role and metadata, List Organization Members to pull the current members, and List Organization Activities to pull the recent audit trail (scope it to the past week, since these activities accept a from_date and to_date). ClickHouse Cloud resources are org-scoped, so resolve the organization first if needed.
Then produce a prioritized brief with three sections. Section one, API keys worth rotating: flag admin-role keys first, because an admin key can create and delete services and other keys, and flag keys that look stale or unused. Note that a key's secret is only shown once at creation, so unknown or long-idle keys are a genuine risk. Section two, membership changes: list members who were added or removed this week, based on the audit trail. Section three, high-risk audit events: call out things like a service being deleted, a new admin key being created, or a member removed.
Sort every item across the brief by risk, highest first, and give each one a single-line reason explaining why it matters and what to do about it (for example, rotate, review, or confirm the change was intended). Keep it scannable so the reader can act quickly.
Finally, send the brief to my security team using Gmail Send a Message, with a clear subject line that includes the date range covered. Let the recipient email address and the risk thresholds be configurable: the recipient defaults to my security team's address, and the thresholds control things like how many days without use makes a key count as stale and which activity types are treated as high risk.
Additional information
What does this prompt do?
- Scans your ClickHouse Cloud organization's API keys, team members, and recent audit history every Friday morning.
- Flags admin-level or seemingly unused API keys worth rotating, and shows who joined or left the organization this week.
- Highlights high-risk changes, such as a service being deleted or a new admin key being created.
- Emails your security team one prioritized brief, sorted by risk with a one-line reason for each item.
What do I need to use this?
- A ClickHouse Cloud account with an API key that can read your organization's keys, members, and activity.
- A Gmail account to send the brief from.
- The email address of the person or team that should receive the review.
How can I customize it?
- Change the day and time it runs (default is every Friday at 9am).
- Set who receives the brief, or send it to a whole security distribution list.
- Adjust what counts as risky, such as how many days without use makes a key look stale, or which change types are treated as high risk.
Frequently asked questions
What does the weekly review actually check?
How does it decide which API keys are risky?
Does this change anything in my ClickHouse Cloud account?
Can I choose who receives the email and how strict it is?
Can I run it more or less often than weekly?
Related templates
Stay on top of who can touch your data.
Get a prioritized ClickHouse Cloud access review in your inbox every week, so risky keys and unexpected changes never slip by.