Skip to content

Idempotency key is sent in request body #111

@saxon134

Description

@saxon134

VideosResource.create() and TasksResource.create() derive the Idempotency-Key header from params.get("idempotency_key") but also pass the same params mapping unchanged into _payload(), so calls like tasks.create(type="x", idempotency_key="idem") include idempotency_key in the JSON body as well as the header. Filter header-only params before building the sync and async create payloads.

File: src/globalrouter/_resources.py

Line: 335

Severity: medium

Summary: idempotency key leaked into create payloads

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions