Skip to content

Automated Sync from main to stable - #196

Merged
rhods-devops-app[bot] merged 17 commits into
stablefrom
main
Dec 1, 2026
Merged

rhods-devops-app[bot] merged 17 commits into
stablefrom
main

Conversation

@rhods-devops-app

Copy link
Copy Markdown

Automated Sync from main to stable

This PR automatically syncs the main branch to the stable branch by opening a pull request from main into stable.

Sync Summary

  • Latest commit: 220236583 Merge remote-tracking branch 'upstream/main'

  • Total commits to sync: 14

  • Source: https://github.com/red-hat-data-services/OpenShell.git @ main

  • Target: https://github.com/red-hat-data-services/OpenShell.git @ stable

  • PR head: main

Commits to be synced

Merging

GitHub automerge is enabled for this pull request once required checks pass.

red-hat-konflux Bot and others added 14 commits November 21, 2026 01:27
Signed-off-by: red-hat-konflux <126015336+red-hat-konflux[bot]@users.noreply.github.com>
Signed-off-by: red-hat-konflux <126015336+red-hat-konflux[bot]@users.noreply.github.com>
…docker tag to v1.100.0

Signed-off-by: red-hat-konflux <126015336+red-hat-konflux[bot]@users.noreply.github.com>
…tag to v4.22.24

Signed-off-by: red-hat-konflux <126015336+red-hat-konflux[bot]@users.noreply.github.com>
Signed-off-by: red-hat-konflux <126015336+red-hat-konflux[bot]@users.noreply.github.com>
…h-builds/ChristianZaccaria

CARRY: ci(odh): publish e2e images from versioned RHOAI branches
* CARRY: feat(rhoai): default the installer to external PostgreSQL

Add a gateway.database section that selects the gateway database backend.
Omitting it selects PostgreSQL, reads the connection URI from
gateway-db-uri.txt, and creates the openshell-gateway-db Secret with the uri
key. The gateway runs as a Deployment with server.externalDbSecret set and
creates no gateway PVC.

SQLite remains available with "database": { "mode": "sqlite" }, which keeps
the chart's StatefulSet and data PVC. Preflight requires a block-backed
default StorageClass only in that mode; in PostgreSQL mode a default class or
a configured server.workspaceStorageClass covers the workspace volumes.

The loader rejects uri_file in SQLite mode and any mode other than sqlite or
postgresql. It checks the URI for ASCII, a postgres scheme, a host, and no
fragment, but does not test connectivity. The installer records the backend
in its state and refuses a change in either direction; state without
database-mode reads as SQLite.

Rename the example configs to name their backend, and document the URI file,
Secret rotation, cleanup, and failure modes in both READMEs.

Signed-off-by: Jorge Garcia Oncins <jgarciao@redhat.com>

* CARRY: fix(rhoai): prompt for Keycloak admin credentials

The client helper read keycloak-initial-admin and requested a token as
temp-admin. The guide tells readers to delete that user after creating a
permanent administrator, so the helper failed with HTTP 400 Account disabled
right after the hardening step.

Ask for a master realm administrator's username and password at run time
instead. The password stays out of the argument list and the token response
stays in memory, so the helper no longer reads any secret. Non-interactive runs
can set KEYCLOAK_ADMIN_USER and KEYCLOAK_ADMIN_PASSWORD.

A rejected token request now prints Keycloak's error instead of a Python
traceback.

Update the Keycloak development guide: the script section lists what the helper
does, says it is development-only, and notes that it creates roles only.

Signed-off-by: Jorge Garcia Oncins <jgarciao@redhat.com>

* CARRY: docs(rhoai): document a development PostgreSQL deployment

Add a README section that runs PostgreSQL in the OpenShell namespace and
builds gateway-db-uri.txt from its Secret, for development setups without an
external database. It covers the namespace, the password Secret, the claim,
the Deployment patch, the URI file, and cleanup, with a note on default-deny
egress.

Drop the PGDATA rationale sentence from the Keycloak guide; the variable is
visible in the command.

Signed-off-by: Jorge Garcia Oncins <jgarciao@redhat.com>

* CARRY: fix(rhoai): reject misplaced database config and harden Keycloak helper

- Reject dashboard.database instead of silently ignoring it
- Write the OIDC CA bundle through a temporary file so an input that
  resolves to the output path is not truncated
- Require https URLs in the Keycloak client helper
- URL-encode the admin username in the Keycloak token request

Signed-off-by: Jorge Garcia Oncins <jgarciao@redhat.com>

