feat(sshtunnel): add provider #226
Open
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.
This PR introduces a new SSH Tunnel provider command to manage multiple SSH tunnels via configuration. Key features include:
Tunnel Management: Start and stop SSH tunnels based on a declarative YAML configuration.
Authentication Support:
1Password Integration: Resolve passwords or private keys directly from 1Password vaults.
Optional Sudo: Ability to run tunnels with
sudowhen required.Port Conflict Handling: Checks if the local port is already in use before starting a tunnel.
Temporary Key Handling: Creates temporary files for private keys obtained from 1Password and cleans them up after use.
CLI Integration: Fully integrated into the CLI with autocompletion and command tree support.
This provider enables secure and automated management of SSH tunnels for multiple environments, supporting both developer and CI/CD workflows.
For more information, please read the README.md.