Resolve "Create offswitch for testing migration away from .greylist files"
Closes #190 (closed)
This MR adds an offswitch for greylist backwards compatibility. Before merging to master, we'll need to create a CI/CD environment variable in Ironbank Containers with key GREYLIST_BACK_COMPAT
and value True
.
Successful test jobs:
- Preflight stage, source image doesn't have hardening_manifest.yaml. File is autogenerated. GREYLIST_BACK_COMPAT=True
- Preflight stage, source image doesn't have hardening_manifest.yaml. GREYLIST_BACK_COMPAT=False
- Lint stage, base image doesn't have hardening_manifest.yaml. GREYLIST_BACK_COMPAT=True
- Lint stage, base image doesn't have hardening_manifest.yaml. GREYLIST_BACK_COMPAT=False (default)
- Csv-output stage, base image doesn't have hardening_manifest.yaml. GREYLIST_BACK_COMPAT=True
- Csv-output stage, base image doesn't have hardening_manifest.yaml. GREYLIST_BACK_COMPAT=False