Repository navigation
Conversation
Update bfl-api skill and api-key-setup documentation to check BFL_API_KEY presence safely without echoing the key value. Direct users to update .env directly rather than requesting raw API keys in chat. Assisted-by: Gemini (Google Vertex AI)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes security issue in
bfl-apiskill andapi-key-setupreference docs whereBFL_API_KEYwas printed to stdout usingecho $BFL_API_KEYand agents were instructed to ask users for raw API keys in chat.Related issue
Fixes #964
Changes
echo $BFL_API_KEYin.agents/skills/bfl-api/SKILL.mdand.claude/skills/bfl-api/SKILL.mdwith safe non-echo presence check[ -z "$BFL_API_KEY" ] && echo "Error: BFL_API_KEY not set" || echo "OK: Key configured"..agents/skills/bfl-api/references/api-key-setup.mdand.claude/skills/bfl-api/references/api-key-setup.mdto instruct agents to direct users to update.envdirectly rather than asking for raw keys in chat.test_bfl_api_skill_no_secret_echoing_or_chat_credentialsintests/contracts/test_agent_instruction_integrity.py.Testing
pytest tests/contracts/test_agent_instruction_integrity.py tests/contracts/test_agent_skill_pointers.py: 242 passed in 1.93s.pytest tests/contracts/test_agent_instruction_integrity.py: 3 passed in 0.01s (verified contract assertions).Checklist
make test-contracts/make test) where applicable.AI assistance: this change was prepared and reviewed with Gemini (Google Vertex AI) and tested as described above.