Skip to content

chore(deps): refresh rpm lockfiles [SECURITY] - #159

Merged
konflux-internal-p02[bot] merged 1 commit into
mainfrom
konflux/mintmaker/main/lock-file-maintenance-vulnerability
Nov 23, 2026
Merged

konflux-internal-p02[bot] merged 1 commit into
mainfrom
konflux/mintmaker/main/lock-file-maintenance-vulnerability

Conversation

@konflux-internal-p02

Copy link
Copy Markdown

This PR contains the following updates:

Update Change
lockFileMaintenance All locks refreshed

🔧 This Pull Request updates lock files to use the latest dependency versions.


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Enabled.

♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, check this box

To execute skipped test pipelines write comment /ok-to-test.


Documentation

Find out how to configure dependency updates in MintMaker documentation or see all available configuration options in Renovate documentation.

Signed-off-by: konflux-internal-p02 <170854209+konflux-internal-p02[bot]@users.noreply.github.com>
@konflux-internal-p02
konflux-internal-p02 Bot enabled auto-merge (squash) November 23, 2026 01:16
@coderabbitai

coderabbitai Bot commented Nov 23, 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: eb76bd88-c53d-4260-b83b-020b1d6f8961

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

@konflux-internal-p02
konflux-internal-p02 Bot merged commit 2207b42 into main Nov 23, 2026
45 of 57 checks passed
rhods-devops-app Bot pushed a commit that referenced this pull request Nov 23, 2026
…t guide (#159)

* CARRY: docs(rhoai): add Keycloak dev guide, reorganize examples, and require Python 3.12

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

* CARRY: feat(rhoai): make kube context and gateway/dashboard hosts optional

Allow `context` and `gateway.host`/`dashboard.host` to be omitted from the
installer configuration. When not set, the installer uses the current
kubeconfig context and derives namespace-qualified hosts from the OpenShift
ingress domain. Add `--apps-domain` so `--check` can render the real derived
hosts offline, and keep `--check` free of cluster and kubeconfig access by
resolving these values lazily. Update `verify.py` to default `--context` to
the current kubeconfig context, adjust all example configs, and document the
new optional fields.

* CARRY: feat(rhoai): print post-install next steps and improve preflight messaging

Add a `next_steps()` helper that prints configured commands for installing
the matching OpenShell CLI, registering the gateway, checking status, and
creating a sandbox. Introduce `version_at_least()` and the legacy-kernel
fix release constant so preflight can distinguish a note from a warning
when nodes run kernels below 5.19. Improve cluster check output for
OpenShift version, default StorageClass requirements, and target context.
Update README and add unit tests for the new behavior.

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

* CARRY: fix(rhoai): print platform-specific system CA bundle paths

Detect the host system CA bundle (Fedora/RHEL, Debian/Ubuntu, macOS) in
the installer's post-install next steps instead of always printing the
RHEL path. Unsupported hosts get a placeholder and the platform list, so
the generated SSL_CERT_FILE bundle includes the system roots everywhere.

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

* fix(rhoai): quote printed commands and skip placeholder-only host checks

Shell-quote the context, issuer, audience, and CA file in the post-install
commands so pasting them cannot run command substitutions. Derive the CLI
gateway directory from XDG_CONFIG_HOME, and skip the distinct-host check when
--check derives hosts from the placeholder apps domain.

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

* fix(rhoai): verify Keycloak TLS and reconcile clients idempotently

Build a CA bundle from the system roots plus the ingress CA and verify every
Keycloak API call instead of disabling TLS checks. Match audience mappers by
audience value, URL-encode client lookups, write the dashboard secret
atomically, and update an existing dashboard client when DASH_URL changes.

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

* docs(rhoai): correct OIDC filters, pin cluster context, parameterize Keycloak setup

Document that allowed_roles requires keycloak-oidc, explain the allowed_groups
filter for generic OIDC, and add --context to rotation and removal commands.
Use the RHBK operator Deployment for readiness, expand KEYCLOAK_NS in the
operator manifests, and reference the database password from its Secret.

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

* refactor(rhoai): drop placeholder note from --check output

--check still renders placeholder hosts when gateway.host or dashboard.host
is unset, but the note restated the rendered values and the --apps-domain
help text without adding information.

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

* feat(rhoai): add progress steps and color to installer output

Label chart rendering, cluster preflight, and installation with step
headings in install, --preflight, and --check runs. Color step, success,
warning, and error lines when stdout or stderr is a terminal, keeping
piped output and logs plain. Respect NO_COLOR and TERM=dumb.

Also note in the printed next steps that the CLI login requires a user
with the gateway admin or user role.

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

* docs(rhoai): refresh example pins and clarify gateway login roles

Update the ODH examples to gateway chart 0.1.7 and v0.1.7-rhaiv.0
images, refresh the RHOAI 3.6 image digests from the rhods-operator.3.6.0
CSV, and point the pin instructions at the OpenShell chart version.

Explain that the gateway login accepts a user with the admin or user
role, and that a user with neither role can authenticate but cannot call
the role-gated API.

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

* fix(rhoai): keep Keycloak admin token out of curl arguments

Pass the admin Authorization header through a private curl config file (-K) instead of -H so the bearer token is not visible in the process argument list.

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

* fix(rhoai): clarify workspace membership guidance

Explain that administrators add users to workspaces, and that users select a workspace with --workspace or OPENSHELL_WORKSPACE, in both the README and the installer's next steps.

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

* feat(rhoai): restrict installer to amd64 clusters

Preflight now collects node architectures from the cluster and fails
when any node is not amd64 or reports no architecture. The error
message states that this installer supports amd64 clusters only and
that arm64 support will be added in a future version.

The RHOAI 3.6 images and the ODH gateway, supervisor, and sandbox
images are already multi-arch, but the ODH dashboard image is
amd64-only, so the installer gates the whole install until multiarch
images ship. Document the support boundary in the README prerequisites,
chart pins, and troubleshooting table.

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

* docs(rhoai): document local gateway, cleanup scope, and OIDC CA rotation

The CLI install step now notes that the upstream installer also deploys
and starts a local gateway on the workstation (a user service on Linux,
a Homebrew service on macOS). This is a limitation of the upstream
installer; the remote-cluster workflow uses only the CLI. The note is
printed in the installer's next steps and expanded in the README.

The Keycloak guide's cleanup section separates namespace deletion into
its own warned step: it deletes every workload and PersistentVolumeClaim
in the namespace, so it only applies to a namespace created for the
guide. The per-resource deletes remain the safe path for shared
namespaces.

The README now documents OIDC CA rotation: update the openshell-oidc-ca
ConfigMap that both releases mount and restart both workloads. Updating
only the dashboard Secret leaves the gateway and dashboard trusting the
old CA, and the installer rejects a rerun until the ConfigMap matches.

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

* fix(rhoai): keep dashboard secrets out of oc process arguments

The client-secret rotation commands passed both the client secret and
the preserved cookie secret through --from-literal, exposing them in
the oc process command line to other local users (CWE-214). Read both
values from files instead: the client secret already lives in its
chmod 600 file, and the retrieved cookie secret goes through a mktemp
file that is removed after use. This matches the pattern used for the
Keycloak admin token in the dev guide helper.

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

* fix(rhoai): address review minors on contexts, CA setup, and guide steps

The gateway registration section now sets CTX to the install context
and passes --context to the certificate-retrieval commands, so they no
longer read the CA Secret and ConfigMap from whatever cluster the
current context targets. It also tells users with publicly trusted
issuers to skip the ingress CA bundle.

The printed next steps create the configuration directory before
writing the CA bundle and use an XDG-aware path for both the bundle
and SSL_CERT_FILE, so custom XDG_CONFIG_HOME locations work.

The Keycloak guide waits for the operator Deployment after applying
the Subscription before creating the Keycloak instance, prints the
literal client IDs and dashboard URL for the console steps (the
console does not expand shell variables), and creates CONFIG_DIR
before exporting the ingress CA.

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

* refactor(rhoai): drop config.context from installer configuration

Configurations no longer select a kube context. The installer targets --context when set and otherwise uses the current kubeconfig context, which is what the README already documented. A config that still sets context now fails with an unknown-field error instead of silently overriding the current context.

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

* fix(rhoai): harden secret handling and Keycloak cleanup guidance

Read the dashboard client secret with read -rs so it stays out of the screen and shell history, and feed the generated PostgreSQL password to oc on stdin so it never appears in the process argument list.

Also add the missing temp-admin removal step after a permanent Keycloak administrator exists, and parameterize the RHBK CSV label with KEYCLOAK_NS so cleanup works in a custom namespace.

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

* fix(rhoai): use the configuration directory for the CA bundle

The printed next steps now write ca-bundle.pem beside the resolved --config file instead of a hardcoded XDG path, so the installer output and the documented commands agree when XDG_CONFIG_HOME is customized or the configuration lives outside the default directory.

The README and Keycloak guide use one CONFIG_DIR variable for the configuration, secret, ingress CA, and bundle files.

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

* refactor(rhoai): generate CA bundle help from one table

SYSTEM_CA_BUNDLES now pairs each distro label with its path, so detection and the printed platform-path help share one source. The test iterates the table instead of hardcoding the three paths.

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

* docs(rhoai): state the amd64-only cluster support boundary

The preflight message and README now say that mixed amd64/arm64 clusters are unsupported because the Red Hat Build of Agent Sandbox Operator is not available on arm64, instead of only rejecting non-amd64 architectures.

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

* refactor(rhoai): thread the computed step total through install

Installer.install() now receives total_steps from main() instead of hardcoding 3, so the step headers cannot drift when a mode is added.

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

* fix(rhoai): print the offline placeholder-host note

--check now says when rendered hosts come from apps.example.com instead of the cluster ingress domain, matching the documented behavior. The note is omitted when hosts are explicit or --apps-domain is supplied.

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

* test(rhoai): cover context resolution and main host wiring

Exercise install.py's own current_context() success and failure paths, extract the main host-resolution branch into resolve_main_hosts() for focused tests, and add an install-path main() test asserting omitted hosts derive from the cluster ingress domain and --context reaches kubectl and helm.

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

* refactor(rhoai): share the Keycloak audience mapper helper

Both clients now call one ensure_audience_mapper function instead of carrying identical mapper payloads. The CLI client no longer enables the device authorization grant at creation; the guide tells headless users to enable it because the grant allows device-code phishing on a public client.

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

* fix(rhoai): namespace-qualify the Keycloak CLI client

A shared openshell-cli client accumulated one audience mapper per namespace, so a token minted for one gateway authenticated at every gateway in the realm. The default CLI client is now openshell-cli-<namespace>, overridable with the new optional oidc.cli_client_id field. The helper refuses to add a second audience to a legacy shared client, and the guide states that realm roles remain realm-wide.

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

* docs(rhoai): clarify Keycloak console values

Print the dedicated scope and both redirect URIs, and tell readers to replace whole client ID templates rather than only the namespace placeholder, which could duplicate a prefix.

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

* style(rhoai): format installer changes

Apply ruff format to the review fixes and avoid unused factory arguments in the new main() test.

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

* fix(rhoai): read the dashboard secret without bash-only flags

`read -p` is bash-only: zsh treats it as reading from a coprocess, so the
prompt never appears and the secret read fails. Emit the prompt with
`printf` and keep `read -rs` for the silent input.

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

* test(rhoai): load the pinned example configs in the installer suite

The omit-keys test only checked key absence, so a pinned example that gained
an unknown key or a malformed digest still passed. Load each
config.example-*.json with load_config and resolve its hosts, which also
skips the intentional config.example.json placeholder.

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

* chore(rhoai): use the console dashboard chart in the examples

Point the pinned example configurations at
oci://quay.io/ai-openshell/charts/console version 0.1.5 instead of the
predecessor dashboard chart. Keep the version placeholder in
config.example.json, which callers fill in for custom versions, and
update the example and installer README references to match.

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

* docs(rhoai): address review feedback on the OpenShift guide

Restore the workspace authorization verification section with the
current-context invocation, replace the removed gateway destroy command
with gateway remove, and name the example Keycloak users when creating
them.

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

---------

Signed-off-by: Jorge Garcia Oncins <jgarciao@redhat.com>
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.

0 participants