Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ssh): add ssh tunnel support for the docker image #114

Merged
merged 8 commits into from
Apr 18, 2024

Conversation

empwilli
Copy link
Contributor

@empwilli empwilli commented Apr 8, 2024

When running omnect-cli in a docker container, we need some extra steps to get the ssh tunnel feature to work. Furthermore, when running on windows host systems we have to make some adjustments in the ssh configuration.

This PR extends the omnect-cli so that we can pass the setup (containerized or not, windows host) in via environment variables and to generate an according configuration.

Furthermore, this extends the documentation to include the necessary steps to run the omnect-cli in a containerized environment.

@empwilli empwilli changed the title Add ssh tunnel support for the docker image feat(ssh): add ssh tunnel support for the docker image Apr 8, 2024
src/ssh.rs Show resolved Hide resolved
src/ssh.rs Outdated Show resolved Hide resolved
src/ssh.rs Outdated Show resolved Hide resolved
@empwilli empwilli force-pushed the feat/ssh_tunnel_docker_support branch 2 times, most recently from bebcc9a to 1ddb7d5 Compare April 8, 2024 10:04
README.md Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
When running the omnect-cli from within a containerized environment,
authentication will not work out of the box: when binding to localhost, the
client will bind to localhost from inside of the container, it is not possible
to connect from the container externally.

This adds a check for the "CONTAINERIZED" environment variable. If this
environment variable is set, the auth redirect server will instead bind to
"0.0.0.0", the idea being, that docker can do the mapping to local host, then.

Furthermore, we add the "CONTAINER_HOST" variable which allows the omnect-cli to
determine the host system so that an according ssh config can be generated.
@empwilli empwilli force-pushed the feat/ssh_tunnel_docker_support branch from 365ff61 to 43a34f0 Compare April 11, 2024 08:46
@empwilli
Copy link
Contributor Author

Had to rebase on main.

This adds the necessary environment variable setting for running omnect-cli on a
Windows host.
README.md Outdated Show resolved Hide resolved
@empwilli empwilli merged commit 41ba9ba into omnect:main Apr 18, 2024
3 checks passed
@empwilli empwilli deleted the feat/ssh_tunnel_docker_support branch June 20, 2024 11:08
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.

3 participants