From 3c66deb5cc7a4387e4176d2a5bdd3f321f09a6bd Mon Sep 17 00:00:00 2001 From: BlackDex Date: Thu, 28 May 2020 10:42:36 +0200 Subject: [PATCH] Redesign of the admin interface. Main changes: - Splitted up settings and users into two separate pages. - Added verified shield when the e-mail address has been verified. - Added the amount of personal items in the database to the users overview. - Added Organizations and Diagnostics pages. - Shows if DNS resolving works. - Shows if there is a posible time drift. - Shows current versions of server and web-vault. - Optimized logo-gray.png using optipng Items which can be added later: - Amount of cipher items accessible for a user, not only his personal items. - Amount of users per Org - Version update check in the diagnostics overview. - Copy/Pasteable runtime config which has sensitive data changed or removed for support questions either on the forum or github issues. - Option to delete Orgs and all its passwords (when there are no members anymore). - Etc.... --- src/api/admin.rs | 128 ++++++++++++-- src/api/web.rs | 1 + src/config.rs | 5 +- src/db/models/cipher.rs | 8 + src/db/models/organization.rs | 4 + src/static/images/logo-gray.png | Bin 7580 -> 5901 bytes src/static/images/shield-white.png | Bin 0 -> 1905 bytes src/static/templates/admin/base.hbs | 88 +++++++++- src/static/templates/admin/diagnostics.hbs | 73 ++++++++ src/static/templates/admin/organizations.hbs | 30 ++++ .../admin/{page.hbs => settings.hbs} | 165 ------------------ src/static/templates/admin/users.hbs | 134 ++++++++++++++ 12 files changed, 453 insertions(+), 183 deletions(-) create mode 100644 src/static/images/shield-white.png create mode 100644 src/static/templates/admin/diagnostics.hbs create mode 100644 src/static/templates/admin/organizations.hbs rename src/static/templates/admin/{page.hbs => settings.hbs} (60%) create mode 100644 src/static/templates/admin/users.hbs diff --git a/src/api/admin.rs b/src/api/admin.rs index dcafaa06..8678e0d9 100644 --- a/src/api/admin.rs +++ b/src/api/admin.rs @@ -23,7 +23,7 @@ pub fn routes() -> Vec { routes![ admin_login, - get_users, + get_users_json, post_admin_login, admin_page, invite_user, @@ -36,6 +36,9 @@ pub fn routes() -> Vec { delete_config, backup_db, test_smtp, + users_overview, + organizations_overview, + diagnostics, ] } @@ -118,7 +121,9 @@ fn _validate_token(token: &str) -> bool { struct AdminTemplateData { page_content: String, version: Option<&'static str>, - users: Vec, + users: Option>, + organizations: Option>, + diagnostics: Option, config: Value, can_backup: bool, logged_in: bool, @@ -126,15 +131,59 @@ struct AdminTemplateData { } impl AdminTemplateData { - fn new(users: Vec) -> Self { + fn new() -> Self { Self { - page_content: String::from("admin/page"), + page_content: String::from("admin/settings"), version: VERSION, - users, config: CONFIG.prepare_json(), can_backup: *CAN_BACKUP, logged_in: true, urlpath: CONFIG.domain_path(), + users: None, + organizations: None, + diagnostics: None, + } + } + + fn users(users: Vec) -> Self { + Self { + page_content: String::from("admin/users"), + version: VERSION, + users: Some(users), + config: CONFIG.prepare_json(), + can_backup: *CAN_BACKUP, + logged_in: true, + urlpath: CONFIG.domain_path(), + organizations: None, + diagnostics: None, + } + } + + fn organizations(organizations: Vec) -> Self { + Self { + page_content: String::from("admin/organizations"), + version: VERSION, + organizations: Some(organizations), + config: CONFIG.prepare_json(), + can_backup: *CAN_BACKUP, + logged_in: true, + urlpath: CONFIG.domain_path(), + users: None, + diagnostics: None, + } + } + + fn diagnostics(diagnostics: Value) -> Self { + Self { + page_content: String::from("admin/diagnostics"), + version: VERSION, + organizations: None, + config: CONFIG.prepare_json(), + can_backup: *CAN_BACKUP, + logged_in: true, + urlpath: CONFIG.domain_path(), + users: None, + diagnostics: Some(diagnostics), } } @@ -144,11 +193,8 @@ impl AdminTemplateData { } #[get("/", rank = 1)] -fn admin_page(_token: AdminToken, conn: DbConn) -> ApiResult> { - let users = User::get_all(&conn); - let users_json: Vec = users.iter().map(|u| u.to_json(&conn)).collect(); - - let text = AdminTemplateData::new(users_json).render()?; +fn admin_page(_token: AdminToken, _conn: DbConn) -> ApiResult> { + let text = AdminTemplateData::new().render()?; Ok(Html(text)) } @@ -195,13 +241,29 @@ fn logout(mut cookies: Cookies) -> Result { } #[get("/users")] -fn get_users(_token: AdminToken, conn: DbConn) -> JsonResult { +fn get_users_json(_token: AdminToken, conn: DbConn) -> JsonResult { let users = User::get_all(&conn); let users_json: Vec = users.iter().map(|u| u.to_json(&conn)).collect(); Ok(Json(Value::Array(users_json))) } +#[get("/users/overview")] +fn users_overview(_token: AdminToken, conn: DbConn) -> ApiResult> { + let users = User::get_all(&conn); + let users_json: Vec = users.iter() + .map(|u| { + let mut usr = u.to_json(&conn); + if let Some(ciphers) = Cipher::count_owned_by_user(&u.uuid, &conn) { + usr["cipher_count"] = json!(ciphers); + }; + usr + }).collect(); + + let text = AdminTemplateData::users(users_json).render()?; + Ok(Html(text)) +} + #[post("/users//delete")] fn delete_user(uuid: String, _token: AdminToken, conn: DbConn) -> EmptyResult { let user = match User::find_by_uuid(&uuid, &conn) { @@ -242,6 +304,50 @@ fn update_revision_users(_token: AdminToken, conn: DbConn) -> EmptyResult { User::update_all_revisions(&conn) } +#[get("/organizations/overview")] +fn organizations_overview(_token: AdminToken, conn: DbConn) -> ApiResult> { + let organizations = Organization::get_all(&conn); + let organizations_json: Vec = organizations.iter().map(|o| o.to_json()).collect(); + + let text = AdminTemplateData::organizations(organizations_json).render()?; + Ok(Html(text)) +} + +#[derive(Deserialize, Serialize, Debug)] +#[allow(non_snake_case)] +pub struct WebVaultVersion { + version: String, +} + +#[get("/diagnostics")] +fn diagnostics(_token: AdminToken, _conn: DbConn) -> ApiResult> { + use std::net::ToSocketAddrs; + use chrono::prelude::*; + use crate::util::read_file_string; + + let vault_version_path = format!("{}/{}", CONFIG.web_vault_folder(), "version.json"); + let vault_version_str = read_file_string(&vault_version_path)?; + let web_vault_version: WebVaultVersion = serde_json::from_str(&vault_version_str)?; + + let github_ips = ("github.com", 0).to_socket_addrs().map(|mut i| i.next()); + let dns_resolved = match github_ips { + Ok(Some(a)) => a.ip().to_string() , + _ => "Could not resolve domain name.".to_string(), + }; + + let dt = Utc::now(); + let server_time = dt.format("%Y-%m-%d %H:%M:%S").to_string(); + + let diagnostics_json = json!({ + "dns_resolved": dns_resolved, + "server_time": server_time, + "web_vault_version": web_vault_version.version, + }); + + let text = AdminTemplateData::diagnostics(diagnostics_json).render()?; + Ok(Html(text)) +} + #[post("/config", data = "")] fn post_config(data: Json, _token: AdminToken) -> EmptyResult { let data: ConfigBuilder = data.into_inner(); diff --git a/src/api/web.rs b/src/api/web.rs index 7f47ae7c..a97a1c96 100644 --- a/src/api/web.rs +++ b/src/api/web.rs @@ -78,6 +78,7 @@ fn static_files(filename: String) -> Result, Error> { match filename.as_ref() { "mail-github.png" => Ok(Content(ContentType::PNG, include_bytes!("../static/images/mail-github.png"))), "logo-gray.png" => Ok(Content(ContentType::PNG, include_bytes!("../static/images/logo-gray.png"))), + "shield-white.png" => Ok(Content(ContentType::PNG, include_bytes!("../static/images/shield-white.png"))), "error-x.svg" => Ok(Content(ContentType::SVG, include_bytes!("../static/images/error-x.svg"))), "hibp.png" => Ok(Content(ContentType::PNG, include_bytes!("../static/images/hibp.png"))), diff --git a/src/config.rs b/src/config.rs index 9434c39a..e5b46d37 100644 --- a/src/config.rs +++ b/src/config.rs @@ -700,7 +700,10 @@ where reg!("admin/base"); reg!("admin/login"); - reg!("admin/page"); + reg!("admin/settings"); + reg!("admin/users"); + reg!("admin/organizations"); + reg!("admin/diagnostics"); // And then load user templates to overwrite the defaults // Use .hbs extension for the files diff --git a/src/db/models/cipher.rs b/src/db/models/cipher.rs index 1e717ca4..94d7d1ec 100644 --- a/src/db/models/cipher.rs +++ b/src/db/models/cipher.rs @@ -355,6 +355,14 @@ impl Cipher { .load::(&**conn).expect("Error loading ciphers") } + pub fn count_owned_by_user(user_uuid: &str, conn: &DbConn) -> Option { + ciphers::table + .filter(ciphers::user_uuid.eq(user_uuid)) + .count() + .first::(&**conn) + .ok() + } + pub fn find_by_org(org_uuid: &str, conn: &DbConn) -> Vec { ciphers::table .filter(ciphers::organization_uuid.eq(org_uuid)) diff --git a/src/db/models/organization.rs b/src/db/models/organization.rs index 442d1969..8ce476c6 100644 --- a/src/db/models/organization.rs +++ b/src/db/models/organization.rs @@ -255,6 +255,10 @@ impl Organization { .first::(&**conn) .ok() } + + pub fn get_all(conn: &DbConn) -> Vec { + organizations::table.load::(&**conn).expect("Error loading organizations") + } } impl UserOrganization { diff --git a/src/static/images/logo-gray.png b/src/static/images/logo-gray.png index b045df54c0c95f2e18ff48a75a8369565bc4142a..70658e18f91dbd54aebdd4c7998bfc9713b1e0e1 100644 GIT binary patch literal 5901 zcmV+o7xL(dP)$@YTnLal_blL^yS%s`=a zgEC|?K=Tlt&d|_K(e$5^&}r39Go7TNRUc{75Q92R8XMR|C3b*7jBpaL*N>$~(n|N7 z`#k5|b03n=cmD~o_TGEWJ>Tzqk8{2g3UT4Wg$oxhT)6bPEPim|k76fB&nMRsYa^{I z4qdUeD8&^+?qPL}sMqTBb9YUKHt;XPg-f5yzEa}2^j?syqbimJfsZsUs)$8zM`XZcWGzV0+4GIwhYkRa!IQ;` z5a!Cpg+nKB(3$CZ=!g~5r&qbMapBMj9CRjn96Dm&>gi&hs~Z;%oq$0n)$7oySVE`9 z)r|{>PACy5=)`*+It}agadqRup%XCZ4EH#6?Aj+pxWaMa&|v}{aZS7+UXYMW)?Dzv zHGd8MM)&NG^gDC}u5es9bl5=WUEzed5?zU}B-gLhN?LQJ*8e3AekZLAzdC$c51nm& z4jry;TsU+XL1*}-?SCjP$Cp#f6Rm4a# z>C`OIT<7Y>g+nKlWMk?4o0ukqT`pRa&h;I1N|wD;!oQOcG5Gr;S62=l4jpRfq;m0^ ztb@)+dmK7K*gStFHb~Ya8{vyXheL-$#{qOQxugMfhI@WRvLF~^2Oviv8kThq9S$81 z9j4Hk&ZTP6K7>xwF%rwV{wb3s%Z03AFLUT{=y2%JLuW2G)~C>EyIF!F7TcGgkZ<+W zV~azFLx)4hF?7cJ7&=aoWzx$WIvhG2I`q)lnNv7)%!Xv1Lx)4Bk7blYCwN1$#-YQZ z!=b|*I=c;_BR|WbW3)ntLx)3$Lx%x$CJdmH`7Vc!`2s@@9S$819S6|algrd%I_Tu; zen3Zv2#Q#MvQ2`o1G3Jc!=b~W;~8}Jz3MJ>b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^mK+T{{sXPCtM826>L5=P=uI?&l33H78-HrLOpd+=_cH9yCHI`mB zqZW7ybjAP|I`g#P@$YtF@9)g7uGRK2{l;;Hb$2^g)sz^XuuP|4f#I}ndpvA=WA~k9 zPt=q+-n7h+H-zMS)AP7O^XOfp_3Gz_RxRcaq!kw~e_`nez1ld+JUTX(=3TsDV&+lbdb{2-!=Osj`w*s~=E?LmT%j(1 z!$|InSo#?24A2>H0wtfjL}F*1>FYKkoc^;>y8Ku}n`oYF8k)*=Q%&UZ&fT{9LFgkK zn-u^3;pe5RU`Oe z%zH4tTpNYRKOe5eeRCNcf$MxvLKNrWR`z{<7(c9ZZZ+lT*tRa?uemsf+ls3u#TN_= zD*7&b07db>;OrJP^9c8Sd{Z)P5au)$f`?G7R`G$r-SIKgFnH&6rdzg+%<4Nh)L3^l z^Yhl#`r)w=Wr%a7uZ!(6y{jGGH!?308oVZET+Ut)(&g*Md~+jJaPHIRQ%lXImaS9I reL6J6aO3(hy8Qq9+e?>m{f@r?#;PM3!e*ux00000NkvXXu0mjfC{wFq literal 0 HcmV?d00001 diff --git a/src/static/templates/admin/base.hbs b/src/static/templates/admin/base.hbs index e3948d06..a7270b9c 100644 --- a/src/static/templates/admin/base.hbs +++ b/src/static/templates/admin/base.hbs @@ -29,16 +29,79 @@ width: 48px; height: 48px; } + + .navbar img { + height: 24px; + width: auto; + } + + -