USHIFT-6923: dns: add paas.redhat.com to intranet forward zones - #83112
Conversation
WalkthroughThe DNS configuration adds ChangesDNS zone update
Estimated code review effort: 1 (Trivial) | ~2 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 15✅ Passed checks (15 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
/pj-rehearse pull-ci-openshift-microshift-main-test-rebase |
|
@fracappa: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel. |
|
@fracappa: no rehearsal-relevant files were changed in this PR |
|
/pj-rehearse pull-ci-openshift-microshift-main-test-rebase |
|
@fracappa: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel. |
|
@fracappa: no rehearsal-relevant files were changed in this PR |
|
/pj-rehearse pull-ci-openshift-microshift-main-test-rebase |
|
@fracappa: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel. |
52918fe to
1dbddb8
Compare
|
/pj-rehearse pull-ci-openshift-microshift-main-test-rebase |
|
@fracappa: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel. |
|
Note GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer. |
|
@fracappa, Interacting with pj-rehearseComment: Once you are satisfied with the results of the rehearsals, comment: |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In
`@ci-operator/step-registry/openshift/microshift/rebase/cryptoscan/openshift-microshift-rebase-cryptoscan-commands.sh`:
- Around line 16-17: Update the checkout commands around git fetch and git
checkout to fetch from an approved allowlisted repository at a fixed, reviewed
commit SHA rather than the mutable fca/add-ushift-cbom branch. Ensure the pinned
revision is checked out before any credential-bearing scripts run, including the
commands using ci-pull-credentials and pr-creds; if pinning is unavailable, move
this checkout and its execution into an environment without those credentials.
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository YAML (base), Central YAML (inherited)
Review profile: CHILL
Plan: Pro Plus
Run ID: 84745010-d65c-4685-b6eb-2bc48edf2b4f
📒 Files selected for processing (3)
ci-operator/step-registry/openshift/microshift/rebase/cryptoscan/openshift-microshift-rebase-cryptoscan-commands.shci-operator/step-registry/openshift/microshift/rebase/cryptoscan/openshift-microshift-rebase-cryptoscan-ref.yamlclusters/build-clusters/build-shared/managed/dns.yaml
🚧 Files skipped from review as they are similar to previous changes (1)
- clusters/build-clusters/build-shared/managed/dns.yaml
| git fetch https://github.com/fracappa/microshift.git fca/add-ushift-cbom | ||
| git checkout FETCH_HEAD |
There was a problem hiding this comment.
🔒 Security & Privacy | 🟠 Major | ⚡ Quick win
Pin the checked-out source before exposing CI credentials.
Lines 16-17 fetch a mutable branch from a fork-owned repository. Line 19 then executes scripts from that checkout. The ref file mounts ci-pull-credentials and pr-creds at Lines 24-30, and Line 13 copies the pull secret before this checkout. A branch update or repository compromise can therefore run code with access to CI credentials.
Use an approved commit SHA from an allowlisted repository. If the source cannot be pinned, isolate the checkout from the credential-bearing execution environment.
Suggested hardening
-git fetch https://github.com/fracappa/microshift.git fca/add-ushift-cbom
-git checkout FETCH_HEAD
+expected_commit="<approved-commit-sha>"
+git fetch --no-tags https://github.com/fracappa/microshift.git fca/add-ushift-cbom
+test "$(git rev-parse FETCH_HEAD)" = "${expected_commit}"
+git checkout --detach FETCH_HEAD🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In
`@ci-operator/step-registry/openshift/microshift/rebase/cryptoscan/openshift-microshift-rebase-cryptoscan-commands.sh`
around lines 16 - 17, Update the checkout commands around git fetch and git
checkout to fetch from an approved allowlisted repository at a fixed, reviewed
commit SHA rather than the mutable fca/add-ushift-cbom branch. Ensure the pinned
revision is checked out before any credential-bearing scripts run, including the
commands using ci-pull-credentials and pr-creds; if pinning is unavailable, move
this checkout and its execution into an environment without those credentials.
1a7f2a3 to
bfb8d34
Compare
|
Note GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer. |
|
[REHEARSALNOTIFIER] Note: If this PR includes changes to step registry files ( Interacting with pj-rehearseComment: Once you are satisfied with the results of the rehearsals, comment: |
|
@fracappa: This pull request references USHIFT-6923 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "5.0.0" version, but no target version was set. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: deepsm007, fracappa The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
@fracappa: The following tests failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
MicroShift crypto scanner needs to pull images from images.paas.redhat.com, which requires intranet DNS resolution
Summary by CodeRabbit
paas.redhat.comto therh-intranetDNS forward zones.images.paas.redhat.comand pull required images.