-
Notifications
You must be signed in to change notification settings - Fork 763
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into acpana/fix-mut-name-length
Signed-off-by: alex <8968914+acpana@users.noreply.github.com>
- Loading branch information
Showing
70 changed files
with
1,202 additions
and
856 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# These owners are the maintainers and approvers of this repo | ||
* @open-policy-agent/gatekeeper-maintainers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
name: scan_vulns | ||
on: | ||
push: | ||
paths-ignore: | ||
- ".github/workflows/website.yaml" | ||
- "docs/**" | ||
- "library/**" | ||
- "demo/**" | ||
- "deprecated/**" | ||
- "example/**" | ||
- "website/**" | ||
- "**.md" | ||
- "!cmd/build/helmify/static/README.md" | ||
pull_request: | ||
paths-ignore: | ||
- ".github/workflows/website.yaml" | ||
- "docs/**" | ||
- "library/**" | ||
- "demo/**" | ||
- "deprecated/**" | ||
- "example/**" | ||
- "website/**" | ||
- "**.md" | ||
- "!cmd/build/helmify/static/README.md" | ||
|
||
permissions: read-all | ||
|
||
jobs: | ||
govulncheck: | ||
name: "Run govulncheck" | ||
runs-on: ubuntu-22.04 | ||
timeout-minutes: 15 | ||
steps: | ||
- uses: golang/govulncheck-action@7da72f730e37eeaad891fcff0a532d27ed737cd4 # v1.0.1 | ||
|
||
scan_vulnerabilities: | ||
name: "[Trivy] Scan for vulnerabilities" | ||
runs-on: ubuntu-22.04 | ||
timeout-minutes: 15 | ||
steps: | ||
- name: Harden Runner | ||
uses: step-security/harden-runner@1b05615854632b887b69ae1be8cbefe72d3ae423 # v2.6.0 | ||
with: | ||
egress-policy: audit | ||
|
||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 | ||
|
||
- name: Download trivy | ||
run: | | ||
pushd $(mktemp -d) | ||
wget https://github.com/aquasecurity/trivy/releases/download/v${{ env.TRIVY_VERSION }}/trivy_${{ env.TRIVY_VERSION }}_Linux-64bit.tar.gz | ||
tar zxvf trivy_${{ env.TRIVY_VERSION }}_Linux-64bit.tar.gz | ||
echo "$(pwd)" >> $GITHUB_PATH | ||
env: | ||
TRIVY_VERSION: "0.46.0" | ||
|
||
- name: Run trivy on git repository | ||
run: | | ||
trivy fs --format table --ignore-unfixed --skip-dirs website --scanners vuln . | ||
- name: Build docker images | ||
run: | | ||
make docker-buildx \ | ||
IMG=gatekeeper-e2e:latest | ||
make docker-buildx-crds \ | ||
CRD_IMG=gatekeeper-crds:latest | ||
- name: Run trivy on images | ||
run: | | ||
for img in "gatekeeper-e2e:latest" "gatekeeper-crds:latest"; do | ||
trivy image --ignore-unfixed --vuln-type="os,library" "${img}" | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
This is a demo of a prototype-stage feature and is subject to change. | ||
> [!WARNING] | ||
> This is a demo of a prototype-stage feature and is subject to change. | ||
The demo will not work unless the `--experimental-enable-k8s-native-validation`` is | ||
set. Please set `--validate-template-rego` to `false` if using Gatekeeper version 3.13.1+ but before 3.16.0. | ||
## Pre-requisites | ||
|
||
Note that the contents of the constraint template have changed since cutting | ||
Gatekeeper's v3.13.0 release. To try this with the development build of | ||
Gatekeeper, use a [dev image](https://open-policy-agent.github.io/gatekeeper/website/docs/install/#deploying-a-release-using-development-image). | ||
- Requires minimum Gatekeeper v3.14.0 | ||
- Set `--experimental-enable-k8s-native-validation` in Gatekeeper deployments. | ||
- Set `--validate-template-rego=false` in Gatekeeper deployments if using Gatekeeper version 3.14.0 and later. This flag will be removed in v3.16.0, and will not be applicable in the future. | ||
|
||
## Demo | ||
|
||
<img width= "900" height="500" src="demo.gif" alt="cel demo"> |
Oops, something went wrong.