* CARRY: fix(rhoai): correct installer guide and refresh pinned images

- Print only the default StorageClass in PostgreSQL preflight output and
  explain the configured workspace class only when no default exists.
- State the default StorageClass as a prerequisite and move the sandbox
  workspace PVC details into the troubleshooting table.
- Document the CLI version that matches the RHOAI 3.6 gateway and images.
- Refresh the RHOAI 3.6 image digests in the example configurations.
- Fix installer-guide formatting, table alignment, and the development
  PostgreSQL volume replacement instructions.

Signed-off-by: Jorge Garcia Oncins <jgarciao@redhat.com>

* CARRY: docs(rhoai): document disconnected-cluster installs

Add a disconnected-cluster section to the RHOAI guides, placed before
Troubleshooting with a pointer in each intro so the connected-cluster
flow stays uninterrupted:

- README: network scenarios (egress-blocked vs fully air-gapped), an
  image and chart inventory, RHOAI CSV digest instructions, oauth2-proxy
  handling, Agent Sandbox and sandbox-image notes, and a StorageClass
  workaround for clusters with class-less static PersistentVolumes.
- keycloak-dev-guide: mirroring steps for the hi PostgreSQL image and
  the RHBK operator images, operator-catalog guidance, IDMS entries,
  and an ImagePullBackOff/BundleUnpackFailed troubleshooting entry.
  PostgreSQL now deploys by digest, which works on connected clusters
  too; an ImageDigestMirrorSet rewrites digest pulls only.
- Both RHOAI example configurations pin dashboard.images.authProxy to
  the public hi/oauth2-proxy image by digest, because the chart's
  default tag-pinned proxy image cannot be rewritten by an IDMS.

Mirrors must be pushed to a tag, not a bare digest: Quay accepts a
digest-only push but never serves the manifest. Validated end to end on
a disconnected OpenShift cluster (mirroring, IDMS, Keycloak guide,
installer preflight and install, CLI registration, sandbox create).

Signed-off-by: Jorge Garcia Oncins <jgarciao@redhat.com>

* CARRY: docs(rhoai): condense installer and Keycloak development guides

Rewrite deploy/rhoai/README.md around the RHOAI 3.6 PostgreSQL + Keycloak
example configuration, trimming the exhaustive option walkthroughs in favor
of a shorter mainline install flow, and tighten the Keycloak development
guide prose to match.

Signed-off-by: Jorge Garcia Oncins <jgarciao@redhat.com>

* CARRY: fix(rhoai): require explicit adoption of pre-existing gateway state

The installer trusted the `openshell.ai/installer` label on the install
state ConfigMap to decide whether a namespace held its own previous
deployment. Any namespace editor can create a ConfigMap with that label,
and the charts silently reuse existing TLS, JWT, and credential-storage
key material, so a forged label let the installer inherit key material
planted by another party.

Prove ownership from the Namespace object instead: namespace editors
cannot patch it, so its installer label (or gateway-host annotation) is a
marker only the namespace administrator can set. Require that marker
together with the state record, and refuse to reuse a pre-existing state
ConfigMap, PKI secret, credential key-encryption key, or dashboard OIDC
secret otherwise. Administrators who pre-create the namespace or migrated
from another deployment can vouch for those objects with the new
`--adopt-existing` flag.

Cover forged state, adoption, and the ownership marker in the installer
tests and document the new flag.

Signed-off-by: Jorge Garcia Oncins <jgarciao@redhat.com>

* CARRY: fix(rhoai): drop pre-release installer compatibility before first release

The installer first ships with RHOAI 3.6 GA, so there are no released
installations to stay compatible with. Remove the Namespace annotation
as proof of ownership, the missing-database-mode-means-SQLite default,
and the patch that added identity metadata to old state. Installer
state must now record every identity key, which closes a path where an
annotation-only install skipped the database-backend guard and could
move a SQLite gateway onto an empty external database.

Also add a test for the dashboard OIDC Secret adoption gate, replace a
tautological assertion, drop the unused KEYCLOAK_NS requirement from the
Keycloak helper, and document namespace labeling, KEK backup with an
external database, sslmode=verify-full, and the release cutoff for
rerunning the installer against existing installations.

Signed-off-by: Jorge Garcia Oncins <jgarciao@redhat.com>

* CARRY: docs(rhoai): document upgrading an installer deployment

