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

Feat: 771 remove unnecessary security concerns #926

Conversation

BGrasnick
Copy link
Contributor

fixes #771

  • feat: reduce privileges granted through SCC for OpenShift
  • feat: set mounted volumes as read only as much as possible
  • feat: set pod hostPID to true to avoid collisions/unwanted behavior in host PID namespace
  • feat: remove unnecessary mount of /sys/kernel/debug

Same improvements were already merged in the kepler-operator: sustainable-computing-io/kepler-operator#185
And the removal of the /sys/kernel/debug was discussed here: sustainable-computing-io/kepler-model-server#158 (comment)

Copy link
Collaborator

@sthaha sthaha left a comment

Choose a reason for hiding this comment

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

Look good to me :)

Copy link
Collaborator

@marceloamaral marceloamaral left a comment

Choose a reason for hiding this comment

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

We need to double check if we can remove the debug path.

@sthaha
Copy link
Collaborator

sthaha commented Oct 19, 2023

@BGrasnick would you mind if I took a stab at addressing the comments and submit another PR?

@BGrasnick
Copy link
Contributor Author

Hey @sthaha! Sorry for the delay! I was away for a while but now I am back and ready to jump back in :)

@sthaha
Copy link
Collaborator

sthaha commented Oct 19, 2023

Thank you @BGrasnick , the PR is quite useful :)

Signed-off-by: Bastien Grasnick <bastien.grasnick@deutschebahn.com>
Signed-off-by: Bastien Grasnick <bastien.grasnick@deutschebahn.com>
…n host PID namespace

Signed-off-by: Bastien Grasnick <bastien.grasnick@deutschebahn.com>
Signed-off-by: Bastien Grasnick <bastien.grasnick@deutschebahn.com>
@BGrasnick BGrasnick force-pushed the feat/771-remove-unnecessary-security-concerns branch from 86af3c4 to 3587979 Compare October 20, 2023 08:29
Copy link
Collaborator

@sthaha sthaha left a comment

Choose a reason for hiding this comment

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

@marceloamaral This PR looks good to me. Since you raised a concern which seems to be addressed, I will let you review and merge if it looks fine to you.

@sthaha sthaha requested a review from marceloamaral October 23, 2023 23:07
@rootfs rootfs enabled auto-merge (squash) November 1, 2023 13:37
@rootfs rootfs disabled auto-merge November 1, 2023 13:38
@rootfs rootfs merged commit 877a59a into sustainable-computing-io:main Nov 1, 2023
17 checks passed
rootfs pushed a commit to rootfs/kepler that referenced this pull request Nov 13, 2023
…-io#926)

* feat: reduce privileges granted through SCC for OpenShift

Signed-off-by: Bastien Grasnick <bastien.grasnick@deutschebahn.com>

* feat: set mounted volumes as read only as much as possible

Signed-off-by: Bastien Grasnick <bastien.grasnick@deutschebahn.com>

* feat: set pod hostPID to true to avoid collisions/unwanted behavior in host PID namespace

Signed-off-by: Bastien Grasnick <bastien.grasnick@deutschebahn.com>

* feat: remove unnecessary mount of /sys/kernel/debug

Signed-off-by: Bastien Grasnick <bastien.grasnick@deutschebahn.com>

---------

Signed-off-by: Bastien Grasnick <bastien.grasnick@deutschebahn.com>
vprashar2929 pushed a commit to vprashar2929/kepler that referenced this pull request Dec 19, 2023
…-io#926)

* feat: reduce privileges granted through SCC for OpenShift

Signed-off-by: Bastien Grasnick <bastien.grasnick@deutschebahn.com>

* feat: set mounted volumes as read only as much as possible

Signed-off-by: Bastien Grasnick <bastien.grasnick@deutschebahn.com>

* feat: set pod hostPID to true to avoid collisions/unwanted behavior in host PID namespace

Signed-off-by: Bastien Grasnick <bastien.grasnick@deutschebahn.com>

* feat: remove unnecessary mount of /sys/kernel/debug

Signed-off-by: Bastien Grasnick <bastien.grasnick@deutschebahn.com>

---------

Signed-off-by: Bastien Grasnick <bastien.grasnick@deutschebahn.com>
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.

Security implications of enabling kernel-devel and pods mounting /sys/kernel/debug
6 participants