Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug 1856289: Block MCS and metadata for host-networking pods #698

Merged
merged 1 commit into from Jul 13, 2020

Conversation

dulek
Copy link
Contributor

@dulek dulek commented Jul 8, 2020

This commit adds an init container to kuryr-daemon pods that will
execute iptables commands to block access to machine-config-server and
metadata server for pods that run on host networking. Both should not be
required after ignition.

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 8, 2020
@dulek
Copy link
Contributor Author

dulek commented Jul 8, 2020

I'm a bit not sure if this is required, as e.g. ovn-kubernetes does not block it. I'm checking the regular openshift-sdn now.

@danwinship
Copy link
Contributor

I'm a bit not sure if this is required, as e.g. ovn-kubernetes does not block it

It does now. openshift/ovn-kubernetes#170

There's some discussion in https://bugzilla.redhat.com/show_bug.cgi?id=1849205 about the fact that we need to be doing this at a lower level rather than requiring every network plugin to implement this independently.

@dulek
Copy link
Contributor Author

dulek commented Jul 8, 2020

I'm a bit not sure if this is required, as e.g. ovn-kubernetes does not block it

It does now. openshift/ovn-kubernetes#170

There's some discussion in https://bugzilla.redhat.com/show_bug.cgi?id=1849205 about the fact that we need to be doing this at a lower level rather than requiring every network plugin to implement this independently.

Oh, thank you for linking that patch, I wasn't aware of it and only checked ovn-kubernetes a while ago. I see it's not blocking the metadata server, should I remove that part from the patch?

@danwinship
Copy link
Contributor

yes, the eventual decision was that we only block the metadata server from pods, but we block the MCS from everywhere

This commit adds an init container to kuryr-daemon pods that will
execute iptables commands to block access to machine-config-server for
pods that run on host networking. It should not be required at all after
ignition.
@MaysaMacedo
Copy link
Contributor

Looks good to me. I assume it was tested?
Should a bz be linked?

@MaysaMacedo
Copy link
Contributor

/retest

@dulek dulek changed the title Block MCS and metadata for host-networking pods Bug 1856289: Block MCS and metadata for host-networking pods Jul 13, 2020
@openshift-ci-robot openshift-ci-robot added bugzilla/severity-high Referenced Bugzilla bug's severity is high for the branch this PR is targeting. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. labels Jul 13, 2020
@openshift-ci-robot
Copy link
Contributor

@dulek: This pull request references Bugzilla bug 1856289, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (4.6.0) matches configured target release for branch (4.6.0)
  • bug is in the state ASSIGNED, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)

In response to this:

Bug 1856289: Block MCS and metadata for host-networking pods

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/test-infra repository.

@dulek
Copy link
Contributor Author

dulek commented Jul 13, 2020

Looks good to me. I assume it was tested?
Should a bz be linked?

Yes, I tested it and it does work fine. Just created a BZ.

@luis5tb
Copy link
Contributor

luis5tb commented Jul 13, 2020

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Jul 13, 2020
@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@MaysaMacedo
Copy link
Contributor

/lgtm

@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dulek, luis5tb, MaysaMacedo

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-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

1 similar comment
@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-ci-robot
Copy link
Contributor

openshift-ci-robot commented Jul 13, 2020

@dulek: The following test failed, say /retest to rerun all failed tests:

Test name Commit Details Rerun command
ci/prow/e2e-vsphere 96ff1e0 link /test e2e-vsphere

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

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/test-infra repository. I understand the commands that are listed here.

@openshift-merge-robot openshift-merge-robot merged commit e40d8c2 into openshift:master Jul 13, 2020
@openshift-ci-robot
Copy link
Contributor

@dulek: All pull requests linked via external trackers have merged: openshift/cluster-network-operator#698. Bugzilla bug 1856289 has been moved to the MODIFIED state.

In response to this:

Bug 1856289: Block MCS and metadata for host-networking pods

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/test-infra repository.

@dulek
Copy link
Contributor Author

dulek commented Jul 13, 2020

/cherry-pick release-4.5

@openshift-cherrypick-robot

@dulek: new pull request created: #706

In response to this:

/cherry-pick release-4.5

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/test-infra repository.

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. bugzilla/severity-high Referenced Bugzilla bug's severity is high for the branch this PR is targeting. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants