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
Copy file name to clipboardExpand all lines: crates/syn2mas/src/synapse_reader/checks.rs
+19-12Lines changed: 19 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,8 @@
5
5
6
6
//! # Synapse Checks
7
7
//!
8
-
//! This module provides safety checks to run against a Synapse database before running the Synapse-to-MAS migration.
8
+
//! This module provides safety checks to run against a Synapse database before
9
+
//! running the Synapse-to-MAS migration.
9
10
10
11
use figment::Figment;
11
12
use mas_config::{
@@ -15,9 +16,8 @@ use mas_config::{
15
16
use sqlx::{prelude::FromRow, query_as, query_scalar,PgConnection};
16
17
use thiserror::Error;
17
18
18
-
usecrate::mas_writer::MIGRATED_PASSWORD_VERSION;
19
-
20
19
usesuper::config::Config;
20
+
usecrate::mas_writer::MIGRATED_PASSWORD_VERSION;
21
21
22
22
#[derive(Debug,Error)]
23
23
pubenumError{
@@ -31,7 +31,8 @@ pub enum Error {
31
31
MasPasswordConfig(#[source] anyhow::Error),
32
32
}
33
33
34
-
/// An error found whilst checking the Synapse database, that should block a migration.
34
+
/// An error found whilst checking the Synapse database, that should block a
35
+
/// migration.
35
36
#[derive(Debug,Error)]
36
37
pubenumCheckError{
37
38
#[error("MAS config is missing a password hashing scheme with version '1'")]
@@ -74,8 +75,9 @@ pub enum CheckError {
74
75
},
75
76
}
76
77
77
-
/// A potential hazard found whilst checking the Synapse database, that should be presented
78
-
/// to the operator to check they are aware of a caveat before proceeding with the migration.
78
+
/// A potential hazard found whilst checking the Synapse database, that should
79
+
/// be presented to the operator to check they are aware of a caveat before
80
+
/// proceeding with the migration.
79
81
#[derive(Debug,Error)]
80
82
pubenumCheckWarning{
81
83
#[error("Synapse config contains OIDC auth configuration (issuer: {issuer:?}) which will need to be manually mapped to an upstream OpenID Connect Provider during migration.")]
0 commit comments