feat: make managed ssh config path configurable - #10
Conversation
|
Warning Review limit reached
More reviews will be available in 46 minutes and 38 seconds. Learn how PR review limits work. Your organization has run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThis PR shifts SSHWarden's managed SSH config from ChangesManaged SSH Config Marker System
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. 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. Comment |
|
@coderabbitai review |
✅ Action performedReview finished.
|
There was a problem hiding this comment.
Actionable comments posted: 3
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@crates/sshwarden-config/src/lib.rs`:
- Around line 436-445: The function managed_ssh_config_path currently treats a
present but all-whitespace ssh_config.managed_path as None; instead, update
managed_ssh_config_path to treat Some(value) that trims to an empty string as an
error: inspect config.ssh_config.managed_path.as_deref(), trim it, and if it is
Some("") return an Err (use anyhow::bail! or Err(anyhow::anyhow!(...))) with a
clear message like "ssh_config.managed_path is present but empty"; only when the
option is truly None fall back to default_managed_ssh_config_path(), otherwise
call expand_config_path(path) for non-empty values.
In `@docs/host-bindings.md`:
- Line 41: Replace the short command invocation "ssh-config show" with the full
command "sshwarden ssh-config show" in the documentation text that mentions
regenerating the managed file; update the single occurrence of the command
string so it matches neighboring docs and prevents copy-paste errors.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 81e7afb6-2387-488d-b0ef-6e21f72d9985
📒 Files selected for processing (7)
README.mdcrates/sshwarden-config/src/lib.rsdocs/adr/0023-host-bindings-and-managed-ssh-config.mddocs/host-bindings-followup.mddocs/host-bindings.mdllmdoc/guides/how-to-use-cli-commands.mdsrc/main.rs
Summary by CodeRabbit
New Features
~/.ssh/sshwarden_config.[ssh_config].managed_pathconfiguration option.~) in configuration paths.Documentation