#2665 API for deleting signature
Closed: Fixed 3 years ago by tkopecek. Opened 4 years ago by tkopecek.

There is only option to delete whole build. We should have an ability to drop signature only (db + sigcache + signed copy).


Would be nice to also have a cli version. :)

Metadata Update from @kevin:
- Custom field Size adjusted to None

4 years ago

It should probably also remove signature from the RPM itself. In case of mock's sign plugin is used - even "unsigned version" is actually signed. Not sure how it is when RPM gets signed via robosignature or other solutions.

/mnt/koji/packages/kernel-lt/5.4.111/1.el7.gdc/x86_64/kernel-lt-5.4.111-1.el7.gdc.x86_64.rpm:
    Header V4 DSA/SHA1 Signature, key ID 10165ea6: OK
    Header SHA1 digest: OK
    V4 DSA/SHA1 Signature, key ID 10165ea6: OK
    MD5 digest: OK

Metadata Update from @tkopecek:
- Issue set to the milestone: 1.26

3 years ago

Metadata Update from @tkopecek:
- Issue untagged with: backlog
- Issue tagged with: feature

3 years ago

It should probably also remove signature from the RPM itself. In case of mock's sign plugin is used - even "unsigned version" is actually signed. Not sure how it is when RPM gets signed via robosignature or other solutions.

The primary rpm is not technically the "unsigned" copy. It is simply the original copy of the rpm that Koji received. While the case you are talking about is certainly something we should think about, we should definitely not modify build files like this. Builds are intended to be immutable.

In terms of process and usability, I don't see any problems with having such signatures in the original copy but not in the signature cache.

Note that this feature is only intended to be used rarely for problem cases. If this call needs to be used, then something has gone wrong with the signing process. This call provides a quick workaround (mistakes happen), but should not be used routinely.

Metadata Update from @jobrauer:
- Issue tagged with: testing-done, testing-ready

3 years ago

Final updated (and tested) version in #2965.

Log in to comment on this ticket.

Metadata
Related Pull Requests
  • #2965 Merged 3 years ago
  • #2962 Closed 3 years ago
  • #2946 Closed 3 years ago