Skip to content

Commit

Permalink
Add workaround for expried GPG keys for auditbeat packaging (#33915)
Browse files Browse the repository at this point in the history
It's using Debian Wheezy which has expired GPG keys, we need
additional flags in order to package auditbeat now.
  • Loading branch information
rdner authored Dec 1, 2022
1 parent 5930bf6 commit a228948
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion x-pack/auditbeat/magefile.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,11 @@ func installDependencies(arch string, pkgs ...string) error {
return err
}

args := append([]string{"install", "-y", "--no-install-recommends"}, pkgs...)
// Due to the expired GPG keys in the old Debian version we must use `--force-yes` additionally to `-y`.
args := append([]string{
"install", "-y", "--force-yes",
"--allow-unauthenticated",
"--no-install-recommends",
}, pkgs...)
return sh.Run("apt-get", args...)
}

0 comments on commit a228948

Please sign in to comment.