Skip to content

Remove cf-helper-php from test fixtures to fix Composer 2.9.8 failures#1273

Merged
tnikolova82 merged 1 commit into
masterfrom
fix-composer-security-advisory-failures
May 27, 2026
Merged

Remove cf-helper-php from test fixtures to fix Composer 2.9.8 failures#1273
tnikolova82 merged 1 commit into
masterfrom
fix-composer-security-advisory-failures

Conversation

@ivanovac
Copy link
Copy Markdown
Contributor

Summary

  • Remove unmaintained cloudfoundry-community/cf-helper-php 1.6.* from with_phpredis and with_amqp test fixtures
  • Simplify with_phpredis/index.php to connect directly to localhost instead of using CfHelper VCAP_SERVICES parsing

Problem

Composer 2.9.8 introduced block-insecure audit behavior that blocks packages with known security advisories by default. The cf-helper-php 1.6.* dependency transitively requires:

  • filp/whoops ~1.1 (advisory PKSA-vbfj-ghxh-xgb7)
  • symfony/yaml ~2.5 (advisories PKSA-v5yj-8nmz-sk2q, PKSA-ft77-7h5f-p3r6, PKSA-b14r-zh1d-vdrc)

This causes composer install to fail during staging, breaking the app_with_phpredis_module and app_with_amqp_module switchblade tests.

Why removal instead of upgrade

  • cf-helper-php is effectively abandoned (last release: Jan 2020)
  • Neither test verifies cf-helper-php functionality — they only check that PHP extensions (ext-redis, ext-amqp, ext-igbinary) load correctly
  • The with_amqp fixture never imported cf-helper-php in its code at all
  • The with_phpredis fixture used CfHelper to parse VCAP_SERVICES for Redis connection info, but always falls back to localhost defaults since no Redis service is bound in tests

Composer 2.9.8 blocks packages with known security advisories by
default. The cf-helper-php 1.6.x dependency pulls in filp/whoops ~1.1
and symfony/yaml ~2.5, both flagged with advisories, causing staging
failures in the phpredis and amqp module tests.

Remove cf-helper-php from both fixtures since the tests only verify
that PHP extensions (ext-redis, ext-amqp) load correctly. Simplify the
phpredis index.php to connect directly to localhost instead of using
CfHelper to parse VCAP_SERVICES (no Redis service is bound in tests).
@tnikolova82 tnikolova82 merged commit d1a2b23 into master May 27, 2026
7 checks passed
@tnikolova82 tnikolova82 deleted the fix-composer-security-advisory-failures branch May 27, 2026 10:35
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