Ideally, when user clicks on sign entire collection it opens a modal and user has the chance to review the current state
----------------------------------------------
This collection has 10 total versions |
are you sure you want to sign all selected versions using ansible-default signing service? |
-------------------------------------------------
Once clicked Yes, then UI makes a call to /v3/sign/collections passing the payload which specifies signing_service: ..., content_units: ...
Right now there is only one signing service ansible-default (this is available on settings:COLLECTION_SIGNING_SERVICE) setting.
But in future we might have multiple sign services and then the user would select which signing service to use.
There is no problem if the user sign a collection twice using the same key, backend validates and skip adding the same signature to the collection.