Skip to content

fix(configuration): arcjet protection silently disabled when ARCJET_KEY is missing - #16

Open
rixel-code[bot] wants to merge 1 commit into
masterfrom
rhea/fix-cmri18a1x000304jp8yzxj5rz-nxy9q2
Open

fix(configuration): arcjet protection silently disabled when ARCJET_KEY is missing#16
rixel-code[bot] wants to merge 1 commit into
masterfrom
rhea/fix-cmri18a1x000304jp8yzxj5rz-nxy9q2

Conversation

@rixel-code

@rixel-code rixel-code Bot commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Automated fix generated by Rhea for a MEDIUM CONFIGURATION finding:

Arcjet protection silently disabled when ARCJET_KEY is missing

Implementing fail-closed Arcjet enablement and documenting ARCJET_KEY for production.

Summary

Arcjet no longer fails open in production when ARCJET_KEY is missing.

Changes

  • lib/arcjet.ts: If appConfig.arcjet.enabled is true and ARCJET_KEY is unset, production throws at module load. Non-production still disables protection and logs a warning (one-time warn flag removed as unnecessary).
  • .env.example: Notes that the key is required in production when Arcjet is enabled.
  • DEPLOYMENT.md: New setup step for Arcjet and ARCJET_KEY in the Vercel env table.

Verification only reported missing deps/types in the limited checker environment, not issues from this change.


🤖 Generated by Rhea — review before merging.

@vercel

vercel Bot commented Jul 13, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
gridly Ready Ready Preview, Comment Jul 13, 2026 11:18am

@beetle-ai

beetle-ai Bot commented Jul 13, 2026

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @beetle command.

⚙️ Settings

Severity Threshold: Medium — Balanced feedback — medium and high severity issues only.Change in Settings
Custom Rules: Define your own review rules — Set Custom Rules
PR Summary: Configure PR summary — Change in Settings

📖 User Guide
  • Once repos are connected, PR analysis is automatically enabled. You can disable analysis for this repo from beetleai.dev/analysis
  • Comment @beetle on any PR to start analysis manually
  • Comment @beetle stop to stop any ongoing analysis

Follow us: Beetle · X · LinkedIn

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Message that will be displayed on users' first pull request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants