Skip to content

Conversation

@SalimKayal
Copy link
Collaborator

@SalimKayal SalimKayal commented Aug 28, 2025

Merging into #984.

This PR integrates wstunnel into the sidecars image, laying the groundwork for enabling inbound tunnels for Amalthea's remote sessions. This component will allow for more robust and flexible connectivity to remote development environments in a subsequent phase.

Key changes in this PR include:

  • wstunnel Binary Inclusion: The wstunnel binary (version 10.4.4 for linux_amd64) is now downloaded and installed within the sidecars.Dockerfile.
  • New tunnel Command: A new tunnel Cobra command with a listen subcommand has been added. This command encapsulates the logic for running the wstunnel server and includes configurable options for the wstunnel secret, port, and log level, exposed via persistent flags and environment variables.

Important Note: This PR focuses solely on packaging wstunnel as a sidecar and providing the necessary command-line interface within the sidecars image. The orchestration and activation of this wstunnel sidecar from the main Amalthea application are not included in this PR and will be addressed in a future, separate PR. This separation allows for incremental deployment and testing of the wstunnel component.

PR stack:

@SalimKayal SalimKayal changed the title Salimkayal/wstunnel sidecar feat: Integrate wstunnel for future remote session ingress Aug 28, 2025
Copy link
Member

@leafty leafty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks OK as a starting point.

@leafty leafty force-pushed the leafty/exp-remote-sessions branch from 661e73a to 7d399fa Compare September 1, 2025 13:00
@SalimKayal SalimKayal force-pushed the salimkayal/wstunnel-sidecar branch from 8a9d502 to 3b33b7a Compare September 2, 2025 09:26
@leafty leafty force-pushed the leafty/exp-remote-sessions branch from 518ba1c to e00de68 Compare September 2, 2025 12:10
@leafty
Copy link
Member

leafty commented Sep 5, 2025

I've made this work on staging.dev.renku.ch, so we can rebase this and merge it into the feature branch.

@SalimKayal SalimKayal force-pushed the salimkayal/wstunnel-sidecar branch from 9ac5a34 to e640377 Compare September 5, 2025 09:57
@SalimKayal SalimKayal marked this pull request as ready for review September 5, 2025 09:58
@SalimKayal SalimKayal requested review from a team and olevski as code owners September 5, 2025 09:58
@SalimKayal
Copy link
Collaborator Author

rebased

Base automatically changed from leafty/exp-remote-sessions to build/support-remote-sessions-hpc September 8, 2025 07:20
Copy link
Member

@leafty leafty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

I'll check the merge conflict.

Copy link
Member

@leafty leafty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

chartpress leftovers

@SalimKayal SalimKayal merged commit e909a51 into build/support-remote-sessions-hpc Sep 8, 2025
18 checks passed
@SalimKayal SalimKayal deleted the salimkayal/wstunnel-sidecar branch September 8, 2025 08:55
leafty added a commit that referenced this pull request Sep 30, 2025
* experimental: remote sessions

* update

* fix types

* error formatting

* remove 'not implemented error'

* exp: use a dev name for sessions

* update

* fix e2e?

* revert non-important changes

* rerun some make targets

* feat: support remote sessions on HPC clusters

Closes #983.

_Feature branch_

* exp: use a dev name for sessions

* more updates

* feat: support remote sessions on HPC clusters

Closes #983.

_Feature branch_

* feat: install wstunnel in sidecars

* feat: add tunnel using wstunnel and os.exec.Command

* feat: add tunnel command to sidecars

* feat: basic testing of tunnel in sidecars

* refactor: use TARGETOS and TARGETARCH instead of WSTUNNEL_PLATFORM

* update

* fix e2e?

* feat: support remote sessions on HPC clusters

Closes #983.

_Feature branch_

* feat: support remote sessions on HPC clusters

Closes #983.

_Feature branch_

* Revert chartpress e2e leftovers

---------

Co-authored-by: Flora Thiebaut <flora.thiebaut@sdsc.ethz.ch>
leafty added a commit that referenced this pull request Sep 30, 2025
* experimental: remote sessions

* update

* fix types

* error formatting

* remove 'not implemented error'

* exp: use a dev name for sessions

* update

* fix e2e?

* revert non-important changes

* rerun some make targets

* feat: support remote sessions on HPC clusters

Closes #983.

_Feature branch_

* exp: use a dev name for sessions

* more updates

* feat: support remote sessions on HPC clusters

Closes #983.

_Feature branch_

* feat: install wstunnel in sidecars

* feat: add tunnel using wstunnel and os.exec.Command

* feat: add tunnel command to sidecars

* feat: basic testing of tunnel in sidecars

* refactor: use TARGETOS and TARGETARCH instead of WSTUNNEL_PLATFORM

* update

* fix e2e?

* feat: support remote sessions on HPC clusters

Closes #983.

_Feature branch_

* feat: support remote sessions on HPC clusters

Closes #983.

_Feature branch_

* Revert chartpress e2e leftovers

---------

Co-authored-by: Flora Thiebaut <flora.thiebaut@sdsc.ethz.ch>
leafty added a commit that referenced this pull request Oct 8, 2025
* experimental: remote sessions

* update

* fix types

* error formatting

* remove 'not implemented error'

* exp: use a dev name for sessions

* update

* fix e2e?

* revert non-important changes

* rerun some make targets

* feat: support remote sessions on HPC clusters

Closes #983.

_Feature branch_

* exp: use a dev name for sessions

* more updates

* feat: support remote sessions on HPC clusters

Closes #983.

_Feature branch_

* feat: install wstunnel in sidecars

* feat: add tunnel using wstunnel and os.exec.Command

* feat: add tunnel command to sidecars

* feat: basic testing of tunnel in sidecars

* refactor: use TARGETOS and TARGETARCH instead of WSTUNNEL_PLATFORM

* update

* fix e2e?

* feat: support remote sessions on HPC clusters

Closes #983.

_Feature branch_

* feat: support remote sessions on HPC clusters

Closes #983.

_Feature branch_

* Revert chartpress e2e leftovers

---------

Co-authored-by: Flora Thiebaut <flora.thiebaut@sdsc.ethz.ch>
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