Repository navigation
Fixes #28299: mask secrets nested below every oneOf branch - #37965
Merged
Merged
Conversation
The coverage test from #33193 converted only the first secret-bearing branch of each oneOf and only checked that the property itself was no longer a Map, so a secret in a later branch, or a oneOf nested inside a typed value, passed unnoticed. Checking every branch through a walk that mirrors the password walkers finds three secrets still returned unmasked: - PowerBI GCS pbitFilesSource: securityConfig.gcpConfig.privateKey - Superset API connection: sslConfig certificates and key - MySQL GCP CloudSQL authType: password and gcpConfig.privateKey convertProperty now sets a property through its getter's type, so a typed property such as GCPCredentials can be run through its own converter, and the registry gains converters for GcpCloudSqlConfig, the PowerBI GCSConfig and SupersetApiConnection. MySQL's authType candidates include CloudSQL.
A converter that dropped a nested secret would have passed the previous check, which only looked for the original value and any mask in the JSON.
Khairajani
enabled auto-merge (squash)
November 17, 2026 12:05
Choosing None for an optional oneOf (e.g. the Alation database connection)
submits {}, which converted to the first candidate class filled with schema
defaults.
Code Review ✅ Approved 🔴 High riskExtending nested secret conversion changes credential masking in API responses; incorrect conversion could expose stored passwords and private keys. Extends secret masking to nested VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledFor more verification details, comment OptionsDisplay: compact → Showing compact verification results. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
manerow
approved these changes
Nov 17, 2026
Merged
1 task done
7 of 9 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #28299
Follow-up to #33193. A bot review on its 2.0 backport (#37962) flagged that
NestedSecretConverterCoverageTestchecked only the first secret-bearingoneOfbranch, and only that the property itself was no longer aMap. Checking every branch, all the way down, finds three secrets the API still returns unmasked:pbitFilesSource:securityConfig.gcpConfig.privateKeysslConfigcertificates and keyauthType:passwordandgcpConfig.privateKeyChanges
ClassConverter.convertPropertysets a property through its getter's type, so a typed property (e.g.GCPCredentials) can run through its own converterGcpCloudSqlConfig, PowerBIGCSConfig,SupersetApiConnection; MySQLauthTypecandidates include CloudSQLPasswordEntityMaskerTest: one test per leak throughmaskServiceConnectionConfigVerification
org.openmetadata.service.secrets.**tests pass (417)🤖 Generated with Claude Code
Summary by Gitar
oneOfmaps are left unconverted inClassConverter.convertPropertyto avoid schema-default candidatesNestedConfigClassConverterTestcovering populated and empty database connectionsThis will update automatically on new commits.


Confidence Score: 5/5
The reviewed changes appear safe to merge.Summary
The PR makes nested secrets reachable by the password walkers for PowerBI GCS, Superset API, and MySQL CloudSQL connections.
Reviews (3) · Last reviewed commit: "Keep an empty oneOf object as it is inst..." · Reviewed by Greptile