Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Verify package signatures on RedHat #163

Closed
mxey opened this issue Oct 16, 2017 · 4 comments
Closed

Verify package signatures on RedHat #163

mxey opened this issue Oct 16, 2017 · 4 comments
Labels
enhancement New feature or request

Comments

@mxey
Copy link

mxey commented Oct 16, 2017

Gitlab has signed RPM packages for Omnibus (not for Runner, though). The gpgcheck option for the yumrepo should be enabled.

@mhyzon
Copy link
Contributor

mhyzon commented Dec 6, 2017

The gpg key that is specified in the yumrepo resource is incorrect, at least for the ee version. When you use the gitlab omnibus install method, the https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.rpm.sh script pulls a repo config from https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/config_file.repo?os=${os}&dist=${dist}&source=script

And at least for me (RHEL7), returns a yum .repo file with 2 gpgkeys:

https://packages.gitlab.com/gitlab/gitlab-ee/gpgkey
https://packages.gitlab.com/gitlab/gitlab-ee/gpgkey/gitlab-gitlab-ee-3D645A26AB9FBD22.pub.gpg

The first is actually a 302 to https://packages.gitlab.com/gpg.key (what install.pp has), but the 2nd is a completely different key (and the proper key for the gitlab-ee RPMs, AFAICT.

@mhyzon
Copy link
Contributor

mhyzon commented Dec 6, 2017

In the mean time, you should be able to override the resource attributes with a collector like:

Yumrepo <| tag == 'gitlab::install' |> {
    gpgcheck => 1,
    gpgkey   => [THE PROPER KEY FOR YOUR EDITION],
}

@mhyzon
Copy link
Contributor

mhyzon commented Dec 6, 2017

Created Pull Request #172

@juniorsysadmin
Copy link
Member

Fixed by #172

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants