UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects

Add capability to exclude specific container names from policies

Merged Tunde Oladipupo requested to merge 4-exclude-containers into main

relates #4

Edited by Tunde Oladipupo

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
    • Resolved by Micah Nagel

      @toladipupo For all the policies that you split into 2 rules (pod and container), there is a small case that could cause problems. Take the following yaml

      spec:
        securityContext:
          runAsUser: 0
        container:
          securityContext:
            runAsUser: 1000
          <container stuff>
        initContainer:
          name: exclude-this

      Let's say we excluded the exclude-this container in our values. The pod would still get denied even though all of the included containers have values that are ok. Trying to think of a good way to do this...

  • Michael McLeroy changed milestone to %1.35.0

    changed milestone to %1.35.0

  • Micah Nagel added statusdoing label and removed statusreview label

    added statusdoing label and removed statusreview label

  • Micah Nagel added statusreview label and removed statusdoing label

    added statusreview label and removed statusdoing label

  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Please register or sign in to reply
    Loading