You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(team): profile import crashes on a bad field and the secret scrubber misses pwd / private_key #1564
TeamProfileCodec.decode (lib/core/team/team_profile.dart:129-133) uses unchecked casts (item['port'] as int?, item['host'] as String?, username, databaseName, authSource, extensionId). A hand-edited or version-skewed file throws TypeError (not TeamProfileFormatException) and the whole import fails instead of skipping the bad row.
The secret scrubber _secretKey (:25) is pass(word|phrase)?|secret|token|api_?key and misses pwd, private_key / privateKey, credential(s), access_key, signature. Such keys in driverOptions or in the connection-string query survive export and import.
Expected
Type-check each field (pattern matching), skip invalid rows and report how many were skipped.
Extend the key pattern (and add tests for pwd, privateKey, private_key, accessKey, credentials).
Fixed on dev by b9a337c: fix(team): profile import skips and counts unreadable entries instead of throwing; scrub pwd, private keys, ac. It reaches main with the next dev to main merge (closed after checking the code and its tests).
Activity
fix(team): profile import skips and counts unreadable entries instead…
ZhuchkaTriplesix commentedon Oct 25, 2026
Fixed on dev by b9a337c: fix(team): profile import skips and counts unreadable entries instead of throwing; scrub pwd, private keys, ac. It reaches main with the next dev to main merge (closed after checking the code and its tests).