-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
86 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
.. _workflows_signing_service: | ||
|
||
Signing Service Creation | ||
================================================================================ | ||
|
||
To sign your APT release files on your ``pulp_deb`` publications, you will first need to create a signing service of type ``AptReleaseSigningService``. | ||
|
||
|
||
Prerequisites | ||
-------------------------------------------------------------------------------- | ||
|
||
Creating a singing service requires the following pieces of information: | ||
|
||
- A unique name for the signing service, use ``pulp signing-service list --field=name`` to see what has been taken already. | ||
- The public key fingerprint of the GPG key that the signing service should use for signing. | ||
The public key itself must be available in the pulp user's GPG home directory. | ||
- A path to a signing script or executable that must meet the following criteria: | ||
|
||
- Must be executable by the user pulp is running as. | ||
- Must be available on each pulp worker. | ||
- When a path to a file that is to be signed, e.g.: ``/tmp/LJDSFHD/Release`` is passed to the executable, it must return a JSON dict like the following: | ||
|
||
.. code-block:: json | ||
{ | ||
"signatures": { | ||
"inline": "/tmp/LJDSFHD/InRelease", | ||
"detached": "/tmp/LJDSFHD/Release.gpg", | ||
} | ||
} | ||
Here, either ``inline`` or ``detached`` may be omitted but we recommend creating both. | ||
In addition, the values for ``inline`` and ``detached`` must be the path to a file, that can be verified against the input file using the GPG key associated with the signing service. | ||
|
||
|
||
Example Signing Script | ||
-------------------------------------------------------------------------------- | ||
|
||
The following example signing service script is used as part of the ``pulp_deb`` test suite: | ||
|
||
.. literalinclude:: ../../pulp_deb/tests/functional/sign_deb_release.sh | ||
:language: bash | ||
|
||
It assumes that both public and secret key for ``GPG_KEY_ID="Pulp QE"`` is present in the GPG home of the Pulp user and that the secret key is not protecteded by a password. | ||
|
||
|
||
Creation Workflow | ||
-------------------------------------------------------------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters