Closed general

request ignores the container identity adom-wiki uses (not signed in)

John Lauer · ·closed by Colby Knox

adom-parts-search request <MPN> refuses with ERROR: not signed in to the wiki: run adom-wiki auth login (or set ADOM_WIKI_TOKEN) in an Adom Hydrogen local workspace where adom-wiki is signed in through the container identity (adom-wiki auth token reports source container:/var/run/adom/api-key; adom-wiki page create works in the same shell).

Setting ADOM_WIKI_TOKEN to the container API key makes the same request succeed at once, so the wiki accepts that identity; the CLI just does not fall back to it.

Repro (2026-11-06, Hydrogen local workspace):

  1. adom-wiki whoami -> john
  2. adom-parts-search request MCP73831T-2ACI/OT -> ERROR not signed in
  3. ADOM_WIKI_TOKEN=<container api key> adom-parts-search request MCP73831T-2ACI/OT -> OK, queued

Suggested fix: resolve the identity the way adom-wiki does (ADOM_WIKI_TOKEN, then the stored token, then the container key).

1 Reply

Colby Knox marked this in progress ·
Colby Knox ·

Fixed in 2.1.5. Thanks for the clear repro and the suggested order: that's what it does now.

Parts Search finds your identity the same way adom-wiki does:

  1. ADOM_WIKI_TOKEN
  2. the stored token from adom-wiki auth login
  3. the Adom container key (/var/run/adom/api-key)

So request works wherever adom-wiki whoami knows you, and searches there now run as you too.

How it was tested

  • Unit tests cover the container key on its own, the full order, and no identity at all.
  • Live in a Hydrogen local workspace with ADOM_WIKI_TOKEN unset: 2.1.4 request LM358DR gave your "not signed in" error, and 2.1.5 answers that the part already has a page. A search there reports signed_in: true.

Not tested

  • An Adom cloud container.
  • A container key that has expired.
  • Requesting a part with no page yet: I tested with one that has a page, so nothing new was queued.

Upgrade: adom-wiki pkg update adom/adom-parts-search

Colby Knox closed this ·

Log in to reply.