Skip to content

Update GPG keys#5

Open
msylgj wants to merge 1 commit intoimmortalwrt:masterfrom
msylgj:fix-gpg-warn
Open

Update GPG keys#5
msylgj wants to merge 1 commit intoimmortalwrt:masterfrom
msylgj:fix-gpg-warn

Conversation

@msylgj
Copy link
Copy Markdown
Member

@msylgj msylgj commented Mar 23, 2026

No description provided.

Copilot AI review requested due to automatic review settings March 23, 2026 13:40
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the Ubuntu PPA signing keys used by the build environment initialization script so APT can continue to authenticate packages from the configured PPAs.

Changes:

  • Update the git-core PPA key ID used to fetch the signing key from keyserver.ubuntu.com.
  • Update the longsleep/golang-backports PPA key ID used to fetch the signing key from keyserver.ubuntu.com.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 192 to +196
cat <<-EOF >"/etc/apt/sources.list.d/git-core-ubuntu-ppa.list"
deb https://ppa.launchpadcontent.net/git-core/ppa/ubuntu $UBUNTU_CODENAME main
deb-src https://ppa.launchpadcontent.net/git-core/ppa/ubuntu $UBUNTU_CODENAME main
EOF
curl -fsL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0xe1dd270288b4e6030699e45fa1715d88e1df1f24" -o "/etc/apt/trusted.gpg.d/git-core-ubuntu-ppa.asc"
curl -fsL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0xf911ab184317630c59970973e363c90f8f1b6217" -o "/etc/apt/trusted.gpg.d/git-core-ubuntu-ppa.asc"
Copy link

Copilot AI Mar 23, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These PPA keys are still being installed into /etc/apt/trusted.gpg.d, which makes them trusted for all APT sources. Since this script already uses per-repo keyrings via signed-by (e.g., GitHub CLI), consider moving this key into /etc/apt/keyrings and updating the corresponding .list entry to use signed-by=... so the trust is scoped to just the git-core PPA. Also, after updating the git-core key, please re-check whether the Acquire::AllowInsecureRepositories workaround later in this function is still required on trixie; leaving it enabled unnecessarily weakens signature verification globally.

Copilot uses AI. Check for mistakes.
Comment on lines 207 to +211
cat <<-EOF >"/etc/apt/sources.list.d/longsleep-ubuntu-golang-backports-$UBUNTU_CODENAME.list"
deb https://ppa.launchpadcontent.net/longsleep/golang-backports/ubuntu $UBUNTU_CODENAME main
deb-src https://ppa.launchpadcontent.net/longsleep/golang-backports/ubuntu $UBUNTU_CODENAME main
EOF
curl -fsL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x52b59b1571a79dbc054901c0f6bc817356a3d45e" -o "/etc/apt/trusted.gpg.d/longsleep-ubuntu-golang-backports-$UBUNTU_CODENAME.asc"
curl -fsL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x876b22ba887ca91614b5323fc631127f87fa12d1" -o "/etc/apt/trusted.gpg.d/longsleep-ubuntu-golang-backports-$UBUNTU_CODENAME.asc"
Copy link

Copilot AI Mar 23, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same concern as above: placing the golang-backports PPA key in /etc/apt/trusted.gpg.d globally trusts this key for all repositories. Prefer storing it under /etc/apt/keyrings and referencing it from the longsleep-ubuntu-golang-backports-*.list file with a signed-by=... option to scope trust to this PPA only.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants