Upgrade KubeRocketCI v3.16 to 3.17
Back up the KubeRocketCI environment before starting the upgrade procedure. Review every (Required) step and the Breaking Changes and Deprecations summary before upgrading.
<namespace> is the platform namespace (krci in the installation guides). The values of Step 2 are edp-install values; with edp-cluster-add-ons, nest them under edp-install: in clusters/core/addons/kuberocketci/values.yaml.
Step 1. (Required) Verify Prerequisites
Confirm the platform is currently on a 3.16.x release before upgrading. The CHART column shows the installed edp-install version:
helm list -n <namespace>
Step 2. (Required) Connect the Portal to DefectDojo (edp-install)
In 3.17, the security pages of the portal read DefectDojo instead of the Trivy Operator custom resources: the Container Scanning group of the Security section becomes Findings, and projects, Deployments, and Environments show their findings. For these views, see Security Findings.
After the upgrade, a cluster with Trivy Operator and without DefectDojo loses the Container Scanning pages Overview, Vulnerability Reports, and Exposed Secrets: the Findings pages that replace them, Overview, Vulnerabilities, and Exposed Secrets, show DefectDojo is not connected. The detail pages of one vulnerability report and of one exposed secret report are removed. The Namespace Security and Cluster Security pages keep reading Trivy Operator.
To keep the findings in the portal, connect it to DefectDojo with its own DefectDojo user, and set DEFECTDOJO_URL and DEFECTDOJO_TOKEN, as described in Configure the KubeRocketCI Portal.
Every user signed in to the portal sees all findings of the Product Type, in every namespace and codebase. The Trivy pages showed a namespace only to a user whose Kubernetes access listed its reports. Decide who gets portal access before the upgrade.
Step 3. (Required) Install or Upgrade krci-security-operator
The Runtime findings come from krci-security-operator, which imports the Trivy Operator reports of every namespace into DefectDojo. The portal reads the runtime tests by the report kind that chart 0.4.0 adds to each test, so with an earlier chart its Runtime views stay empty. Install or upgrade the operator to chart 0.4.0 or later on every cluster that runs Environments, as described in Runtime Security Findings in DefectDojo, with these values:
clusterName: the cluster name of the Environments,in-clusteron the cluster where KubeRocketCI runs. See Cluster Name. An operator installed under another name, for examplecore, then writes into new products: the<old name>/<namespace>products keep their active findings and are never closed, so delete them in DefectDojo.labelTags.namespace:app.edp.epam.com/tenant, so that the namespace products of the installation carry its tenant tag. See Label Tags.
With edp-cluster-add-ons, the krci-security-operator add-on pins the chart version in clusters/core/addons/krci-security-operator/Chart.yaml and takes these values under krci-security-operator: in its values.yaml.
The first pass of the operator after the upgrade uploads every runtime test once.
Step 4. (Informational) Code and Image Findings of Earlier Scans (edp-tekton)
The portal finds the Code and Image tests of a codebase by the tags that the security scan tasks of 3.17 add to each test. A test uploaded before the upgrade has no tags, so the portal shows No scan data for that level until the next security scan of the codebase. See Security Scanning Pipelines.
The image scans of 3.17 keep one test per image, scanner, and branch, titled <scan type> (<branch>). The image-scan-remote pipeline writes a test of its own, Trivy Scan (remote image), and no longer updates the tests of the security scans. With DefectDojo earlier than 2.56.0, the first scan of a branch also closes the findings of the other branches of an image that its report does not have, until their next scan.
The image tests of earlier scans, titled Trivy Scan or Anchore Grype only, get no more scans, and their findings stay active in DefectDojo:
- Delete them from the
image:engagements of the codebase products after the upgrade. In DefectDojo 3.5.200, only a staff user can delete a test. The API requestGET /api/v2/tests/?title=Trivy%20Scan&prefetch=engagement, and the same request forAnchore%20Grype, lists them with the names of their engagements. - With deduplication enabled in DefectDojo, delete them before the first security scan: otherwise the findings of the new tests are marked as duplicates of theirs, and the portal does not count duplicates.
- The new tests do not keep the triage of the earlier tests, such as false positives, so triage their findings again.
Step 5. (Informational) Breaking Changes and Deprecations
- The Container Scanning pages Overview, Vulnerability Reports, and Exposed Secrets become the Findings pages Overview, Vulnerabilities, and Exposed Secrets, which read DefectDojo, and the detail pages of one report are removed. Without DefectDojo and krci-security-operator, the pages show no findings — see Step 2 and Step 3.
- Every signed-in user of the portal sees all findings of the Product Type — see Step 2.
Step 6. Upgrade
- edp-cluster-add-ons (recommended)
- Helm
The recommended approach is to manage the upgrade through edp-cluster-add-ons via ArgoCD. Update the chart version and values in your add-ons repository, then let ArgoCD apply the changes.
1. In your edp-cluster-add-ons repository, update the chart version in clusters/core/addons/kuberocketci/Chart.yaml:
apiVersion: v2
name: edp-install
version: 3.17.0
appVersion: 3.17.0
dependencies:
- name: edp-install
version: 3.17.0
repository: https://epam.github.io/edp-helm-charts/stable
2. Make the values changes from Step 2 in clusters/core/addons/kuberocketci/values.yaml, under edp-install:.
3. Commit and push the changes. ArgoCD will detect the diff and sync automatically, or trigger a manual sync from the ArgoCD UI.
For environments managed directly with Helm:
# Update the Helm repository
helm repo update
# Confirm the target chart version is available
helm search repo epamedp/edp-install --versions | grep 3.17.0
# Preview changes against your values
helm diff upgrade <release-name> epamedp/edp-install \
--version 3.17.0 \
-f values.yaml \
-n <namespace>
# Run the upgrade
helm upgrade --install <release-name> epamedp/edp-install \
--version 3.17.0 \
-f values.yaml \
-n <namespace> \
--timeout 10m \
--wait
Allow 3-5 minutes for all pods to reach the Running state.
Step 7. Post-Upgrade Verification
# All pods should return to Running
kubectl get pods -n <namespace>
# Confirm the platform components are on their 3.17 image tags
kubectl get deployment -n <namespace> \
-o custom-columns=NAME:.metadata.name,IMAGE:'.spec.template.spec.containers[0].image'
Then verify in the browser and cluster:
- Portal loads at
https://<PORTAL_URL>and authentication completes - Security > Findings > Overview shows the level cards, not
DefectDojo is not connected(see Step 2) - The Runtime security card on the Overview tab of an Environment shows its findings, not
No scan data(see Step 3) - In DefectDojo, the namespace product of an Environment carries the tag
app.edp.epam.com/tenant:<namespace>(see Step 3)