Skip to content

Commit 8c953a9

Browse files
authored
fix: add warning when server is running without JWT auth (#977)
1 parent 3a79842 commit 8c953a9

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

rust/src/graphql-cli.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ async fn main() -> Result<()> {
6767
Ok::<_, anyhow::Error>(s)
6868
})
6969
.transpose()?;
70+
if secret.is_none() {
71+
tracing::warn!("Server is running WITHOUT authentication. Everyone has full access.");
72+
}
7073

7174
tracing::info!("db_path {db_path} lwd_url {lwd_url} port {port}");
7275
let coin = Coin::new()

0 commit comments

Comments
 (0)