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

Pod security violation in metrics-related end-to-end tests #245

Open
rhmdnd opened this issue Mar 3, 2023 · 0 comments
Open

Pod security violation in metrics-related end-to-end tests #245

rhmdnd opened this issue Mar 3, 2023 · 0 comments

Comments

@rhmdnd
Copy link

rhmdnd commented Mar 3, 2023

If you run the end-to-end tests, you can see a warning about the security privileges for the metrics-test container, which a couple of the tests use to fetch metrics before validating them.

CONT  TestE2E/Parallel_tests/TestSingleScanSucceeds
    helpers.go:2539: metrics output:
        Warning: would violate PodSecurity "restricted:latest": allowPrivilegeEscalation != false (container "metrics-test"
        must set securityContext.allowPrivilegeEscalation=false), unrestricted capabilities (container "metrics-test" must
        set securityContext.capabilities.drop=["ALL"]), runAsNonRoot != true (pod or container "metrics-test" must set
        securityContext.runAsNonRoot=true), seccompProfile (pod or container "metrics-test" must set
        securityContext.seccompProfile.type to "RuntimeDefault" or "Localhost")
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