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

Enable gpgcheck for YUM RPM based Distributions #205

Merged
merged 1 commit into from
Nov 22, 2024

Conversation

traylenator
Copy link
Contributor

Pull Request (PR) description

Currently the yum repositories for gitlab runner installations are preset with a hardcoded gpgcheck => 0.

Introduce new parameters:

  • pacakage_gpgcheck defaulting to true that sets gpgcheck => 1 for yum based distributions.
  • package_keysource defaulting to current location of the gpg key for gitlab package.

By default gpgchecking will now be enabled for RPM/YUM based distributions which was not the case before.

See:

@traylenator traylenator changed the title Switch gpgcheck for YUM to True for RPM based Distributions Enable gpgcheck for YUM RPM based Distributions Sep 10, 2024
Currently the yum repositories for gitlab runner installations
are preset with a hardcoded `gpgcheck => 0`.

Introduce new parameters:

* `pacakage_gpgcheck` defaulting to true that sets `gpgcheck => 1` for yum
  based distributions.
* `package_keysource` defaulting to current location of the gpg key for gitlab package.

By default gpgchecking will now be enabled for RPM/YUM based
distributions which was not the case before.

See:

* Package signature https://docs.gitlab.com/runner/install/linux-repository.html#rpm-based-distributions
* Repository signature  https://packages.gitlab.com/app/gitlab/gitlab-ce/gpg
@@ -42,13 +44,14 @@
$source_base_url = "${repo_base_url}/runner/${package_name}/el/\$releasever/SRPMS"
}

$_gpgkeys = [$repo_keysource,$package_keysource].delete_undef_values.join(' ')
Copy link
Member

Choose a reason for hiding this comment

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

oh I didn't know that a repo config allows multiple keys

@bastelfreak bastelfreak merged commit 360f3c9 into voxpupuli:master Nov 22, 2024
25 checks passed
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

Successfully merging this pull request may close these issues.

2 participants