Buildah build task Package
This package is responsible for verifying the buildah build task
Rules Included
ADD_CAPABILITIES parameter
Verify the ADD_CAPABILITIES parameter of a builder Tasks was not used.
Solution: The ADD_CAPABILITIES parameter is not allowed for most container image builds. This, however, might be required for certain build types, e.g. flatpaks. Either unset the parameter or use a policy config that excludes this policy rule.
- 
Rule type: FAILURE
 - 
FAILURE message:
ADD_CAPABILITIES parameter is not allowed - 
Code:
buildah_build_task.add_capabilities_param - 
Effective from:
2024-08-31T00:00:00Z 
Buildah task uses a local Dockerfile
Verify the Dockerfile used in the buildah task was not fetched from an external source.
Solution: Make sure the 'DOCKERFILE' parameter does not come from an external source.
- 
Rule type: FAILURE
 - 
FAILURE message:
DOCKERFILE param value (%s) is an external source - 
Code:
buildah_build_task.buildah_uses_local_dockerfile 
PLATFORM parameter
Verify the value of the PLATFORM parameter of a builder Task is allowed by matching against a list of disallowed patterns. The list of patterns can be customized via the disallowed_platform_patterns rule data key. If empty, all values are allowed.
Solution: Use a different PLATFORM value that is not disallowed by the policy config.
- 
Rule type: FAILURE
 - 
FAILURE message:
PLATFORM parameter value %q is disallowed by regex %q - 
Code:
buildah_build_task.platform_param - 
Effective from:
2024-09-01T00:00:00Z 
PRIVILEGED_NESTED parameter
Verify the PRIVILEGED_NESTED parameter of a builder Tasks was not set to true.
Solution: Setting PRIVILEGED_NESTED parameter to true is not allowed for most container image builds. Either set the parameter value to false or use a policy config that excludes this policy rule.
- 
Rule type: FAILURE
 - 
FAILURE message:
setting PRIVILEGED_NESTED parameter to true is not allowed - 
Code:
buildah_build_task.privileged_nested_param 
disallowed_platform_patterns format
Confirm the disallowed_platform_patterns rule data, if provided matches the expected format.
- 
Rule type: FAILURE
 - 
FAILURE message:
%s - 
Code:
buildah_build_task.disallowed_platform_patterns_pattern