Skip to content

fix(cli): refuse missing managed mounts when the desired volume already exists #4429

Closed

Description

@yannickmonney

The additive-mount admission in 9bd1e20 checks the wrong Docker volume name.

At tools/cli/src/lib/deployment/runtime-apply.ts:385-386, expected named mounts already store a fully qualified source (for example tale_static-assets). Line 422 prefixes that value again and queries tale_tale_static-assets, while projectVolumeSet contains the actual Docker names such as tale_static-assets.

Consequently a release transition or legacy adoption with a missing container mount and an already-existing desired volume passes the new additive predicate. The intended invariant, stated at lines 415-416, requires refusal because this is not proof of an empty new store. This also affects pending-operation retries admitted with the inventory. Normal same-bundle ready receipts and post-up strict verification still refuse missing mounts.

Static reproduction: project=tale; desired mount=static-assets:/app/static-assets; container retains its other correct mounts but lacks this mount; inventory contains tale_static-assets. Expected: refuse before mutation. Actual predicate: !Set([tale_static-assets]).has(tale_tale_static-assets) === true. No live data loss is claimed.

Suggested repair: query projectVolumes.has(mount.source), using the already-qualified identity. Add a regression for existing desired volume + missing mount, with no mutations, and retain coverage for genuinely absent additive volumes, missing bind mounts, ready-receipt drift and pending retries.

Severity: P2 (data-custody correctness); release review requests changes. Source-only review under TALE-966; no tests or deployments run. Deduplication searched volume, additive, and runtime custody issues; no matching existing issue found.

Activity

  1. added a commit that references this issue on Oct 6, 2026
    2f3d12a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    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