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

Prevent CVE-2024-3177 #1007

Draft
wants to merge 21 commits into
base: main
Choose a base branch
from

Conversation

kurktchiev
Copy link

Description

Simple policy to check and prevent CVE-2024-3177

Checklist

  • I have read the policy contribution guidelines.
  • [] I have added test manifests and resources covering both positive and negative tests that prove this policy works as intended.
  • I have added the artifacthub-pkg.yml file and have verified it is complete and correct.

kurktchiev and others added 4 commits May 14, 2024 18:26
Signed-off-by: Boris 'B' Kurktchiev <boris.kurktchiev@nirmata.com>
Signed-off-by: Boris 'B' Kurktchiev <boris.kurktchiev@nirmata.com>
Signed-off-by: Boris 'B' Kurktchiev <boris.kurktchiev@nirmata.com>
@chipzoller
Copy link
Contributor

Ping again on these, @kurktchiev

kurktchiev and others added 4 commits July 23, 2024 11:01
Signed-off-by: Boris 'B' Kurktchiev <boris.kurktchiev@nirmata.com>
Signed-off-by: Boris 'B' Kurktchiev <boris.kurktchiev@nirmata.com>
@kurktchiev kurktchiev marked this pull request as ready for review July 30, 2024 11:54
Copy link
Contributor

@chipzoller chipzoller left a comment

Choose a reason for hiding this comment

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

No test cases associated with this policy, just a couple of test resources.

Copy link
Contributor

@chipzoller chipzoller left a comment

Choose a reason for hiding this comment

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

And reminder about tests.

pattern:
metadata:
annotations:
kubernetes.io/enforce-mountable-secrets: "true"
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this be a conditional check? I.e., if this annotation is set to true, then the pattern must be satisfied?

Copy link
Author

Choose a reason for hiding this comment

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

sure will fix

Copy link
Member

Choose a reason for hiding this comment

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

Do we need the annotation at all?

Seems to me that the policy would be more widely applicable without it.

kurktchiev and others added 13 commits July 31, 2024 08:51
…-env-vars-cve-2024-3177.yaml

Co-authored-by: Chip Zoller <chipzoller@gmail.com>
Signed-off-by: Boris 'B' Kurktchiev <kurktchiev@gmail.com>
…-env-vars-cve-2024-3177.yaml

Co-authored-by: Chip Zoller <chipzoller@gmail.com>
Signed-off-by: Boris 'B' Kurktchiev <kurktchiev@gmail.com>
Co-authored-by: Chip Zoller <chipzoller@gmail.com>
Signed-off-by: Boris 'B' Kurktchiev <kurktchiev@gmail.com>
Co-authored-by: Chip Zoller <chipzoller@gmail.com>
Signed-off-by: Boris 'B' Kurktchiev <kurktchiev@gmail.com>
Co-authored-by: Chip Zoller <chipzoller@gmail.com>
Signed-off-by: Boris 'B' Kurktchiev <kurktchiev@gmail.com>
Co-authored-by: Chip Zoller <chipzoller@gmail.com>
Signed-off-by: Boris 'B' Kurktchiev <kurktchiev@gmail.com>
…-env-vars-cve-2024-3177.yaml

Co-authored-by: Chip Zoller <chipzoller@gmail.com>
Signed-off-by: Boris 'B' Kurktchiev <kurktchiev@gmail.com>
Signed-off-by: Boris 'B' Kurktchiev <boris.kurktchiev@nirmata.com>
Signed-off-by: Boris 'B' Kurktchiev <boris.kurktchiev@nirmata.com>
Signed-off-by: Boris 'B' Kurktchiev <boris.kurktchiev@nirmata.com>
Signed-off-by: Boris 'B' Kurktchiev <boris.kurktchiev@nirmata.com>
@kurktchiev kurktchiev marked this pull request as draft August 6, 2024 20:37
pattern:
metadata:
annotations:
kubernetes.io/enforce-mountable-secrets: "true"
Copy link
Member

Choose a reason for hiding this comment

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

Do we need the annotation at all?

Seems to me that the policy would be more widely applicable without it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

3 participants