Skip to content

OAuth2 client_credentials: fix validation gaps and harden test coverage#413

Merged
jmazzitelli merged 1 commit into
kiali:masterfrom
jmazzitelli:9787-oauth-client-followup
Jun 2, 2026
Merged

OAuth2 client_credentials: fix validation gaps and harden test coverage#413
jmazzitelli merged 1 commit into
kiali:masterfrom
jmazzitelli:9787-oauth-client-followup

Conversation

@jmazzitelli
Copy link
Copy Markdown
Contributor

Addresses follow-up issues identified during review of the OAuth2 client_credentials feature: missing client_secret validation, validation firing for disabled services, and gaps in test coverage across services.

fixes: kiali/kiali#9787

@jmazzitelli jmazzitelli self-assigned this Jun 1, 2026
@jmazzitelli jmazzitelli moved this from 📋 Backlog to 🏗 In progress in Kiali Sprint 26-08 | Kiali v2.28 Jun 1, 2026
@jmazzitelli jmazzitelli force-pushed the 9787-oauth-client-followup branch from 357827c to bd51568 Compare June 2, 2026 00:27
Addresses follow-up issues identified during review of the OAuth2
client_credentials feature: missing client_secret validation, validation
firing for disabled services, and gaps in test coverage across services.

fixes: kiali/kiali#9787
Copy link
Copy Markdown
Contributor

@jshaughn jshaughn left a comment

Choose a reason for hiding this comment

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

LOK

{{- if .Values.external_services }}
{{- /* Prometheus - only if enabled (defaults to true when not set) */ -}}
{{- if and .Values.external_services.prometheus (not (eq (toString .Values.external_services.prometheus.enabled) "false")) .Values.external_services.prometheus.auth }}
{{- if and .Values.external_services.prometheus (not (eq (toString .Values.external_services.prometheus.enabled | default "true") "false")) .Values.external_services.prometheus.auth }}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Not sure this default "true" does anything but I don't think it's a big deal.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

that was actually added because AI thought this would be confusing without it (this follows the pattern everywhere else)

@jmazzitelli jmazzitelli merged commit b6aace0 into kiali:master Jun 2, 2026
4 checks passed
@jmazzitelli jmazzitelli deleted the 9787-oauth-client-followup branch June 2, 2026 14:52
@github-project-automation github-project-automation Bot moved this from 👀 In review to ✅ Done in Kiali Sprint 26-08 | Kiali v2.28 Jun 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

OAuth2 client_credentials: follow-up fixes and improvements across kiali, operator, and helm-charts

2 participants