mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Bastian Krause <bst@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Bastian Krause <bst@pengutronix.de>
Subject: [ptxdist] [PATCH v3 0/6] Add code-signing-provider template, add code signing docs
Date: Wed, 17 Jun 2020 16:31:19 +0200	[thread overview]
Message-ID: <20200617143125.23999-1-bst@pengutronix.de> (raw)

The code signing infrastructure is available since 2019 in PTXdist. Now
it's time to document it, especially since RAUC also uses it.
Unfortunately this did not make it into ptxdist-2020.06.0.

To make things easier introduce a code-signing-provider template.

Changes since v2:
- introduce ptxd_template_read_options letting the user decide between
  limited options
- ask user about HSM type
- split HSM/SoftHSM ptxdist-set-keys.sh cases into separate files
- introduce wizard.sh to generate ptxdist-set-keys.sh HSM case specific
- set dependencies HSM case specific
- introduce pre rule template to extend CODE_SIGNING_ENV HSM case
  specific
- rename srk object name for consistency reasons
- adjust doc section "Creating Custom Code Signing Providers" to
  updated code signing provider templates
- remove "necessary package dependencies for code signing provider"
  from ref_code_signing_helpers, generated code signing providers now
  select all necessary host tools by default

Changes since (implicit) v1:
- rebased on master
- reference code signing consumers section in ref_code_signing_helpers
- split into sections: {SoftHSM Provider,Generic Provider,Consumer} Functions
- add introductory sentence for each section
- added Reviewed-by Roland
- added Tested-by Ladis

Bastian Krause (6):
  ptxd_lib_template: add ptxd_template_read_options
  package templates: add code-signing-provider template
  doc: dev_manual: split up into multiple files
  doc: move code signing docs from scripts/ into doc/
  doc: dev_code_signing: rework and extend code signing section
  doc: introduce ref_code_signing_helpers

 doc/dev_add_bin_only_files.rst                |  105 +
 doc/dev_add_new_pkgs.rst                      | 1339 +++++++++++++
 doc/dev_code_signing.rst                      |  138 ++
 doc/dev_create_new_pkg_templates.rst          |   77 +
 doc/dev_dir_hierarchy.rst                     |  108 +
 doc/dev_layers_in_ptxdist.rst                 |  111 ++
 doc/dev_manual.rst                            | 1765 +----------------
 doc/ref_code_signing_helpers.rst              |  248 +++
 doc/ref_manual.rst                            |    1 +
 .../ptxdist-set-keys-hsm.sh                   |   42 +
 .../ptxdist-set-keys-softhsm.sh               |   58 +
 .../templates/code-signing-provider/wizard.sh |   10 +
 .../template-code-signing-provider-choice-in  |    5 +
 .../template-code-signing-provider-in         |   14 +
 .../template-code-signing-provider-make       |   41 +
 .../template-code-signing-provider-pre-make   |   15 +
 scripts/lib/ptxd_lib_code_signing.sh          |   32 +-
 scripts/lib/ptxd_lib_template.sh              |   57 +
 18 files changed, 2381 insertions(+), 1785 deletions(-)
 create mode 100644 doc/dev_add_bin_only_files.rst
 create mode 100644 doc/dev_add_new_pkgs.rst
 create mode 100644 doc/dev_code_signing.rst
 create mode 100644 doc/dev_create_new_pkg_templates.rst
 create mode 100644 doc/dev_dir_hierarchy.rst
 create mode 100644 doc/dev_layers_in_ptxdist.rst
 create mode 100644 doc/ref_code_signing_helpers.rst
 create mode 100755 rules/templates/code-signing-provider/ptxdist-set-keys-hsm.sh
 create mode 100755 rules/templates/code-signing-provider/ptxdist-set-keys-softhsm.sh
 create mode 100644 rules/templates/code-signing-provider/wizard.sh
 create mode 100644 rules/templates/template-code-signing-provider-choice-in
 create mode 100644 rules/templates/template-code-signing-provider-in
 create mode 100644 rules/templates/template-code-signing-provider-make
 create mode 100644 rules/templates/template-code-signing-provider-pre-make

-- 
2.27.0


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de

             reply	other threads:[~2020-06-17 14:31 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-17 14:31 Bastian Krause [this message]
2020-06-17 14:31 ` [ptxdist] [PATCH v3 1/6] ptxd_lib_template: add ptxd_template_read_options Bastian Krause
2020-06-19  6:24   ` Michael Olbrich
2020-06-19  8:13     ` Bastian Krause
2020-06-19 22:04   ` [ptxdist] [APPLIED] " Michael Olbrich
2020-06-17 14:31 ` [ptxdist] [PATCH v3 2/6] package templates: add code-signing-provider template Bastian Krause
2020-06-18 11:40   ` Roland Hieber
2020-06-18 11:50     ` Bastian Krause
2020-06-19  6:12       ` Michael Olbrich
2020-06-19  6:28   ` Michael Olbrich
2020-06-19  7:52     ` Bastian Krause
2020-06-19 22:04   ` [ptxdist] [APPLIED] " Michael Olbrich
2020-09-24 10:04   ` [ptxdist] [PATCH v3 2/6] " Ladislav Michl
2020-09-24 11:05     ` Bastian Krause
2020-09-24 11:15       ` Ladislav Michl
2020-09-24 12:23         ` Bastian Krause
2020-06-17 14:31 ` [ptxdist] [PATCH v3 3/6] doc: dev_manual: split up into multiple files Bastian Krause
2020-06-19 22:04   ` [ptxdist] [APPLIED] " Michael Olbrich
2020-06-17 14:31 ` [ptxdist] [PATCH v3 4/6] doc: move code signing docs from scripts/ into doc/ Bastian Krause
2020-06-19 22:04   ` [ptxdist] [APPLIED] " Michael Olbrich
2020-06-17 14:31 ` [ptxdist] [PATCH v3 5/6] doc: dev_code_signing: rework and extend code signing section Bastian Krause
2020-06-19 22:04   ` [ptxdist] [APPLIED] " Michael Olbrich
2020-06-17 14:31 ` [ptxdist] [PATCH v3 6/6] doc: introduce ref_code_signing_helpers Bastian Krause
2020-06-19 22:04   ` [ptxdist] [APPLIED] " Michael Olbrich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200617143125.23999-1-bst@pengutronix.de \
    --to=bst@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox