gatekeeper-library icon indicating copy to clipboard operation
gatekeeper-library copied to clipboard

OpenShift Constraints Category

Open ctrought opened this issue 3 years ago • 2 comments

Would the gatekeeper-library repo owners be interested in having a category for OpenShift policies (ie. library/openshift) and accept PRs for it?

ctrought avatar Sep 23 '22 18:09 ctrought

@ctrought can you provide some examples of policies that would apply to OpenShift (but not general Kubernetes)?

sozercan avatar Sep 23 '22 18:09 sozercan

@ctrought can you provide some examples of policies that would apply to OpenShift (but not general Kubernetes)?

A few examples

  1. Require TLS on OpenShift Routes (Different than Ingress)
  2. Require unique OpenShift Route hostname across namespaces unless permitted
  • Out of box this is already true and using hostnames across namespaces is not enabled. But with a custom policy you could allow sharing a hostname across specific namespaces if the namespaces were annotated with the hostname as a flag to allow it
  1. Require unique SCC UID ranges for all namespaces (by default it's true, but if a user can patch/update a namespace they can overwrite the SCC UID range)
  2. Disallow imagestreamtag that are scheduled
  3. Disallow imagestreamtag if the ref image size is greater than X MiB
  4. Disallow imagestreamtag is dockerImageMetadata created date is older than X days/months
  5. Enforce etcd encryption

ctrought avatar Sep 23 '22 22:09 ctrought

This issue/PR has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jan 31 '23 23:01 stale[bot]

/active

ctrought avatar Feb 01 '23 00:02 ctrought

This issue/PR has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Apr 02 '23 02:04 stale[bot]