Skip to content

fix: remove chain reset guard feature#37

Merged
Cordtus merged 1 commit into
mainfrom
fix/remove-reset-guard-origin
Jan 23, 2026
Merged

fix: remove chain reset guard feature#37
Cordtus merged 1 commit into
mainfrom
fix/remove-reset-guard-origin

Conversation

@Cordtus

@Cordtus Cordtus commented Jan 23, 2026

Copy link
Copy Markdown
Owner

Summary

  • Remove automatic database reset functionality that could wipe production data when chain restart is detected
  • This feature posed a security risk by allowing unauthenticated database truncation
  • Remove related components, scripts, Docker services, and configuration

Changes

  • Delete scripts/chain-reset-guard.sh
  • Delete src/components/common/reset-notice.tsx UI component (was orphaned - import existed but file was missing)
  • Remove chain-reset-guard Docker service from docker-compose.yml
  • Remove resetNotice config and RESET_GUARD_*/VITE_RESET_NOTICE_* environment variables
  • Update documentation to remove reset guard references

Remove automatic database reset functionality that could wipe production
data when chain restart is detected. This feature posed a security risk
by allowing unauthenticated database truncation.

Removed:
- scripts/chain-reset-guard.sh - auto-truncate script
- src/components/common/reset-notice.tsx - UI banner component (orphaned)
- Docker chain-reset-guard service
- resetNotice config and RESET_GUARD_*/VITE_RESET_NOTICE_* env vars
- Related documentation
@Cordtus Cordtus merged commit e52eb60 into main Jan 23, 2026
4 checks passed
Cordtus added a commit that referenced this pull request Feb 5, 2026
- Add JailingEvent and ValidatorJailingEvent types to API
- Add getValidatorJailingEvents and getRecentValidatorEvents methods
- Add Jailing Events tab to validators list page
- Add Jailing History card to validator detail page
- Graceful error handling when block results not available
@Cordtus Cordtus deleted the fix/remove-reset-guard-origin branch February 13, 2026 23:50
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.

1 participant