import { join } from "path" ; import { secrets } from "@cocalc/backend/data" ; import { readFileSync } from "fs" ; export default function dbPassword ( ) { const filename = join ( secrets , "postgres" ) ; try { return readFileSync ( filename ) . toString ( ) . trim ( ) ; } catch { return undefined ; } }