Skip to content

Commit d7dba80

Browse files
committed
Remove role_auth_by_id from catalog dump
1 parent 105ee63 commit d7dba80

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

misc/python/materialize/checks/scenarios_upgrade.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010

1111
from materialize.checks.actions import Action, Initialize, Manipulate, Sleep, Validate
12-
from materialize.checks.all_checks import password_auth
1312
from materialize.checks.checks import Check
1413
from materialize.checks.executors import Executor
1514
from materialize.checks.features import Features

src/adapter/src/catalog/state.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2268,6 +2268,9 @@ impl CatalogState {
22682268
gids.remove(&gid.to_string());
22692269
}
22702270
}
2271+
// We exclude role_auth_by_id because it contains password information
2272+
// which should not be included in the dump.
2273+
dump_obj.remove("role_auth_by_id");
22712274

22722275
// Emit as pretty-printed JSON.
22732276
Ok(serde_json::to_string_pretty(&dump).expect("cannot fail on serde_json::Value"))

0 commit comments

Comments
 (0)