Repository navigation
Fixes #28299: encrypt the connection secrets that are still saved in plain text - #38117
Conversation
- SSIS: type databaseConnection through the MSSQL converter, so its sslConfig and authType are typed and encrypted. - Qlik Sense certificates and NATS authType: their oneOf branches were inline definitions, which jsonschema2pojo generates no class for; move them to their own schema files (titles unchanged) and register converters. - migrate now re-encrypts stored workflows (Test Connection requests) the way it does services; the unused updateWorkflow also saved through the wrong DAO. - The coverage test also checks typed connection properties whose own oneOf holds secrets, which is how SSIS slipped through.
Its oneOf branches were inline definitions with no generated class; move them
to dashboard/sapS4Hana/{basicAuth,oAuthCredentials}.json (titles and javaTypes
unchanged) and register a converter. KNOWN_UNCONVERTIBLE is now empty.
The generated Python classes move with them: Collate's SAP S/4HANA connector
imports them, so it needs the matching import change.
…tinct once cleaned
1358ee7 to
2b5ae58
Compare
A position id moved when servers were reordered, so replacing or clearing one key wrote over, or deleted, the secret the other server still referenced. Such names now get an id from a hash of the exact name.
Code Review ✅ Approved 🔴 High risk 3 closed / 3 findingsThe migration rewrites stored service and workflow secrets and masks history; mistakes could make credentials inaccessible or irreversibly lose historical values. Encrypts remaining connection secrets by moving SSIS sslConfig, Qlik Sense certificates, NATS authType and SAP S/4HANA authType into typed converters, re-encrypts stored workflows and soft-deleted rows on migrate, and masks service history secrets. Resolved the missing ADR for splitting secret oneOf branches, the untested soft-deleted re-encryption path, and the SAP S/4HANA class move that Collate imports. No open issues found. ✅ 3 closed✅ Quality: Rule to split secret oneOf branches into schema files is not recorded
✅ Quality: Soft-deleted re-encryption in migrate has no test that fails without it
✅ Bug: SAP S/4HANA authType split moves generated classes Collate imports
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 |
Fixes #28299
Follow-up to #33193 and #37965, from the review of #37975. Some connection secrets are still saved in plain text on main, so
migratecan't encrypt them and #37975 only masks their old copies.Changes
databaseConnectionis a typedMssqlConnection, but the SSIS converter never passed it through the MSSQL converter. ItssslConfig(andauthType) stayed untyped.certificates, NATSauthTypeand SAP S/4HANAauthType: theironeOfbranches were inline#/definitions, which jsonschema2pojo generates no class for. They move to their own schema files with titles unchanged (the same fix Fixes #28299: mask and encrypt secrets nested in a schema oneOf #33193 made for SFTP), and get registered converters. The Python connectors import the new modules; the TypeScript and public JSONs are regenerated.migrate:migratenow re-encrypts stored workflows (Test Connection requests) the way it does services. TheupdateWorkflowthat existed was never called, and it saved through the ingestion pipeline DAO.migratenow also re-encrypts soft-deleted services and workflows, which it skipped before.ADR:2026-11-19-secret-bearing-oneof-branches-live-in-their-own-schema-filesrecords the split rule and the Collate merge order.oneOfholds secrets, which is how SSIS slipped through.KNOWN_UNCONVERTIBLEis now empty.Prod/prod). The v3 amendment toADR:2026-11-11-mcp-service-server-names-are-unique-and-masks-need-a-stored-valuerecords both rules.secret:values too, since the database secrets manager reads them as a password.Tests
NestedSecretConverterCoverageTestfailed first on SSIS, Qlik Sense, NATS and SAP S/4HANA.PasswordEntityMaskerTestcases cover SSIS, Qlik Sense, NATS and SAP S/4HANA.org.openmetadata.service.secretstests pass.SecretsManagerUpdateSoftDeletedITsoft-deletes a service and a Test Connection workflow with a plain text password, runs the update, and checks both are stored encrypted. It fails without the fix.ReflectionUtilCollectionKeysTestandPasswordEntityMaskerTestcases cover reordered, deleted and case-only server names.ServiceVersionSecretsMaskingTestcovers asecret:value; an upgrade 2.0.7 → 2.1 RC → this branch masked the history the 2.1 RC had skipped.End-to-end test: 2.0.7 upgraded to this branch plus #37975 (MySQL, ES 9.3)
oneOfbranch of every connector, with a unique marker in each of 632 secret fields. Each was saved 3 times, along with a Test Connection workflow.migrateexited 0.securityConfig.jwtToken, which is onDO_NOT_ENCRYPT_CLASSESby design.migratecarries on.sampleDataStorageConfig(37)🤖 Generated with Claude Code


Confidence Score: 5/5
The PR appears safe to merge with the documented Collate update coordinated.Summary
This PR closes gaps in connection-secret encryption and masking, including stored workflows, soft-deleted records, and version history.
Khairajani acknowledges the SAP Python import change and requires Collate #8684 to merge immediately after this PR.
Reviews (10) · Last reviewed commit: "Name boolean locals as questions in vers..." · Reviewed by Greptile