RexOps / RexOps/Rex

create option to set ctl_dir for Net::OpenSSH

Open
#716 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

easy-to-fix task
Dominant language
Perl
Stars
737
Forks
214
PR merge metrics
No merged PRs in 30d

Description

Net::OpenSSH is creating a control directory inside the user $HOME directory. But if the home directory doesn't have a chmod of 700 this will not work due to security concerns.

And sometimes it is also not possible to change the permissions of the home directory due to company policies.

So we need to have an option so that we can define the control directory.

Something like this (which would create the control directory inside the directory where the Rexfile is located):

ctl_dir "./.ctl";

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating how Rex configures Net::OpenSSH and how options from the Rexfile are parsed, using the proposed ctl_dir "./.ctl" entry point. Trace the control-directory creation and determine how to make a configured directory work without relying on the user's HOME; done means the option is accepted and the control directory is created at the requested location.

Written by the indexing model from the issue text.

Assessment

Tech stack
perl
Domain
devops
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.