{"id":21066505,"url":"https://github.com/eidam/cf-workers-audit-logs","last_synced_at":"2025-05-16T03:31:55.919Z","repository":{"id":107400774,"uuid":"328993289","full_name":"eidam/cf-workers-audit-logs","owner":"eidam","description":"A Cloudflare Worker using KV and CRON trigger for checking and sending Audit Logs to Slack. 🚀","archived":false,"fork":false,"pushed_at":"2021-01-12T17:46:27.000Z","size":349,"stargazers_count":17,"open_issues_count":0,"forks_count":15,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-10T05:52:33.838Z","etag":null,"topics":["audit","cloudflare","logs","slack","workers"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eidam.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-01-12T13:20:37.000Z","updated_at":"2025-04-05T15:38:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"73ac5b5a-771d-409b-9ee6-32506d25fd4e","html_url":"https://github.com/eidam/cf-workers-audit-logs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eidam%2Fcf-workers-audit-logs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eidam%2Fcf-workers-audit-logs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eidam%2Fcf-workers-audit-logs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eidam%2Fcf-workers-audit-logs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eidam","download_url":"https://codeload.github.com/eidam/cf-workers-audit-logs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254462731,"owners_count":22075309,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["audit","cloudflare","logs","slack","workers"],"created_at":"2024-11-19T17:59:58.035Z","updated_at":"2025-05-16T03:31:55.888Z","avatar_url":"https://github.com/eidam.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cloudflare Worker - Audit Logs\n\nA Cloudflare Worker using KV and CRON trigger for checking and sending Audit Logs to Slack. Using **Cloudflare Workers**, **CRON Triggers,** and **KV storage**. 🚀\n\n![Slack notifications](./assets/slack_screenshot.png)\n\n## Pre-requisites\n\nYou'll need a [Cloudflare Workers account](https://dash.cloudflare.com/sign-up/workers) _(Free Tier is enough)_\n\nPrepare the following secrets\n\n- Cloudflare API token with `Account Logs:Read` and `Account Settings:Read` permissions _(yes, both needed)_\n- Slack incoming webhook\n\n## Deploy with Cloudflare Deploy Button\n\n[![Deploy to Cloudflare Workers](https://camo.githubusercontent.com/1f3d0b4d44a2c3f12c78bd02bae907169430e04d728006db9f97a4befa64c886/68747470733a2f2f6465706c6f792e776f726b6572732e636c6f7564666c6172652e636f6d2f627574746f6e3f706169643d74727565)](https://deploy.workers.cloudflare.com/?url=https://github.com/eidam/cf-workers-audit-logs)\n\n1. Click the button and follow the instructions, you should end up with a clone of this repository\n2. Navigate to your new **GitHub repository \u0026gt; Settings \u0026gt; Secrets** and add the following secrets:\n\n   ```yaml\n   - Name: CF_API_TOKEN (should be added automatically)\n\n   - Name: CF_ACCOUNT_ID (should be added automatically)\n\n   - Name: SECRET_CLOUDFLARE_API_TOKEN\n   - Value: your-read-cloudflare-api-token\n\n   - Name: SECRET_SLACK_WEBHOOK_URL\n   - Value: your-slack-webhook-url\n   ```\n\n3. Navigate to the **Actions** settings in your repository and enable them\n4. Trigger last GitHub action (or rerun failed) to deploy Workers 🎉\n\n## Known issues\n\n- **Max 10 message blocks in Slack message**.\n\n  It just might take a while to catch up with all the audit logs from a current day once you deploy the Worker.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feidam%2Fcf-workers-audit-logs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feidam%2Fcf-workers-audit-logs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feidam%2Fcf-workers-audit-logs/lists"}