Index of every page on this site: llms.txt
All skills
jeremylongshore avatar

/flexport-webhooks-events

@0d57af8
Run it yourself

Verify Flexport webhook signatures on the raw request body and reconcile real event types. Use when building a receiver, rotating webhook secrets, processing shipment or purchase-order events, or recovering delivery gaps. Trigger with: "verify Flexport webhook", "handle Flexport event", "reconcile webhook gap".

Use this Skill: https://skilld.dev/gh/jeremylongshore/tons-of-skills-marketplace/flexport-webhooks-events

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈85 tokens for metadata: the name and description. ≈877 when used: this file. ≈215 more on demand in 1 file.

Description uses 4.2% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈339 characters, or 4.2%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Flexport Webhook Integrity and Reconciliation

Overview

Authenticate before parsing. Flexport documents both SHA-1 and SHA-256 signatures, with SHA-256 recommended in X-Hub-Signature-256; compare against the raw UTF-8 body and treat webhook delivery as a notification that may require API reconciliation.

Prerequisites

  • Unique receiver URL and high-entropy webhook secret
  • Framework support for raw request bytes before JSON parsing
  • Allowlisted slash/hash event types and idempotency store

Instructions

Step 1: Register deliberately

Configure the callback and secret in Flexport account Settings. Record the intended event types and owner.

Step 2: Capture raw bytes

Read the exact request body before middleware transforms encoding or JSON layout.

Step 3: Verify SHA-256

Compute HMAC-SHA256 with the stored secret, parse X-Hub-Signature-256, reject malformed or unequal-length inputs, and use constant-time comparison.

Step 4: Acknowledge quickly

After authentication and durable enqueue, return HTTP 200 promptly. Keep business processing out of the request path.

Step 5: Deduplicate and route

Use provider event identity when present or a stable payload digest. Allow only documented names such as /shipment#created or /purchase_order#updated.

Step 6: Reconcile gaps

Use authorized REST /events or resource reads when evidence indicates a delivery gap; do not invent a webhook replay endpoint or retry schedule.

Authentication

REST calls authenticate with a cached OAuth 2.0 client-credentials Bearer token using audience https://api.flexport.com, or an explicitly accepted broad API key. Use distinct credentials per workload and never log credentials or tokens. MCP calls use the authenticated connection to https://mcp.flexport.com/mcp and remain subject to each tool's documented account permissions.

Tool Discipline

Use Read and Grep for discovery and evidence. Use Write or Edit only for the approved artifact, code, configuration, test, or receipt described by this workflow; do not make an unapproved Flexport-side change.

Output

  • Scoped decision or implementation artifact
  • Redacted operation and validation receipt
  • Failure, rollback, and follow-up ownership record

Return a machine-reviewable receipt in this shape; adapt the operation values, but never place credentials or provider payloads in it:

surface: rest-v3
operation: shipment-read
decision: approved
outcome: verified
evidence:
  release_sha: recorded-out-of-band
  provider_reference: redacted
rollback_owner: logistics-platform

Examples

The receiver verifies X-Hub-Signature-256 over untouched bytes, durably enqueues /shipment_leg#departed, returns 200, and lets a worker reconcile the referenced shipment before updating local state.

Error Handling

Failure Response
Signature missing or malformed Return an authentication failure and store no payload.
Digest lengths differ Reject before constant-time comparison rather than throwing.
Unknown event type Quarantine metadata and compare with current event documentation.
Duplicate delivery Return success after confirming the prior durable operation.

Resources

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warning2mo3 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    This skill provides secure, best-practice implementation patterns for handling Flexport webhooks, including HMAC signature verification and idempotency logic.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: MEDIUM · 1 issue

Signed by skilld at 0d57af8. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 2 months ago
What it can do
Reads files Edits files
Modelinherit
version
2.0.0
argument-hint
[receiver-event-types-and-secret-alias]
model
inherit
All 4 allowed tools
ReadGrepWriteEdit
Other metadata
effort
high
author
Jeremy Longshore <jeremy@intentsolutions.io>
tags
[
  "saas",
  "flexport",
  "webhooks",
  "security"
]
compatibility
Requires a public HTTPS receiver, Flexport account Settings access, raw-body access, and a secret store.

README badge

README badge for jeremylongshore/tons-of-skills-marketplace/flexport-webhooks-events