8000 GitHub - dirgim/hacbs-conftest: PoC for the conftest implementation of hacbs sanity tests
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

PoC for the conftest implementation of hacbs sanity tests

License

Notifications You must be signed in to change notification settings

dirgim/hacbs-conftest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HACBS Conftest policies

Collection of Conftest policies for HACBS container sanity tests. The policies are written in Rego language from Open Policy Agent.

Requires conftest and skopeo utilities installed on the system.

List of implemented policies:

  • Required and deprecated label policies for image metadata obtained by inspecting the image
  • Deprecated repository policy for repository Pyxis data
  • Unsigned RPM policy for RPM manifest Pyxis data

Example usage

The image policies require access to the image repository.

skopeo inspect docker://"${IMAGE_UNDER_TEST}" > image_metadata.json
conftest test --policy policy/image image_metadata.json

About

PoC for the conftest implementation of hacbs sanity tests

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0