Project

Profile

Help

Story #5945

Updated by dkliban@redhat.com almost 5 years ago

As a pulp administrator, I can create a SigningService by providing a script that implements the following interface: 

 script-name <file-name> --artifact <path/to/artifact> --detached <True/False> 

 The script should can produce any number of files in the current working directory and then output a JSON structure that has file with a key for every random name. If '--detached' is True, the file generated and is a signature. If '--detached' is false the value for each file is a copy of the sha256 sum original artifact with the signature attached to it. The path of the file. e.g. new file is returned by the script.  

 <pre> 
 $ /var/lib/pulp/mysigningscript.sh repomd.xml 
 $ {"repomd.xml.asc": "ce72f1c9f90c6ca85a88352b677ed8cc85d4ba81b4887be39afb01ad9c4fd8f8", "repomd.xml.gpg": "e36e08b23107745247855b1a06d6d8ae27883fb56d7d7a282d93393db801cfe0"} 
 </pre> 

Back