Skip to content

fix(plugin): read a mirror key pasted with CRLF line ends - #1686

Merged
EtienneLescot merged 1 commit into
mainfrom
fix/plugin-mirror-key
Nov 26, 2026
Merged

EtienneLescot merged 1 commit into
mainfrom
fix/plugin-mirror-key

Conversation

@EtienneLescot

@EtienneLescot EtienneLescot commented Nov 26, 2026 •

Copy link
Copy Markdown
Member

Requested by Etienne · project thread

Summary

The first Plugin mirror run on main (after #1685) failed with Load key "/home/runner/.ssh/mirror_key": error in libcrypto, then Permission denied (publickey). The deploy key was pasted into PLUGIN_MIRROR_DEPLOY_KEY from Windows, and OpenSSH refuses a key with CRLF line ends. This strips \r before writing the key, and checks it with ssh-keygen -y so an unreadable key fails with a clear message instead of an SSH error.

Related issue

Part of #1685.

Type of change

  • Bug fix

Release impact

  • No release note needed

Desktop impact

  • Not platform-specific

Screenshots / video

Not applicable.

Testing

YAML parses. The fix is verified by the next Plugin mirror run on main.


Generated by Claude Code

Summary by CodeRabbit

  • Chores
    • Improved validation of plugin mirror deployment credentials. Invalid keys now produce an error with guidance for providing the key.

…en the key is unreadable

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019SAKipREuKRNW28N1gsAuR
@EtienneLescot EtienneLescot self-assigned this Nov 26, 2026
@coderabbitai

coderabbitai Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The plugin mirror workflow removes carriage returns from the deploy key before saving it. It validates the saved key with ssh-keygen and exits with an error if validation fails.

Changes: Plugin mirror key handling

Layer / File(s) Summary
Normalize and validate the deploy key
.github/workflows/plugin-mirror.yml
The workflow removes carriage returns from the deploy key before saving it. If ssh-keygen cannot read the key, the workflow reports an error and exits with status 1.

Estimated code review effort: 2 (Simple) | ~5 minutes

Change: Bug fix

Possibly related PRs

Suggested reviewers: claude

Merge Risk: Minimal · up to 5f7b4

The change makes the plugin mirror accept deploy keys pasted with Windows line endings and gives a clear error when the key is unreadable. No merge-blocking risk was found, and the workflow can be confirmed by the next mirror run.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: the plugin mirror workflow now reads a deploy key pasted with CRLF line endings. It matches the summary, which strips carriage returns from PLUGIN_MIRROR_DEPLOY_KEY be…
Description check Passed The description follows the template. It has a Summary that explains the Windows CRLF cause and the ssh-keygen check. It links the work to #1685 with 'Part of #1685', which fits a partial change. It m…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: the plugin mirror workflow now reads a deploy key pasted with CRLF line endings. It matches the summary, which strips carriage returns from PLUGIN_MIRROR_DEPLOY_KEY before saving it. The title is specific and follows a conventional commit style.

Full details: Description check

Explanation

The description follows the template. It has a Summary that explains the Windows CRLF cause and the ssh-keygen check. It links the work to #1685 with 'Part of #1685', which fits a partial change. It marks Bug fix, No release note needed, and Not platform-specific. Screenshots are marked not applicable. The Testing section gives only a YAML parse check and defers verification to the next mirror run. It does not name a local test of the key-validation failure path. The template's 'Fixes #' line is replaced by 'Part of #1685', which is acceptable for a partial change.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: df3712a0-1a60-4ea2-accf-1b2c738d0921
Commits

Reviewing files that changed from the base of the PR and between 88cda67 and 5f7b4d0.

Files selected for processing: 1

  • .github/workflows/plugin-mirror.yml

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 6 remain after this review.

Copy link
Copy Markdown
Member Author

Rust test (macOS compositor) fails on the same audio::tests::a_clipped_voice_exports_under_minus_one_dbtp_and_keeps_what_loudness_it_can fixture as on every PR since yesterday (see #1685). This PR only touches .github/workflows/plugin-mirror.yml, so it is not this PR's.


Generated by Claude Code

@EtienneLescot
EtienneLescot merged commit c174dc0 into main Nov 26, 2026
20 of 21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants