Skip to content

feat(rust): dangerous DML confirmation gate (#1885) - #1988

Merged
ZhuchkaTriplesix merged 1 commit into
epic/tauri-migrationfrom
issue/1885-dml-confirmation-gate
Nov 15, 2026
Merged

ZhuchkaTriplesix merged 1 commit into
epic/tauri-migrationfrom
issue/1885-dml-confirmation-gate

Conversation

@ZhuchkaTriplesix

Copy link
Copy Markdown
Member

Summary

  • sqlparser classifies DROP / TRUNCATE / unconditional DELETE|UPDATE
  • db_execute_query takes confirmed; without it returns typed NeedsConfirmation
  • Frontend respects Preferences → Confirm destructive SQL (dialog + retry)

Test plan

  • DELETE FROM t / DROP TABLE prompts; cancel leaves data; confirm runs
  • DELETE FROM t WHERE id = 1 runs without prompt
  • Prefs off: destructive SQL runs without dialog
  • cargo test --locked / pnpm typecheck / pnpm test

Closes #1885

DROP/TRUNCATE/unconditional DELETE|UPDATE return typed
NeedsConfirmation unless the UI passes confirmed=true.

Closes #1885
@github-actions github-actions Bot added parser Theme parser epic label: parser P1 High priority / Core capability security Security related tauri Tauri 2 / apps/tauri migration track rust Rust backend (src-tauri / crates) labels Nov 15, 2026
@github-actions github-actions Bot added this to the Tauri migration milestone Nov 15, 2026
@ZhuchkaTriplesix
ZhuchkaTriplesix merged commit 82e617f into epic/tauri-migration Nov 15, 2026
3 checks passed
@ZhuchkaTriplesix
ZhuchkaTriplesix deleted the issue/1885-dml-confirmation-gate branch November 15, 2026 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P1 High priority / Core capability parser Theme parser epic label: parser rust Rust backend (src-tauri / crates) security Security related tauri Tauri 2 / apps/tauri migration track

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant