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

tests: rego policy exec in container tests #1635

Merged
merged 2 commits into from
Feb 21, 2023

Conversation

anmaxvl
Copy link
Contributor

@anmaxvl anmaxvl commented Jan 30, 2023

Add CRI integration tests to validate rego policy enforcement around container execs.
Additionally introduce new PolicyConfigOpt type for easier policy config generation, update policy tests to use the opts.

Signed-off-by: Maksim An [email protected]

@anmaxvl anmaxvl requested a review from a team as a code owner January 30, 2023 19:33
@anmaxvl anmaxvl force-pushed the tests/rego-exec-cri-integration branch 4 times, most recently from 247d6b4 to 757c5c6 Compare February 1, 2023 18:54
test/cri-containerd/policy_test.go Outdated Show resolved Hide resolved
test/cri-containerd/policy_test.go Outdated Show resolved Hide resolved
Add CRI integration tests to validate rego policy enforcement
around container execs.
Additionally introduce new `PolicyConfigOpt` type for easier
policy config generation, update policy tests to use the opts.

Add `sev-snp` flag to cri-containerd executable, which indicates
that the tests are running on hardware with SEV-SNP support.

Signed-off-by: Maksim An <[email protected]>
@anmaxvl anmaxvl merged commit 0b63055 into microsoft:main Feb 21, 2023
@anmaxvl anmaxvl deleted the tests/rego-exec-cri-integration branch February 21, 2023 04:13
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

Successfully merging this pull request may close these issues.

3 participants