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

allowPrivilegeEscalation enabled behaviour #58

Open
1 task done
fooltruth opened this issue Aug 29, 2023 · 0 comments
Open
1 task done

allowPrivilegeEscalation enabled behaviour #58

fooltruth opened this issue Aug 29, 2023 · 0 comments

Comments

@fooltruth
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

When allowPrivilegeEscalation is enabled (set to true) on SecurityContext, the following error is encountered regardless of the value set for DefaultAllowPrivilegeEscalation (true or false).

one of the containers has privilege escalation enabled

Expected Behavior

If allowPrivilegeEscalation is set to true and DefaultAllowPrivilegeEscalation is set to true, should not presented with an error.

Steps To Reproduce

  1. Set DefaultAllowPrivilegeEscalation to true for allow-privilege-escalation-psp-policy
  2. Set the following on one of the containers:
    securityContext: allowPrivilegeEscalation: true

Environment

- OS: Linux

Anything else?

This block of code appears to disallow/reject a container with securityContext enabled. Even if ``DefaultAllowPrivilegeEscalation` is true. Should not the container allowed?

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

No branches or pull requests

1 participant