Skip to content

Add an OPENSHIFT-ADMIN-OUTPUT-RULES chain for admins to use #14221

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

Merged
merged 1 commit into from
May 25, 2017

Conversation

danwinship
Copy link
Contributor

This came out of a discussion with the Online ops people; it is currently difficult for admins to add their own iptables rules for filtering/rate-limiting/etc, because we prepend our own rule -j ACCEPT-ing all outgoing SDN traffic, so they have to do something like, wait for OpenShift to prepend its rule, and then prepend their own rule before it, and of course this is totally fragile against future OpenShift changes. This patch makes OpenShift create an empty chain solely for use by admins who want to add rules that apply before OpenShift's rules (since this seemed like something other users might want too).

Trello card: https://trello.com/c/dnZHuI5R

This conflicts with #13465 and will have to be rewritten if that merges first, but we'll still want to commit this version of the patch to 3.5 anyway.

@openshift/networking PTAL

@eparis
Copy link
Member

eparis commented May 16, 2017

$bikeshed: Is that a good name. It seems like OPENSHIFT is the on who would add rules to the chain. Not a huge deal to me. Don't bikeshed on that more than a minute or so...

@danwinship
Copy link
Contributor Author

Entirely valid point, especially since #13465 defines three chains with OPENSHIFT in the name that we don't want people editing. But in both cases the intent was to make it obvious who was creating the chain, and to avoid conflicts with other chains (the same way upstream prefixes all its chains with "KUBE").

Maybe add "ADMIN" or "USER" to the chain name? And shorten "OPENSHIFT" to "OS" to compensate... Although "OS-ADMIN-OUTPUT-FILTERING" sounds like it's for filtering administrators or "administrator output".

@dcbw
Copy link
Contributor

dcbw commented May 21, 2017

I think it should have OPENSHIFT somewhere in the name, since that's what's making the chain and that's the purpose of the chain. Could just do "OPENSHIFT-ADMIN-OUTPUT-FILTER" to keep it under 30 chars.

@danwinship danwinship force-pushed the admin-iptables-filtering branch from fd65052 to 98aa854 Compare May 22, 2017 14:47
@danwinship
Copy link
Contributor Author

I went with OPENSHIFT-ADMIN-OUTPUT-RULES... That seems pretty clear I think?

Copy link

@pravisankar pravisankar left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@knobunc knobunc left a comment

Choose a reason for hiding this comment

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

LGTM

@knobunc
Copy link
Contributor

knobunc commented May 23, 2017

[merge]

@openshift-bot
Copy link
Contributor

[Test]ing while waiting on the merge queue

@openshift-bot
Copy link
Contributor

Evaluated for origin test up to 98aa854

@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_request_origin/1651/) (Base Commit: c02131d)

@knobunc
Copy link
Contributor

knobunc commented May 24, 2017

[merge]... last failed due to "FAILURE: Generated bootstrap bindata out of date. Please run hack/update-generated-bindata.sh" which can not be related.

@danwinship danwinship changed the title Add an OPENSHIFT-OUTPUT-FILTERING chain for admins to use Add an OPENSHIFT-ADMIN-OUTPUT-RULES chain for admins to use May 24, 2017
@danwinship
Copy link
Contributor Author

flake #14334 [merge]

@openshift-bot
Copy link
Contributor

Evaluated for origin merge up to 98aa854

@openshift-bot
Copy link
Contributor

openshift-bot commented May 24, 2017

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/merge_pull_request_origin/776/) (Base Commit: 491c8bd) (Image: devenv-rhel7_6269)

@openshift-bot openshift-bot merged commit 423315b into openshift:master May 25, 2017
@danwinship danwinship deleted the admin-iptables-filtering branch May 31, 2017 14:30
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.

6 participants