Menu

#165 bug: OOB prompt for credential_store_set shows credential name instead of member name

closed
nobody
None
2026-04-23
2026-04-21
Anonymous
No

Originally created by: kumaakh

Symptom

The OOB terminal window displays:

Member: my_api_key

where `my_api_key` is the credential name. It should display the fleet member's friendly name (e.g. `fleet-dev`).

The correct format should be:

Enter secure value for my_api_key
Member: fleet-dev

Root cause

File: `src/tools/credential-store-set.ts`, line 18

const oob = await collectOobApiKey(input.name, 'credential_store_set', { prompt: input.prompt });

`input.name` (the credential name) is passed in the member name parameter slot of `collectOobApiKey`. This flows to `src/cli/auth.ts` line 25, which renders it as the member name.

Fix

`credential_store_set` is not member-scoped (it is a PM-level operation), so there is no member context to display. The label should be changed to reflect what the user is actually entering:

  • First line: `Enter secure value for <credential-name>` </credential-name>
  • Remove or change the `Member:` label — or show `Scope: all members` if that context is useful

Acceptance criteria

  • [ ] OOB window clearly shows the credential name being stored
  • [ ] `Member:` label is not populated with the credential name
  • [ ] Wording is unambiguous to a non-technical user

Related

Tickets: #166

Discussion

  • Anonymous

    Anonymous - 2026-04-23

    Originally posted by: kumaakh

    Fixed in main: PR [#166] (commit ca30df) changed src/cli/auth.ts so the OOB window now shows Enter secure value for: <credential-name> instead of Member: <credential-name>. The misleading Member: label is gone — the header accurately reflects what the user is entering regardless of whether it is a credential name (credential_store_set) or a member name (provision_llm_auth).</credential-name></credential-name>

     

    Related

    Tickets: #166

  • Anonymous

    Anonymous - 2026-04-23

    Ticket changed by: kumaakh

    • status: open --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB