Skip to content

Implement strict checksum validation option for Repository #1512

Open
@sbespalov

Description

@sbespalov

Task Description

We need to have an strictChecksum option for Repository which will prevent of uploading artifacts with broken checksum. For now we have only ERROR log message in case of invalid checksum (see ArtifactManagementService.validateUploadedChecksumAgainstCache).

This should be configurable.

Tasks

The following tasks will need to be carried out:

  • Add strictChecksum property of type boolean for org.carlspring.strongbox.storage.repository.Repository interface
  • Support strictChecksum option for repositories items in strongbox.yaml
  • Throw ArtifactStorageException in case of matchesChecksum returns false and Repository.isStrictChecksum() == true within ArtifactManagementService#validateUploadedChecksumAgainstCache
  • Provide Unit Tests covering new feature
  • Update the strongbox-yaml documentation in strongbox-docs

Useful Links

Help

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions