Skip to content

Return ssh url for sessions with ssh frontend - #1467

Merged
eikek merged 6 commits into
salimkayal/feat/ssh-keysfrom
eikek/feat/session-ssh-url
Oct 2, 2026
Merged

eikek merged 6 commits into
salimkayal/feat/ssh-keysfrom
eikek/feat/session-ssh-url

Conversation

@eikek

@eikek eikek commented Sep 30, 2026 •

Copy link
Copy Markdown
Member

For sessions that use the "ssh frontend", the session url should denote the public interface, like ssh://<session-name>@<public-hostname>[:port].

When a session is accessed via ssh, there is no ingress and no (status) url derived in amalthea. Then the crafted ssh url is returned as the session url to clients.


PR Stack


/deploy #notest extra-values=sshProxy.enabled=true,dataService.imageBuilders.enabled=true,dataService.imageBuilders.strategyName=renku-buildpacks-v3,dataService.imageBuilders.outputImagePrefix=harbor.dev.renku.ch/renku-build/,dataService.imageBuilders.nodeSelector.renku.io/node-purpose=user,dataService.imageBuilders.tolerations[0].effect=NoSchedule,dataService.imageBuilders.tolerations[0].key=renku.io/dedicated,dataService.imageBuilders.tolerations[0].operator=Equal,dataService.imageBuilders.tolerations[0].value=user renku=build/renku-ssh-proxy renku-ui=lorenzo/ssh-keys-required

@RenkuBot

Copy link
Copy Markdown
Contributor

You can access the deployment of this PR at https://renku-ci-ds-1467.dev.renku.ch

@coveralls

coveralls commented Sep 30, 2026 •

Copy link
Copy Markdown

Coverage Report for CI Build 36986808718

Warning

No base build found for commit fa1a071 on salimkayal/feat/ssh-keys.
Coverage changes can't be calculated without a base build.
If a base build is processing, this comment will update automatically when it completes.

Coverage: 85.275%

Details

  • Patch coverage: 13 uncovered changes across 1 file (28 of 41 lines covered, 68.29%).

Uncovered Changes

File Changed Covered %
components/renku_data_services/app_config/config.py 31 18 58.06%
Total (5 files) 41 28 68.29%

Coverage Regressions

Requires a base build to compare against. How to fix this →


Coverage Stats

Coverage Status
Relevant Lines: 34812
Covered Lines: 29686
Line Coverage: 85.28%
Coverage Strength: 1.48 hits per line

💛 - Coveralls

@eikek
eikek added this pull request to stack #1465 September 30, 2026 13:40
@olevski
olevski removed this pull request from stack #1465 September 30, 2026 13:50
@eikek
eikek force-pushed the eikek/feat/session-ssh-url branch from f184776 to 20a5b29 Compare October 1, 2026 08:16
@eikek
eikek marked this pull request as ready for review October 1, 2026 09:30
@eikek
eikek requested review from a team, SalimKayal and sgaist as code owners October 1, 2026 09:30
@SalimKayal
SalimKayal force-pushed the salimkayal/feat/ssh-mounts-gated-by-frontend branch from 8635fed to 6a0a2e3 Compare October 1, 2026 14:43
@SalimKayal
SalimKayal force-pushed the eikek/feat/session-ssh-url branch from 20a5b29 to 6850c62 Compare October 1, 2026 15:05
@SalimKayal
SalimKayal force-pushed the salimkayal/feat/ssh-mounts-gated-by-frontend branch from 6a0a2e3 to dbd81e8 Compare October 1, 2026 15:12
@SalimKayal
SalimKayal force-pushed the eikek/feat/session-ssh-url branch from 6850c62 to aa2336d Compare October 1, 2026 15:12
@olevski
olevski force-pushed the salimkayal/feat/ssh-mounts-gated-by-frontend branch from dbd81e8 to a37355d Compare October 1, 2026 15:53
@SalimKayal
SalimKayal force-pushed the eikek/feat/session-ssh-url branch from aa2336d to 7e65024 Compare October 1, 2026 16:22
@SalimKayal
SalimKayal force-pushed the salimkayal/feat/ssh-mounts-gated-by-frontend branch from a37355d to c16e1d8 Compare October 1, 2026 16:29
@SalimKayal
SalimKayal force-pushed the eikek/feat/session-ssh-url branch from 7e65024 to b2de5e4 Compare October 1, 2026 16:29
@eikek
eikek force-pushed the eikek/feat/session-ssh-url branch from b2de5e4 to 77a33de Compare October 1, 2026 16:36
Base automatically changed from salimkayal/feat/ssh-mounts-gated-by-frontend to salimkayal/feat/ssh-keys October 1, 2026 21:18
@eikek
eikek force-pushed the eikek/feat/session-ssh-url branch 2 times, most recently from 06e544c to abb81a3 Compare October 2, 2026 06:19

@olevski olevski left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

One small change required Eike. It got lost in the rebasing.

Comment thread components/renku_data_services/notebooks/core_sessions.py Outdated
@eikek
eikek force-pushed the eikek/feat/session-ssh-url branch from abb81a3 to 2c38f4e Compare October 2, 2026 07:00
@olevski
olevski force-pushed the salimkayal/feat/ssh-keys branch from e40dd91 to fa1a071 Compare October 2, 2026 07:51
@eikek
eikek force-pushed the eikek/feat/session-ssh-url branch from 2c38f4e to 2de5667 Compare October 2, 2026 07:53
@eikek
eikek force-pushed the eikek/feat/session-ssh-url branch from 57eb405 to b4da3a6 Compare October 2, 2026 08:55
@eikek
eikek merged commit a29b940 into salimkayal/feat/ssh-keys Oct 2, 2026
71 of 79 checks passed
@eikek
eikek deleted the eikek/feat/session-ssh-url branch October 2, 2026 13:39
@RenkuBot

RenkuBot commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

Tearing down the temporary RenkuLab deployment for this PR.

olevski added a commit that referenced this pull request Oct 13, 2026
* feat(users): store ssh keys (#1442)

* feat(users): add /user/ssh_keys CRUD API (#1444)

* feat: proxy api for ssh keys (#1446)

* feat(notebooks): configure proxy-to-session key secret names (#1452)

* feat: Add frontend variant as session label (#1455)

* feat(notebooks): mount proxy-to-session keys only for ssh frontends (#1458)

* feat: return ssh url for sessions with ssh frontend (#1467)

Co-authored-by: Tasko Olevski <16360283+olevski@users.noreply.github.com>
Co-authored-by: boucherjeanphi <49230173+boucherjeanphi@users.noreply.github.com>
Co-authored-by: eikek <701128+eikek@users.noreply.github.com>
Co-authored-by: Eike Kettner <eike.kettner@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.

5 participants