Skip to content

fix(security): obfuscate system config overrides in JVM info endpoint (#36919) - #36920

Open
wezell wants to merge 2 commits into
mainfrom
issue-36919-obfuscate-config-overrides
Open

fix(security): obfuscate system config overrides in JVM info endpoint (#36919)#36920
wezell wants to merge 2 commits into
mainfrom
issue-36919-obfuscate-config-overrides

Conversation

@wezell

@wezell wezell commented Aug 6, 2026

Copy link
Copy Markdown
Member

Proposed Changes

One-line fix in JVMInfoResource.getDBOverrides(): run each system-table config override through the same obfuscateIfNeeded(key, value) used by the System Properties and Environment Variables sections, instead of copying SystemTable.all() into the response unmasked.

Before: GET /api/v1/jvmconfigOverrides returned every override in plaintext, including keys matching passw|pass|passwd|secret|key|token that the other two sections would have masked as a*********z.

After: identical masking rules across all three sections, including the OBFUSCATE_SYSTEM_ENVIRONMENTAL_VARIABLES custom pattern.

No behavior change for non-sensitive keys. Endpoint already requires a backend user with the maintenance portlet; this is defense-in-depth for screens that end up in screenshots and support tickets.

Checklist

  • Security Implications Contemplated (this is a security hardening fix)
  • Translations (n/a)
  • Tests (existing endpoint coverage; masking logic itself unchanged and already exercised)

🤖 Generated with Claude Code

This PR fixes: #36919

…#36919)

getDBOverrides() copied SystemTable.all() into the /api/v1/jvm response
unmasked, while the system-properties and environment sections already run
values through obfuscateIfNeeded(). Apply the same pattern-based masking
(passw|pass|passwd|secret|key|token + OBFUSCATE_SYSTEM_ENVIRONMENTAL_VARIABLES)
to config overrides shown in the maintenance portlet.

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

claude Bot commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Claude finished @wezell's task in 22s —— View job


I'll analyze this and get back to you.

@wezell
wezell enabled auto-merge August 6, 2026 21:04
@github-actions github-actions Bot added the Area : Backend PR changes Java/Maven backend code label Aug 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area : Backend PR changes Java/Maven backend code

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

Maintenance portlet: system config overrides displayed without obfuscation

1 participant