From eb5a9990edb91c3b30a636353d85499cf53d5653 Mon Sep 17 00:00:00 2001 From: Jeffery To Date: Fri, 18 Oct 2019 15:08:17 +0800 Subject: [PATCH] circleci: Add 19.07 GPG/usign public keys, verify keys This also updates the user id comments for GPG keys and untrusted comments for usign keys. Signed-off-by: Jeffery To --- .circleci/Dockerfile | 23 ++++++++++++++++++----- .circleci/config.yml | 2 +- 2 files changed, 19 insertions(+), 6 deletions(-) diff --git a/.circleci/Dockerfile b/.circleci/Dockerfile index 274edb8e4..342a09bc5 100644 --- a/.circleci/Dockerfile +++ b/.circleci/Dockerfile @@ -7,6 +7,7 @@ FROM debian:9 # v1.0.2 - Add bzr # v1.0.3 - Verify usign signatures # v1.0.4 - Add support for Python3 +# v1.0.5 - Add 19.07 public keys, verify keys RUN apt update && apt install -y \ build-essential \ @@ -33,18 +34,30 @@ RUN useradd -c "OpenWrt Builder" -m -d /home/build -s /bin/bash build USER build ENV HOME /home/build -# LEDE Build System (LEDE GnuPG key for unattended build jobs) +# OpenWrt Build System (PGP key for unattended snapshot builds) RUN curl 'https://git.openwrt.org/?p=keyring.git;a=blob_plain;f=gpg/626471F1.asc' | gpg --import \ + && gpg --fingerprint --with-colons '' | grep '^fpr:::::::::54CC74307A2C6DC9CE618269CD84BCED626471F1:$' \ && echo '54CC74307A2C6DC9CE618269CD84BCED626471F1:6:' | gpg --import-ownertrust -# LEDE Release Builder (17.01 "Reboot" Signing Key) +# OpenWrt Build System (PGP key for 17.01 "Reboot" release builds) RUN curl 'https://git.openwrt.org/?p=keyring.git;a=blob_plain;f=gpg/D52BBB6B.asc' | gpg --import \ + && gpg --fingerprint --with-colons '' | grep '^fpr:::::::::B09BE781AE8A0CD4702FDCD3833C6010D52BBB6B:$' \ && echo 'B09BE781AE8A0CD4702FDCD3833C6010D52BBB6B:6:' | gpg --import-ownertrust # OpenWrt Release Builder (18.06 Signing Key) RUN curl 'https://git.openwrt.org/?p=keyring.git;a=blob_plain;f=gpg/17E1CE16.asc' | gpg --import \ + && gpg --fingerprint --with-colons '' | grep '^fpr:::::::::6768C55E79B032D77A28DA5F0F20257417E1CE16:$' \ && echo '6768C55E79B032D77A28DA5F0F20257417E1CE16:6:' | gpg --import-ownertrust -# LEDE Build System (LEDE usign key for unattended build jobs) -RUN curl 'https://git.openwrt.org/?p=keyring.git;a=blob_plain;f=usign/b5043e70f9a75cde' --create-dirs \ - -o /home/build/usign/b5043e70f9a75cde +# OpenWrt Build System (PGP key for 19.07 release builds) +RUN curl 'https://git.openwrt.org/?p=keyring.git;a=blob_plain;f=gpg/2074BE7A.asc' | gpg --import \ + && gpg --fingerprint --with-colons '' | grep '^fpr:::::::::D9C6901F45C9B86858687DFF28A39BC32074BE7A:$' \ + && echo 'D9C6901F45C9B86858687DFF28A39BC32074BE7A:6:' | gpg --import-ownertrust + +# untrusted comment: Public usign key for unattended snapshot builds +RUN curl 'https://git.openwrt.org/?p=keyring.git;a=blob_plain;f=usign/b5043e70f9a75cde' --create-dirs -o /home/build/usign/b5043e70f9a75cde \ + && echo 'd7ac10f9ed1b38033855f3d27c9327d558444fca804c685b17d9dcfb0648228f */home/build/usign/b5043e70f9a75cde' | sha256sum --check + +# untrusted comment: Public usign key for 19.07 release builds +RUN curl 'https://git.openwrt.org/?p=keyring.git;a=blob_plain;f=usign/f94b9dd6febac963' --create-dirs -o /home/build/usign/f94b9dd6febac963 \ + && echo 'b1d09457cfbc36fccfe18382d65c54a2ade3e7fd3902da490a53aa517b512755 */home/build/usign/f94b9dd6febac963' | sha256sum --check diff --git a/.circleci/config.yml b/.circleci/config.yml index 111440797..8b28976f9 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -2,7 +2,7 @@ version: 2.0 jobs: build: docker: - - image: docker.io/openwrtorg/packages-cci:v1.0.4 + - image: docker.io/openwrtorg/packages-cci:v1.0.5 environment: - SDK_HOST: "downloads.openwrt.org" - SDK_PATH: "snapshots/targets/ath79/generic"