Skip to content

Fix ClusterIssuer filter to handle non-ACME issuers in RHACS role#144

Merged
treddy08 merged 1 commit into
mainfrom
rhacs-fix-clusterissuer-filter-treddy
May 2, 2026
Merged

Fix ClusterIssuer filter to handle non-ACME issuers in RHACS role#144
treddy08 merged 1 commit into
mainfrom
rhacs-fix-clusterissuer-filter-treddy

Conversation

@treddy08
Copy link
Copy Markdown
Contributor

@treddy08 treddy08 commented May 2, 2026

The previous implementation failed when non-ACME ClusterIssuers (e.g., selfsigned) were present because it attempted to access spec.acme.server on all issuers.

Changed from using rejectattr() filter to JMESPath expression that properly handles null values by checking if spec.acme.server exists before testing for Google CA.

When reencrypt route is enabled:

  • Filters out Google Trust Services ACME issuers (/acme/google/)
  • Keeps all other ACME issuers (ZeroSSL, Let's Encrypt, etc.)
  • Keeps all non-ACME issuers (selfsigned, ca, vault, etc.)

When reencrypt route is disabled:

  • Keeps all Ready ClusterIssuers (no filtering by CA provider)

Tested against cluster with: acme-bifrost-production-ddns (Google), acme-bifrost-production-ddns-fallback (ZeroSSL), and selfsigned.

The previous implementation failed when non-ACME ClusterIssuers (e.g., selfsigned)
were present because it attempted to access spec.acme.server on all issuers.

Changed from using rejectattr() filter to JMESPath expression that properly handles
null values by checking if spec.acme.server exists before testing for Google CA.

When reencrypt route is enabled:
- Filters out Google Trust Services ACME issuers (/acme/google/)
- Keeps all other ACME issuers (ZeroSSL, Let's Encrypt, etc.)
- Keeps all non-ACME issuers (selfsigned, ca, vault, etc.)

When reencrypt route is disabled:
- Keeps all Ready ClusterIssuers (no filtering by CA provider)

Tested against cluster with: acme-bifrost-production-ddns (Google),
acme-bifrost-production-ddns-fallback (ZeroSSL), and selfsigned.
@treddy08 treddy08 merged commit 852ebac into main May 2, 2026
1 check failed
@treddy08 treddy08 deleted the rhacs-fix-clusterissuer-filter-treddy branch May 2, 2026 21:46
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.

1 participant