Skip to content

a secret_require: auto-generates on a VM/host deploy but NOT on a pod deploy unless --password=auto — while every candy description and the secrets skill promise it unconditionally #62

Open

Description

@aitrawog

Finding (RCA, R1) — a secret_require: does NOT auto-generate on a POD deploy, though every candy and the skill say it does

secret_require: is documented as self-provisioning. opencharly/layer-qdrant's own description:
declares it for the key this issue's sibling measured:

secret_require:
    - name: QDRANT__SERVICE__API_KEY
      description: >-
          Qdrant admin API key. Auto-generated 32-byte hex on first deploy
          and persisted. …

and /charly-build:secrets states it unconditionally: "secret_require: entries that miss everywhere
(env + credential store) auto-generate … No operator setup required"
.

The two deploy paths disagree:

path auto-generates a missing required secret?
install-plan targets (host / VM / SSH) — deploykit.EnsureCandySecret yes, unconditionally (if !required { return "", source } then GenerateAndStoreSecret)
pod target — deploykit.ProvisionPodmanSecrets only when --password=auto, because plugin-deploy-pod calls it with autoGen := c.Password == "auto" (config_setup.go:374), and the generator branch is case autoGenerate: (secret_provision.go:122)

So on a pod, a secret_require: that misses everywhere stops the deploy:

Error: <box> requires the following credential-backed secret(s):
  QDRANT__SERVICE__API_KEY — …
Store them in the credential backend, or pass -e once to auto-import

with no mention that --password=auto is the flag that would have produced it — while the same deploy on a
VM target would have generated it silently. A fresh host running a pod bed is therefore a different product
from a fresh host running a VM bed, for the same manifest.

This is a product-vs-prose divergence (R4), and the prose is the intent: the candy says "auto-generated
on first deploy and persisted", so the product must do that. Two legal shapes, and it is an owner decision
which:

  1. Pod parity: a secret_require that misses everywhere auto-generates on the pod path too (the
    install-plan behaviour), with --password=auto reduced to what it additionally means for candy-owned
    secret: entries; or
  2. Prose correction: --password=auto becomes part of the documented contract — every candy
    secret_require description and the skill say it, and charly config says why it stopped.

(1) is the parity the rulebook prefers (one behaviour, R2); (2) is defensible if generating an admin API key
without an explicit opt-in is judged too surprising. I am not choosing unilaterally: silently minting
credentials is a security-shaped decision.

Related. opencharly/sdk#526 is the report that surfaced this from the field (its bed's [config] phase
died asking for QDRANT__SERVICE__API_KEY), and #61 is the diagnostic gap that
made the two indistinguishable.

Assisted-by: DeepSeek Harness deepseek-v4.1-flash (analysed on a live system)

Activity

  1. self-assigned this
    on Nov 16, 2026
  2. added
    category:delivery
    type:fix
    on Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

category:deliverytype:fix

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions