Skip to content

Conversation

@danmihai1
Copy link

@danmihai1 danmihai1 commented Jan 20, 2024

Pick up recent improvements from upstream:

genpolicy: add SPDX license header
genpolicy: "cargo fmt -- --check" clean-up
genpolicy: cargo clippy fixes
tools: genpolicy static checks
genpolicy: use root path from cbl-mariner Guest VM
genpolicy: ignore pod DNS settings

Also:

policy: update sample files

Add SPDX license header to rules.rego.

Signed-off-by: Dan Mihai <[email protected]>
@danmihai1 danmihai1 added the upstream/merged PRs that have been merged upstream label Jan 20, 2024
@danmihai1 danmihai1 requested review from a team as code owners January 20, 2024 18:32
Clean up cargo clippy errors.

Fixes: kata-containers#8818

Signed-off-by: Dan Mihai <[email protected]>
Package genpolicy and enable static checks for it.

Fixes: kata-containers#8813

Signed-off-by: Dan Mihai <[email protected]>
Adjust genpolicy-settings.json to match the container root path from
the main branch + cbl-mariner Guest VMs.

This configuration might have to be adjusted again when other types of
Guest VMs will be tested during CI using genpolicy, in the future.

Also, improve logging from allow_root_path(), to easier debug these
issues in the future.

Fixes: kata-containers#8835

Signed-off-by: Dan Mihai <[email protected]>
Ignore pod DNS settings because policing the network traffic is
currently outside the scope of the Agent Policy.

Example from Kata CI: pod-custom-dns.yaml

Fixes: kata-containers#8832

Signed-off-by: Dan Mihai <[email protected]>
Update sample files after genpolicy changes.

Signed-off-by: Dan Mihai <[email protected]>
@danmihai1 danmihai1 force-pushed the danmihai/pick-up-upstream branch from 6d1717b to 9e91b21 Compare January 20, 2024 20:53
@danmihai1 danmihai1 merged commit 34b8f61 into msft-main Jan 21, 2024
@danmihai1 danmihai1 deleted the danmihai/pick-up-upstream branch April 26, 2024 22:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

upstream/merged PRs that have been merged upstream

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants