Skip to content

Conversation

@eslutsky
Copy link
Contributor

Which issue(s) this PR addresses:

Closes #

Signed-off-by: Evgeny Slutsky <[email protected]>
Signed-off-by: Evgeny Slutsky <[email protected]>
@openshift-ci openshift-ci bot requested review from agullon and jerpeter1 October 23, 2025 14:00
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Oct 23, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: eslutsky

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 23, 2025
@eslutsky eslutsky force-pushed the add-tests branch 4 times, most recently from f4a94e9 to 34f7bf6 Compare October 24, 2025 09:38
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

Few comments for this function:

  • Use a switch case, maybe?
  • If Enabled we should validate the file exists and we can read it.
  • We are allowing the exposure of critical files (such as /etc/passwd) because we are not checking the actual file path. Same with relative paths, we should sanitize and require absolute paths here.
  • File size. This will go to a config map, meaning we are limited to 1Mi in total size.

Just an idea: Should we restrict the files we can load to a handful of paths? For example, either /etc/hosts or something outside system paths?

Copy link
Contributor

Choose a reason for hiding this comment

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

I am missing RBAC for this specific config map, only CoreDNS pods should be able to read it and only MicroShift should be able to write it.

Copy link
Contributor

Choose a reason for hiding this comment

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

This is constant, should it be a member of the struct?

Copy link
Contributor

Choose a reason for hiding this comment

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

This is constant, should it be a member of the struct?

Comment on lines 21 to 22
Copy link
Contributor

Choose a reason for hiding this comment

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

Should these be constants?

Copy link
Contributor

Choose a reason for hiding this comment

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

Should it signal readiness here instead? One it reaches this point you know you have at least one update to the configmap plus the file being watched.

Copy link
Contributor

Choose a reason for hiding this comment

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

Should it close the watcher?

Copy link
Contributor

Choose a reason for hiding this comment

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

Should it signal the removal/rename of the file? At that point it will fail in the next restart but remain working until then.

Copy link
Contributor

Choose a reason for hiding this comment

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

Remove the V(2) so that it always show up?

@eslutsky eslutsky changed the title introduce hosts plugin coreDNS RF tests USHIFT-6276: introduce hosts plugin coreDNS RF tests Oct 24, 2025
@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Oct 24, 2025
@openshift-ci-robot
Copy link

openshift-ci-robot commented Oct 24, 2025

@eslutsky: This pull request references USHIFT-6276 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 "4.21.0" version, but no target version was set.

In response to this:

Which issue(s) this PR addresses:

Closes #

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.

@eslutsky eslutsky force-pushed the add-tests branch 2 times, most recently from 9b89e4b to 03c2ffa Compare October 25, 2025 09:13
@eslutsky
Copy link
Contributor Author

/retest

@eslutsky
Copy link
Contributor Author

@pacevedom this PR was opened for the tests but its based on the #5491 commits , so i will address the code changed there.

@eslutsky eslutsky force-pushed the add-tests branch 2 times, most recently from 251cd99 to 1be960c Compare October 27, 2025 13:23
Signed-off-by: Evgeny Slutsky <[email protected]>
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Oct 27, 2025

@eslutsky: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/e2e-aws-tests-arm d3def25 link true /test e2e-aws-tests-arm
ci/prow/verify d3def25 link true /test verify
ci/prow/e2e-aws-tests-bootc d3def25 link true /test e2e-aws-tests-bootc
ci/prow/e2e-aws-tests-bootc-arm d3def25 link true /test e2e-aws-tests-bootc-arm

Full PR test history. Your PR dashboard.

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 kubernetes-sigs/prow repository. I understand the commands that are listed here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants