Create a upload check to verify if the issuer can upload the plugin
Summary:
Need to check the plugin certificate for a given request upload to not corrupt other plugin. A public key of the remote and request certificate is done.
Test:
- Upload a sign test plugin
- call /upload/<arch>/<id> with the same id and arch that you upload the plugin
- add to the request the certificate in the http header field Authorization with a different certificate than the one use to sign the plugin
- you should have a Forbidden http response status
- do the 3 and 4 points with the good certificate
- you should have a Ok http response status
- if you do not include certificate
- you should have a Bad Request http response status