Skip to content

the missing-required-secret error discards the resolver SOURCE and never names the queried coordinate: "locked", "unreachable" and "absent" all read as "store them" #61

Closed

Description

@aitrawog

Finding (RCA, R1) — the missing-required-secret error throws away the one fact that diagnoses it

checkMissingSecretRequires (config_setup_helpers.go:109) decides everything from Resolved:

resolvedByName := make(map[string]bool, len(resolutions))
for _, r := range resolutions {
    if r.Resolved { resolvedByName[r.Name] = true }
}
…
fmt.Fprintf(os.Stderr, "\nStore them in the credential backend, or pass -e once to auto-import:\n\n")

Meanwhile secretResolution carries the resolver's Source — keyring | config | env | locked | unavailable | default (sdk/deploykit/secret_provision.go, SecretResolution) — and it is discarded.
So three very different situations render as one message that tells the operator to store a value:

what happened what the operator is told
the credential is genuinely absent store it — correct
the keyring is LOCKED (needs an interactive unlock) store it — they re-store a credential they already have
the keyring is UNREACHABLE (no session bus, broken collections) store it — the store can never be read
the credential lives at a DIFFERENT coordinate store it — silently at the wrong place

The message also never names the coordinate that was queried, although the dependency carries it
(dep.Key, e.g. charly/api-key/qdrant) — so an operator cannot tell which of the three cases they are in
without reading the source.

Measured consequence. opencharly/sdk#526 was reported as "a secret_require with an explicit key: is
not resolved from that coordinate", and the reporter's evidence was this error plus a 44-char value at
charly secrets get charly/api-key qdrant. Re-measured today, the coordinate is intact end to end — the
shipped image's label carries it:

$ charly box labels ghcr.io/opencharly/owui-qdrant-proof:2026.319.0931 --format ai.opencharly.secret_require
[{"name":"QDRANT__SERVICE__API_KEY",…,"key":"charly/api-key/qdrant"}, …]
$ plugin-secrets get charly/api-key qdrant
26v5TgbYRsrrhgoQe_qDZerkqxVY2kx93hEU_xKlPoE=

so the "coordinate was lost" branch is not reproducible on today's build — and the diagnostic being unable
to say WHICH branch it hit is why that could not be told from the error. The issue's own "Missed control"
line says exactly this: "No bed-side error distinguishes 'credential absent' from 'looked at the wrong
coordinate'"
.

Blast radius. Every charly config / bed [config] failure for a required credential is
un-triageable: the operator's only remedy is to duplicate the credential at the default coordinate (which
is what sdk#526's workaround did), a silent second copy that then masks the real state.

Root fix. Render the queried coordinate for every missing required secret, and split the failure by
Source: when the resolver could not READ the store (locked / unavailable), say so and refuse to
advise a store operation; when the store was readable and the coordinate is empty, keep today's advice.

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

Activity

  1. self-assigned this
    on Nov 16, 2026
  2. aitrawog commented on Nov 16, 2026

    @aitrawog
    ContributorAuthor

    RESOLVED — landed as #63 (squash db11ae9), which also carries the R10 bed that
    proves both changed branches live (check-pod-secret-diagnostic: Arm A source: unavailable → "could not
    READ the credential store" with no store-it advice; Arm B readable-and-empty → the advice plus the
    coordinate).

    The three sibling findings this investigation produced are filed, not absorbed: #62 (a pod secret_require:
    does not auto-generate without --password=auto), #64 (a torn-down deploy leaves its podman secrets), #65
    (every opencharly/ ghcr package refuses anonymous pulls, which is why the repo's older bed cannot run on a
    clean host).

    opencharly/sdk#526 — the field report this diagnostic hid — is deliberately NOT closed: its underlying bed
    failure is not reproducible on today's build (the image label carries "key":"charly/api-key/qdrant", and
    that coordinate resolves), so closing it would assert a cause nobody has measured. The evidence is posted
    there with the ask to re-run the bed on the current pin.

    Agent: charly

    Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)

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