Skip to content

Commit f0fc4b2

Browse files
Merge pull request olivierlambert#112 from teicee/feat-config-dump
feat: add 'config dump' CLI command
2 parents 201a408 + 3296328 commit f0fc4b2

3 files changed

Lines changed: 399 additions & 1 deletion

File tree

src/auth.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,9 @@ pub async fn delete_user(
305305

306306
// --- Auth config helpers ---
307307

308+
// Uses SELECT * intentionally: oidc_client_secret is encrypted at rest (AES-256-GCM)
309+
// and encrypted in memory. Accidental serialization is prevented by #[serde(skip)]
310+
// on the AuthConfig.oidc_client_secret field.
308311
pub async fn get_auth_config(pool: &SqlitePool) -> Result<AuthConfig> {
309312
let config =
310313
sqlx::query_as::<_, AuthConfig>("SELECT * FROM auth_config WHERE id = 'singleton'")

0 commit comments

Comments
 (0)