Skip to content

(MODULES-12075) apache::mod::php adds an EOL openSUSE repo with auto-trusted keys on customer SLES nodes - #2663

Merged
imaqsood merged 1 commit into
mainfrom
MODULES-12075-sa
Nov 9, 2026
Merged

imaqsood merged 1 commit into
mainfrom
MODULES-12075-sa

Conversation

@imaqsood

Copy link
Copy Markdown
Contributor

Delete the SLES-only exec in apache::mod::php that ran zypper ar ... --gpg-auto-import-keys and zypper refresh to add an EOL openSUSE Leap repo, along with the require on it. Keep the SLES apache::mod branch, which needs the mod_${mod}.so lib path. The acceptance harness (spec/setup_acceptance_node.pp) already adds the fallback repo before the suite runs, so CI keeps its package source. Add a Suse unit spec checking that the class has no zypper exec.

Jira: https://perforce.atlassian.net/browse/MODULES-12075

Approach

A module should never change a customer's package sources, and the old exec auto-trusted GPG keys from an EOL repo. The repo was only there for unregistered GCP BYOS CI images, and spec/setup_acceptance_node.pp already sets it up through an exec run before the suite. That keeps acceptance working while removing the side effect from the shipped code. The patch release is a release-pipeline step; per the repo rules, the patch does not touch metadata.json or the CHANGELOG.

Acceptance criteria

  • apache::mod::php no longer adds or refreshes any zypper repo.: manifests/mod/php.pp, spec/classes/mod/php_spec.rb
  • Apache SLES-12/15 acceptance is still green with the repo set up in the harness.: spec/setup_acceptance_node.pp (unchanged; already sets up the repo), spec/acceptance (SLES 12/15 litmus run)
  • A patch release is out.: Not covered by this patch: needs a release-prep PR (metadata.json version and CHANGELOG) after merge

Local checks

cat-module (static, unit; full suite): pass, 15706 passed, 0 failed
🤖 Generated with Claude Code

@imaqsood
imaqsood requested review from a team, bastelfreak, ekohl and smortex as code owners October 29, 2026 07:04
…trusted keys on customer SLES nodes

Co-Authored-By: Claude <noreply@anthropic.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues are reported for the change removing automatic SLES repository management.

No open issues 🎉

What changed in this PR

Removes customer package-source changes from apache::mod::php while preserving SLES-specific module loading. Acceptance CI continues to rely on the existing repository setup in its harness.

Changes:

  • Removes the SLES fallback-repository exec and its dependency, eliminating automatic repository addition, key trust, and refresh.
  • Preserves the SLES mod_${mod}.so library path.
  • Adds Suse unit checks for successful compilation and the absence of zypper execs.
File Description
spec/​classes/​mod/​php_spec.rb Adds Suse regression checks against zypper repository management.
manifests/​mod/​php.pp Removes the repository exec and dependency while retaining SLES module configuration.

Review effort: Balanced

@imaqsood
imaqsood merged commit e4fe8c7 into main Nov 9, 2026
45 checks passed
@imaqsood
imaqsood deleted the MODULES-12075-sa branch November 9, 2026 06:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants