Repository navigation
Automate daily Security Insights with admin review and month backfill - #16
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Security Insights currently require manual collection and entry. Add a daily Vercel collector for the official CISA KEV feed, with up to three new briefs per UTC day and an initial eight-draft backfill covering the past 30 days.
Admin → Blog gains collection and optional auto-publish switches, Sync now, Import past month, and sync status/errors. Defaults remain draft review, and backfills always stay unpublished. Public UI is unchanged. Shared Mongo leases and a persistent CVE ledger prevent concurrent duplicates, preserve edits, and prevent deleted imports from returning. Feed requests are fixed-source, bounded, timed out and validated; admin/cron endpoints require their existing authentication.
Eight past-month briefs have also been saved as drafts in the live admin panel using the existing editor. They will be recognized by their CVEs when the collector runs.
Validation: TypeScript, ESLint, 314 unit/component tests and production build locally; new CI MongoDB integration covers concurrency, backfill, persisted daily caps, edits, deletion and pause. Local build used database fallbacks because DATABASE_URL is unavailable locally; CI checks use a disposable replica set. Deployment uses the existing CRON_SECRET and Prisma postinstall; no new service or secret is needed. See docs/security-insights.md.