Skip to content

Restrict free-form deployment metadata (tenantId, category, deploymentSource) #28

Todo

Description

@schmunk42

Split out of #18 ("Free-form deployment metadata").

Problem

tenantId, category and deploymentSource of a deployment are free strings taken from the caller (DeploymentBundleProcessor, the upload processors and the CLI upload commands). deploymentSource can be spoofed, and on a multi-tenant engine a caller can deploy into any tenant.

Proposal

  • Set or prefix deploymentSource server-side (e.g. the transport and the acting user), instead of taking it from the caller.
  • Check tenantId and category against an allowlist from the bundle configuration, or derive the tenant from the selected ApiConfiguration.
  • Decide per transport (HTTP, MCP, CLI) what a caller may still choose.

Open questions

  • Where the allowlist lives: bundle configuration, or the ApiConfiguration of the engine connection.
  • Whether this is a breaking change for consumers that set these fields today.

Activity

  1. self-assigned this
    on Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions