fix(#24): Implement idempotency protection for critical write operations
Some checks are pending
Docker Test / test (push) Waiting to run

This commit is contained in:
OpenClaw 2026-03-07 00:13:31 +00:00
parent 6c25464369
commit b44e7bf46c
6 changed files with 281 additions and 4 deletions

View file

@ -0,0 +1,9 @@
-- Migration: 002_idempotency_table
-- Description: Add idempotency_keys table for handling idempotent requests
CREATE TABLE IF NOT EXISTS idempotency_keys (
id BIGINT PRIMARY KEY AUTO_INCREMENT,
key VARCHAR(255) NOT NULL UNIQUE,
response_body TEXT NULL,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);