SShortSingh.
Back to feed

Securing Multi-Tenant Webhook Receivers with Signature Checks and Replay Protection

0
·6 views

This guide explains how to verify HMAC webhook signatures and protect multi-tenant receivers against replayed requests. It recommends including a timestamp in the signed content so old signatures cannot be reused, and identifying the tenant and its secret before trusting the payload. Verification should run on raw request bytes using constant-time comparison, and duplicate event IDs should be recorded and skipped, with a 200 response. The article also covers secret rotation with overlapping active secrets and suggests asymmetric signatures like Ed25519 as an option, while listing common mistakes and best practices.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Study Finds Human Code Reviewers Still Outperform AI on Key Feedback Measures

A study of 300 open source GitHub projects covering nearly 279,000 review conversations found that suggestions from human reviewers were adopted at a rate about 40 percentage points higher than those from AI agents. Humans also offered feedback the AI agents did not, particularly on knowledge transfer, and over half of unadopted AI suggestions were judged incorrect or resolved through other fixes. A separate study comparing ChatGPT-4 with human reviewers on 240 pull requests found the model caught only about 10% of quality issues people reported, though it flagged additional concerns. An controlled experiment also showed that automated reviews drew reviewers' attention toward flagged code locations without saving time. A June 2026 paper argues that coding agents have reached a capability level where human review is no longer necessary, but the author favors the empirical findings.

0
ProgrammingDEV Community ·

What to do after approving a fake Acrossbridge site: revoke or move assets?

The guidance says the right response depends on what the attacker could authorize, not only on the site itself. If the exposure is limited to a token allowance and your keys and device remain secure, revoking that allowance on each affected chain may be sufficient. If a recovery phrase or private key was exposed, malware may control signing, or other authority cannot be resolved, assets should be moved to a new wallet derived from a newly created recovery phrase on a clean device. Users should first stop interacting with the site and record transaction hashes, affected networks, and signature details from their wallet. Disconnecting the site does not remove on-chain permissions, and direct transfers cannot be reversed by revoking an allowance. Bridge support will never legitimately ask for a recovery phrase or private key.

0
ProgrammingDEV Community ·

Zwei Fragen entscheiden über die Sicherheit von KI-Assistenten

The author argues that an assistant's safety depends less on the underlying model than on the exact point in the code where a suggestion becomes an action. Two properties are proposed to classify each action: whether it has external effects, such as sending an email or sharing a file, and whether it can be reversed. Actions that are harmless on both counts can proceed quickly, while externally visible and irreversible ones should get a separate review step with an explicit approval. The piece notes that the FOX WIZ app applies this approach by requiring a confirmation protected by Face ID. The author adds that for every connected service one must honestly determine whether an action can be undone, even if the answer is only possible while the service cooperates.

0
ProgrammingDEV Community ·

Obsidian Launches Official Connectors for Claude Code Using Agent Skills

Obsidian announced on 25 November 2026 an official connector package, distributed as Agent Skills in its open-source obsidianmd/obsidian-skills repository rather than as an MCP server. Claude Code users can install it with two plugin commands, while a vault opened as a plain folder already lets Claude read and write Markdown notes without any plugin. The package includes skills covering Obsidian's note formats, Bases, and Canvas, along with others that drive the desktop app's CLI or Obsidian Headless. The connectors page also lists numerous other supported agents, and an official Obsidian MCP server is reportedly planned without a date. Because the connectors themselves transmit nothing, data reaches a model only through the notes the agent reads, so users must keep their model API keys out of the vault.