← Back to team overview

launchpad-reviewers team mailing list archive

[Merge] ~lgp171188/launchpad:add-key-injection-script into launchpad:master

 

Guruprasad has proposed merging ~lgp171188/launchpad:add-key-injection-script into launchpad:master.

Commit message:
Add a script to invoke InjectExtraGPGSigningKeyScript

This will be used to inject extra GPG signing keys for an archive.


Requested reviews:
  Launchpad code reviewers (launchpad-reviewers)

For more details, see:
https://code.launchpad.net/~lgp171188/launchpad/+git/launchpad/+merge/469959
-- 
Your team Launchpad code reviewers is requested to review the proposed merge of ~lgp171188/launchpad:add-key-injection-script into launchpad:master.
diff --git a/scripts/inject-extra-gpg-signing-key.py b/scripts/inject-extra-gpg-signing-key.py
new file mode 100644
index 0000000..02d3de7
--- /dev/null
+++ b/scripts/inject-extra-gpg-signing-key.py
@@ -0,0 +1,18 @@
+#!/usr/bin/python3 -S
+# Copyright 2024 Canonical Ltd.  This software is licensed under the
+# GNU Affero General Public License version 3 (see the file LICENSE).
+
+"""Script to inject an extra archive GPG signing key into signing service."""
+
+import _pythonpath  # noqa: F401
+
+from lp.archivepublisher.scripts.inject_extra_gpg_signing_key import (
+    InjectExtraGPGSigningKeyScript,
+)
+from lp.services.config import config
+
+if __name__ == "__main__":
+    script = InjectExtraGPGSigningKeyScript(
+        "inject-extra-gpg-signing-key", dbuser=config.archivepublisher.dbuser
+    )
+    script.lock_and_run()