Skip to content

bfl-api asks for the API key in chat and echoes it to output #964

Open

Description

@Dimooyoyo

Summary

Two leaks in the key-handling path:

  • SKILL.md:18-20 and SKILL.md:154-156 tell the agent to check the key with echo $BFL_API_KEY, which prints the secret into the terminal and the model's context.
  • references/api-key-setup.md:42-46 tells the agent to ask the user to paste the key into the conversation, then writes it to .env (:48-53). The raw credential passes through chat before it reaches the environment variable.

Note

Refs: main (verified 2026-11-19).

Operating system

.

Pipeline

No response

Runtime / renderer

No response

Steps to reproduce

.

Expected behavior

  • Check presence without printing: [ -n "$BFL_API_KEY" ] && echo "set" || echo "not set".
  • Have the user add the key to .env themselves (or use a hidden prompt); the skill should never ask for it in chat.
  • Keep the existing .gitignore step.

Actual behavior

.

Relevant logs or error output

Activity

  1. added
    bug
    on Nov 19, 2026
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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions