Add ingest feature flag
https://redmine.teklia.com/issues/8009
A new ingest feature flag, under the features section of the YAML configuration, should be added. It is disabled by default.
When this feature flag is disabled:
- The
ListBucketsandCreateS3Importendpoints should both fail with an HTTP 400 error. No further validation or processing should occur in this case. It is probably most easily done by overridingcheck_permissionson both endpoints. - The
ProcessBuildershould also raise aValidationError, to ensure that starting or retrying an existing S3 import also fails, not just creating a new one. - The system checks for the various
INGEST_*settings, as well asWorkerVersion.objects.ingest_version, should not return any error or warning.