Skip to content

api/metadata input validation: hashes #1441

@sechkova

Description

@sechkova

Description of issue or feature request:
Implement input validation for TargetFile and MetaFile hashes attribute.

Current behavior:
The new api/metadata code does not perform any input validation on hashes.
formats.py has a defined HASHDICT_SCHEMA that is not used in the new code.

Expected behavior:
Define allowed values for hashes.
Implement the verification in metadata.py

Metadata

Metadata

Assignees

Labels

backlogIssues to address with priority for current development goals

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions