Skip to content

Add support for UBI 8 based images in SSHD service#653

Merged
rgrunber merged 2 commits intoche-incubator:mainfrom
rgrunber:sshd-ubi8
Feb 24, 2026
Merged

Add support for UBI 8 based images in SSHD service#653
rgrunber merged 2 commits intoche-incubator:mainfrom
rgrunber:sshd-ubi8

Conversation

@rgrunber
Copy link
Collaborator

@rgrunber rgrunber commented Feb 18, 2026

This PR is meant to work with the editor definition proposed in eclipse-che/che-operator#2088

  • Fixes https://issues.redhat.com/browse/CRW-10044
  • Also discovered that under certain conditions, the random user is not added under /etc/passwd. Before, we would use NSS_WRAPPER to modify the home directory and shell stored for a user (under /etc/passwd), but now we've expanded to also adding the user if not present.

Signed-off-by: Roland Grunberg <rgrunber@redhat.com>
@github-actions
Copy link

github-actions bot commented Feb 18, 2026

Click here to review and test in web IDE: Contribute

@github-actions
Copy link

@github-actions
Copy link

- Use a multi-stage image build to support different UBI based images.
- Use folders within /sshd-staging/ to determine base of user container
  (eg.  /sshd-staging/ubi8/ , /sshd-staging/ubi9/)
- Place all landing page setup into sshd.init script.

Signed-off-by: Roland Grunberg <rgrunber@redhat.com>
Copy link
Member

@azatsarynnyy azatsarynnyy left a comment

Choose a reason for hiding this comment

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

I tested the PR by providing the following editor definition to the Dashboard
https://gist.githubusercontent.com/azatsarynnyy/56a07b64fbd13fac38844baee005971f/raw/43d3517bfdf0aec892e4c63f72f5abf798090f93/editor-over-ssh

It's based on the eclipse-che/che-operator#2088 with the editor image built from the current PR and pushed to quay.io/azatsary/ssh:pr-653

A new workspace, created from the Node.js Runtime sample (which is UBI8-based), started as expected, and local IDE connect:

Image

Roland, thanks for moving the landing page startup command to the sshd.init script. It makes the solution clearer and more flexible. So, the command can be modified w/o introducing the changes to the editor definition yaml files.

@github-actions
Copy link

@rgrunber rgrunber merged commit dde8b6d into che-incubator:main Feb 24, 2026
21 of 22 checks passed
@rgrunber rgrunber deleted the sshd-ubi8 branch February 24, 2026 17:11
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.

2 participants