✨ Added Danger Zone action to reset all authentication#28027
Conversation
|
It looks like this PR contains a migration 👀 General requirements
Schema changes
Data changes
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (2)
💤 Files with no reviewable changes (1)
WalkthroughThis PR promotes the 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## feat/danger-zone-reset-actions #28027 +/- ##
===============================================================
Coverage 73.76% 73.77%
===============================================================
Files 1526 1528 +2
Lines 129268 129338 +70
Branches 15484 15489 +5
===============================================================
+ Hits 95355 95417 +62
- Misses 32975 32983 +8
Partials 938 938
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
83adc5c to
4633495
Compare
106663a to
ef57ccb
Compare
A new button under Settings → Advanced → Danger Zone that lets an owner rotate every API key, lock every staff user, and destroy every active staff session in a single click. Active staff hit the standard reset-on-signin flow on their next sign-in. Suspended staff have their password rotated but stay suspended. Members aren't affected. For recovery after a suspected credential compromise: instead of editing the database directly to invalidate keys and force password resets, an owner can run the full rotation from the admin UI. The action writes an audit row recording who triggered it.
ef57ccb to
dd89eba
Compare
Ghost now includes a one-click "Reset all authentication" action in Settings → Advanced → Danger Zone. After a suspected credential compromise (a leaked API key, a former staff member who shouldn't retain access, a stolen admin session) owners can rotate every API key, lock every staff user, and destroy every active staff session at once.
Active staff users hit the standard password-reset flow on their next sign-in. Suspended staff users stay suspended but still have their password rotated, so a leaked credential can't be reused if they're ever unsuspended. Members aren't affected.
The action records the operator who triggered it in the audit log.