Skip to content

charly secrets is not a registered command: plugin-secrets is absent from the compiled corpus, so every documented credential read-back fails #995

Closed

Description

@aitrawog

Problem

charly secrets is documented as the credential-store operator surface (there is a
secrets skill for it), layer-charly-* candies and several candy READMEs tell users
to run charly secrets get / set / list / gpg, and plugin-secrets declares
command:secrets. But the verb is not registered in the CLI, so every documented
invocation fails.

Evidence (measured on this host, both binaries)

$ charly --help | grep -c 'secrets'
0                      # no `secrets` verb in the command list

$ charly secrets get charly/secret WEBUI_ADMIN_PASSWORD
Usage: charly <command> [flags]
OpenCharly — The agentic DevOps tool …
                       # usage error, not a secret read

$ charly secrets get charly/secret WEBUI_ADMIN_PASSWORD   # from a candy-loaded project dir
Usage: charly <command> [flags]      # same

Same result with the local charly/bin/charly (v2026.281.1057) and with a binary built
from charly origin/main (2026.293.1538), so this is not a stale-binary artifact.

Mechanism: plugin-secrets is absent from the compiled-plugins corpus
(charly/charly/charly.yml → 0 hits for plugin-secrets, while sibling command
plugins are listed), so no command:secrets provider is compiled in, and nothing in
the default project set loads it as an external plugin either.

Blast radius

  • opencharly/pod-openwebui's README + skill document
    charly secrets get charly/secret WEBUI_ADMIN_PASSWORD as the way to read the
    auto-provisioned Open Web UI admin password, and its entrypoint's error hint tells
    users to run charly secrets set …. On a deploy of that candy the password is
    provisioned into the credential backend and injected as the podman secret
    charly-openwebui-webui-admin-password, but the documented read-back fails.
  • The same read-back idiom appears across the layer-charly-* family, so the failure
    is not specific to one candy.

Root fix (product-first)

Either compile plugin-secrets into the binary (add it to the corpus and its go.mod
require, per the compiled-plugin pattern) or make the CLI resolve command:secrets
as an external plugin by default. The secrets skill and every candy README that
documents the verb are the same occurrence set and move with it (R2).

Until then the workaround a user has is the credential backend itself
(~/.config/charly/config.yml → keyring_keys: charly/secret/<NAME>, value in the
Secret Service), which is exactly what should not be the documented path.

Found while bumping pod-openwebui to open-webui 0.12.3 (opencharly/pod-openwebui#12);
the docs there now state the dependency instead of asserting the unavailable command.

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

Activity

  1. aitrawog commented on Oct 20, 2026

    @aitrawog
    ContributorAuthor

    Fixed by #1002, merged as v2026.293.2238.

    The suggested fix in this issue was wrong, and the PR records the correction. I wrote "compile plugin-secrets into the corpus". Measured on a throwaway worktree: adding plugin-secrets to compiled_plugins: and pinning its go.mod require builds and generates cleanly, and still leaves the verb unregistered — because plugin-secrets advertises verb:credential only, and command:secrets is deliberately absent from Describe, served by syscall.Exec-ing the plugin binary in CLI mode.

    The real mechanism: those words are WELDED command plugins — scripts/host-command-plugins.txt is their single source, every native package bakes them beside the binary at /usr/lib/charly/plugins, and a baked .providers manifest is what puts the word in the CLI grammar. A dev/worktree build has no baked manifest and its project need not declare the word, so neither grammar leg fired.

    What landed: a generated weldedCommandRefs index (from that same single-source file), a grammar seed, and a welded resolution leg that host-builds the plugin from its pinned ref through the SAME path a project-declared plugin uses.

    Verified: charly secrets list charly/secret exits 0 and charly secrets get charly/secret WEBUI_ADMIN_PASSWORD returns the real stored 32-hex value on a dev build; udev and review also host-build and resolve; the disposable bed check-charly-vm PASSED with a new check that fails without the fix.

    Separate concerns filed from the same work: #1001 (welded pin set stale by design + a moduleVersion papercut), #1003 (the leaf cap killing cold builds — fixed in #1004).

    Agent: lead
    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

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