Explain how to move an installation to newer releases by rerunning the
installer with new chart versions and image pins, which settings must
stay unchanged, how to back up the database and the key-encryption key
Secret before the schema migration, and that rollback means restoring
the database backup. Restore the key-encryption key from the saved
Secret manifest so Helm can adopt it.

Signed-off-by: Jorge Garcia Oncins <jgarciao@redhat.com>

* CARRY: refactor(rhoai): merge database Secret check and create

Fold database_secret() into database(check_only=...) so the preflight
check and the install-time create share one path, matching
credentials(). The database line now prints once per install.

Strengthen test_database_uri_validation with no-host URIs and
per-case error messages, and cover a PostgreSQL install into a new
namespace.

Signed-off-by: Jorge Garcia Oncins <jgarciao@redhat.com>

* CARRY: feat(rhoai): warn about rendered images without a digest

Scan both rendered charts for image references (container image fields
and the gateway configuration's *_image settings) and warn about every
reference that is not pinned by digest. On a disconnected cluster an
ImageDigestMirrorSet only redirects pulls by digest, so tag-only images,
including chart defaults such as the oauth2-proxy image, can fail with
ImagePullBackOff.

Signed-off-by: Jorge Garcia Oncins <jgarciao@redhat.com>

* CARRY: docs(rhoai): document uninstalling an installer deployment

Describe how to delete the sandboxes and the CLI registration, uninstall
both releases, and remove what Helm keeps: the installer's ConfigMaps and
Secrets, the gateway key material the chart reuses on reinstall, the
SQLite claim, and the development database. Note that an external
database, the OIDC clients, and the local configuration directory are
outside the installer's scope.

Signed-off-by: Jorge Garcia Oncins <jgarciao@redhat.com>

* CARRY: docs(rhoai): mirror disconnected images with oc-mirror and IDMS

Keep the original image references in the configuration and let an
ImageDigestMirrorSet redirect pulls to the mirror, instead of rewriting
every image to the mirror registry. List what to mirror: the OpenShell
images that the OpenShift AI disconnected procedure already mirrors as
operator related images, and the oauth2-proxy image it does not. Link
the oc-mirror v2, OLM disconnected, and Agent Sandbox guides for the
procedures, and add IDMS checks to the troubleshooting table.

The unpinned-image warning no longer tells users to point images at
their mirror.

Signed-off-by: Jorge Garcia Oncins <jgarciao@redhat.com>

* CARRY: test(rhoai): cover an existing database Secret without a uri key

Signed-off-by: Jorge Garcia Oncins <jgarciao@redhat.com>

* CARRY: fix(rhoai): apply review fixes to the installer and guides

- Validate the database URI during --check, not only at install time.
- Tell operators to restart the gateway after rotating the database Secret.
- Mirror PostgreSQL by the digest that Part 1 pins.
- Log in to registry.redhat.io before copying Keycloak images.
- Add the rhbk source to the ImageDigestMirrorSet example and clarify when to
  omit entries.
- Require ownership checks before the Keycloak cleanup deletes objects.
- Document the cluster-scoped permissions preflight requires.
- Keep backup and uninstall commands on the installation context.
- Fix the CA link target, define CONFIG_DIR in the URI snippet, push the
  archive name that helm pull creates, and preserve whitespace in the admin
  password prompt.

Signed-off-by: Jorge Garcia Oncins <jgarciao@redhat.com>

* CARRY: docs(rhoai): put the upgrade context note before the backup commands

Signed-off-by: Jorge Garcia Oncins <jgarciao@redhat.com>

* CARRY: fix(rhoai): address review comments on the installer and guides

- Reject embedded tab, CR, and LF in the database URI file, which
  urlsplit() strips during validation but leaves in the Secret
- Test that dashboard.database stays an unknown field
- Point next_steps at the renamed README anchor
- List the namespace-create permission and cluster-wide reads in the
  prerequisites
- Define NS and CONFIG_DIR in the upgrade and uninstall sections
- Name the StatefulSet workload for SQLite in troubleshooting
- Say the gateway host, not the hosts, in the upgrade note
- Reword the helper script header to match its authentication
- Apply an OperatorGroup only when the namespace has none
- Document the non-interactive admin variables and the curl/python3
  requirements

Signed-off-by: Jorge Garcia Oncins <jgarciao@redhat.com>

* CARRY: fix(rhoai): address CodeRabbit follow-up comments

- Document the ConfigMap and Secret reads preflight needs when the target
  namespace already exists
- Move the helm registry login before the chart pushes
- Document the --yes invocation for non-interactive helper runs

Signed-off-by: Jorge Garcia Oncins <jgarciao@redhat.com>

* CARRY: docs(rhoai): apply minor editing corrections to the installer guides

Signed-off-by: Jorge Garcia Oncins <jgarciao@redhat.com>

* CARRY: docs(rhoai): address review comments on the installer guide

- List oc and openssl among the guide's prerequisites
- Name kubectl for the preflight permission checks
- Run the chart copy steps on a machine with registry access
- Note the Python 3.12 requirement for offline installs

Signed-off-by: Jorge Garcia Oncins <jgarciao@redhat.com>

* CARRY: feat(rhoai): color the installer next steps output

Highlight step headings in bold cyan and shell commands in green, using
the existing colorize helper so non-TTY output, NO_COLOR, and TERM=dumb
still produce plain text.

Signed-off-by: Jorge Garcia Oncins <jgarciao@redhat.com>

* CARRY: docs(rhoai): note mirror registry login for the installer machine

The installer runs helm pull on the machine running install.py, and Helm
stores registry credentials per machine, so the guide now says to log in to
the mirror registry there when it requires authentication.

Signed-off-by: Jorge Garcia Oncins <jgarciao@redhat.com>

* CARRY: test(rhoai): resolve the database URI path before comparing

load_config() stores the resolved URI file path, but the PostgreSQL
default test compared it against the unresolved TemporaryDirectory
path. On macOS TMPDIR lives under /var/folders, which resolves to
/private/var/folders, so the strings differed despite pointing at the
same file.

Signed-off-by: Jorge Garcia Oncins <jgarciao@redhat.com>

* docs(rhoai): cover namespace labeling, rollback, and dev DB mirroring

Applied fixes from bot review comments:
- Comment #4720568883: document namespace patch permission and label recovery
- Comment #4720568897: stop gateway writes and keep the database URI on rollback
- Comment #4720568910: mirror the development PostgreSQL image

Signed-off-by: Jorge Garcia Oncins <jgarciao@redhat.com>

* docs(rhoai): raise the first-create sandbox timeout

The first create after a fresh install can exceed the default provisioning
timeout while the node pulls the supervisor and sandbox images. Pass
--timeout 600 in the create example and add a Troubleshooting row for the
Error 127 retry.

Signed-off-by: Jorge Garcia Oncins <jgarciao@redhat.com>

* docs(rhoai): add an ODH PostgreSQL Keycloak example

Pair the ODH Keycloak configuration with external PostgreSQL and list it in
the examples table.

Signed-off-by: Jorge Garcia Oncins <jgarciao@redhat.com>

---------

Signed-off-by: Jorge Garcia Oncins <jgarciao@redhat.com>
…gistry.redhat.io-rust-builder-image-rust-rhel9-1.x

chore(deps): update registry.redhat.io/rust-builder-image/rust-rhel9 docker tag to v1.100.0
…ay.io-openshift-release-dev-ocp-release-4.x

chore(deps): update quay.io/openshift-release-dev/ocp-release docker tag to v4.22.24
…tral-sh-uv-0.x

chore(deps): update dependency astral-sh/uv to v0.13.10
…lm-helm-4.x

chore(deps): update dependency helm/helm to v4.3.2
…xtest-rs-nextest-0.x

chore(deps): update dependency nextest-rs/nextest to v0.9.152
@coderabbitai

coderabbitai Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

Ask an organization administrator to verify that this bot has an active assigned CodeRabbit review seat. See the seat-assignment guide. After the seat is confirmed, request a review again.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: b6a7ae62-a565-403b-b2b6-63e6e6b95b67

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Signed-off-by: konflux-internal-p02 <170854209+konflux-internal-p02[bot]@users.noreply.github.com>
Co-authored-by: konflux-internal-p02[bot] <170854209+konflux-internal-p02[bot]@users.noreply.github.com>
Signed-off-by: konflux-internal-p02 <170854209+konflux-internal-p02[bot]@users.noreply.github.com>
Co-authored-by: konflux-internal-p02[bot] <170854209+konflux-internal-p02[bot]@users.noreply.github.com>
Signed-off-by: konflux-internal-p02 <170854209+konflux-internal-p02[bot]@users.noreply.github.com>
Co-authored-by: konflux-internal-p02[bot] <170854209+konflux-internal-p02[bot]@users.noreply.github.com>
@rhods-devops-app
rhods-devops-app Bot merged commit 81e9b68 into stable Dec 1, 2026
101 of 104 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants