Skip to content

GH#3554: fix(speech-to-speech): elevate API key security note to blockquote#4397

Merged
alex-solovyev merged 1 commit intomainfrom
bugfix/3554-speech-to-speech-review-feedback
Mar 13, 2026
Merged

GH#3554: fix(speech-to-speech): elevate API key security note to blockquote#4397
alex-solovyev merged 1 commit intomainfrom
bugfix/3554-speech-to-speech-review-feedback

Conversation

@alex-solovyev
Copy link
Copy Markdown
Collaborator

Summary

Closes #3554

Addresses the 10 review findings from PR #403 on .agents/tools/voice/speech-to-speech.md.

Findings Status

All 10 findings from PR #403 review are now addressed:

# Severity Reviewer Finding Status
1 HIGH gemini transcribe command reference (non-existent) ✅ Fixed in commit fd2aa84
2 MEDIUM gemini PyTorch version typo 2.10+ → should be 2.4+ ✅ Fixed in commit e8e1448
3 HIGH coderabbit API key storage guidance missing for --llm open_api ✅ Fixed — elevated to blockquote in this PR
4 HIGH coderabbit transcribe command docs reference non-existent command ✅ Fixed in commit fd2aa84
5–10 MEDIUM human/bot Confirmations of fixes 1–4 ✅ All confirmed

Change in This PR

The API key security note added in PR #403 was a plain inline sentence. This PR elevates it to a > **Security:** blockquote, making it:

  • Visually distinct and harder to miss
  • Explicitly warns against hardcoding API keys
  • Consistent with security guidance patterns in other agent docs
-API keys: Store `OPENAI_API_KEY` via `aidevops secret set OPENAI_API_KEY` (gopass encrypted) or in `~/.config/aidevops/credentials.sh` (600 permissions). See `tools/credentials/api-key-setup.md`.
+> **Security:** When using `--llm open_api`, store `OPENAI_API_KEY` via
+> `aidevops secret set OPENAI_API_KEY` (gopass encrypted, preferred) or in
+> `~/.config/aidevops/credentials.sh` (600 permissions, plaintext fallback).
+> Never hardcode API keys in scripts or config files.
+> See `tools/credentials/api-key-setup.md` for setup.

Quality

  • Markdownlint: 0 violations

…H#3554)

Improve visibility of OpenAI API key security guidance in the LLM section.
The plain-text note added in PR #403 is now formatted as a blockquote with
explicit 'never hardcode' warning, making it harder to miss.

All 10 PR #403 review findings verified addressed:
- transcribe command reference removed (commit fd2aa84)
- PyTorch version corrected 2.10+ -> 2.4+ (commit e8e1448)
- API key storage guidance added and now elevated to blockquote (this commit)

Closes #3554
@gemini-code-assist
Copy link
Copy Markdown

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request enhances the documentation for the speech-to-speech tool by improving the presentation and clarity of API key security instructions. It specifically addresses a review finding to make the guidance on storing OPENAI_API_KEY more prominent and explicit, ensuring users are well-informed about secure practices and preventing hardcoded credentials.

Highlights

  • API Key Security Note Elevation: Elevated the API key security guidance in .agents/tools/voice/speech-to-speech.md from an inline sentence to a visually distinct blockquote. This change explicitly warns against hardcoding API keys and aligns the documentation with existing security guidance patterns.
Changelog
  • .agents/tools/voice/speech-to-speech.md
    • Elevated API key storage guidance to a blockquote for improved visibility and clarity, including an explicit warning against hardcoding API keys.
Activity
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Mar 13, 2026

Important

Review skipped

Auto reviews are limited based on label configuration.

🚫 Review skipped — only excluded labels are configured. (1)
  • no-review

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: d07ce1d7-fb67-41dd-bb1a-76e04b180362

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch bugfix/3554-speech-to-speech-review-feedback
📝 Coding Plan
  • Generate coding plan for human review comments

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions
Copy link
Copy Markdown
Contributor

🔍 Code Quality Report

�[0;35m[MONITOR]�[0m Code Review Monitoring Report

�[0;34m[INFO]�[0m Latest Quality Status:
SonarCloud: 0 bugs, 0 vulnerabilities, 413 code smells

�[0;34m[INFO]�[0m Recent monitoring activity:
Fri Mar 13 07:48:26 UTC 2026: Code review monitoring started
Fri Mar 13 07:48:26 UTC 2026: SonarCloud - Bugs: 0, Vulnerabilities: 0, Code Smells: 413

📈 Current Quality Metrics

  • BUGS: 0
  • CODE SMELLS: 413
  • VULNERABILITIES: 0

Generated on: Fri Mar 13 07:48:29 UTC 2026


Generated by AI DevOps Framework Code Review Monitoring

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request effectively addresses previous review feedback by elevating the API key security note to a more prominent blockquote. This improves visibility and aligns with security guidance patterns in other documents. I've added one suggestion to further improve the readability of the new security note by structuring it as separate paragraphs, which will help key information stand out and reinforce critical security practices.

Comment on lines +84 to +88
> **Security:** When using `--llm open_api`, store `OPENAI_API_KEY` via
> `aidevops secret set OPENAI_API_KEY` (gopass encrypted, preferred) or in
> `~/.config/aidevops/credentials.sh` (600 permissions, plaintext fallback).
> Never hardcode API keys in scripts or config files.
> See `tools/credentials/api-key-setup.md` for setup.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

security-medium medium

For better readability of this important security note, consider separating the sentences into distinct paragraphs within the blockquote. This makes the key points, especially the warning against hardcoding keys, stand out more clearly, aligning with best practices for documenting critical security information.

Suggested change
> **Security:** When using `--llm open_api`, store `OPENAI_API_KEY` via
> `aidevops secret set OPENAI_API_KEY` (gopass encrypted, preferred) or in
> `~/.config/aidevops/credentials.sh` (600 permissions, plaintext fallback).
> Never hardcode API keys in scripts or config files.
> See `tools/credentials/api-key-setup.md` for setup.
> **Security:** When using `--llm open_api`, store `OPENAI_API_KEY` via
> `aidevops secret set OPENAI_API_KEY` (gopass encrypted, preferred) or in
> `~/.config/aidevops/credentials.sh` (600 permissions, plaintext fallback).
>
> Never hardcode API keys in scripts or config files.
>
> See `tools/credentials/api-key-setup.md` for setup.
References
  1. When documenting security practices, explicitly emphasize the preference for secure tools (e.g., gopass) over less secure alternatives (e.g., plaintext files), even if the alternatives are permitted with restrictions. Improving readability of this section enhances the visibility of this preference.
  2. When documenting critical rules, include a warning about the consequences of violating the rule. Separating the warning about hardcoding API keys into its own paragraph makes this critical consequence more prominent.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Applied in follow-up PR #4411. The suggestion is valid — separating the three key points (storage instructions, hardcoding warning, reference link) into distinct blockquote paragraphs improves readability of this critical security note. Since PR #4397 was already merged, the fix is delivered as a new PR on the same branch.

@sonarqubecloud
Copy link
Copy Markdown

@github-actions github-actions bot added the bug Auto-created from TODO.md tag label Mar 13, 2026
@alex-solovyev alex-solovyev merged commit 9605259 into main Mar 13, 2026
19 checks passed
@alex-solovyev alex-solovyev deleted the bugfix/3554-speech-to-speech-review-feedback branch March 13, 2026 07:54
alex-solovyev added a commit that referenced this pull request Mar 13, 2026
…agraphs

Address gemini-code-assist inline suggestion on PR #4397: add blank lines
between the three parts of the security blockquote so each key point
(storage instructions, hardcoding warning, reference link) stands out
as a distinct paragraph for improved readability.

Closes #3554
alex-solovyev added a commit that referenced this pull request Mar 13, 2026
…tinct paragraphs (#4411)

* chore(new-task): remove redundant env-var prefix in shell command examples

The TASK_TITLE="$TASK_TITLE" prefix before the command was redundant —
the variable is already in scope after the assignment. Simplify to pass
"$TASK_TITLE" directly as the quoted argument, which is equally secure
and clearer to read. Addresses Gemini inline suggestion on PR #4388.

* fix(speech-to-speech): separate security blockquote into distinct paragraphs

Address gemini-code-assist inline suggestion on PR #4397: add blank lines
between the three parts of the security blockquote so each key point
(storage instructions, hardcoding warning, reference link) stands out
as a distinct paragraph for improved readability.

Closes #3554
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Auto-created from TODO.md tag

Projects

None yet

Development

Successfully merging this pull request may close these issues.

quality-debt: .agents/tools/voice/speech-to-speech.md — PR #403 review feedback (high)

1 participant