Skip to content

desktop/src-tauri/src/receiver_auth.rs

Comment 1, line 1

desktop/src-tauri/src/receiver_auth.rs:1

//! Source-scoped credentials stay out of DTOs, SQLite, logs and ordinary state files.

Comment 2, line 41

desktop/src-tauri/src/receiver_auth.rs:41

// Supplemental spans stay isolated. User-configurable service.name/span names

Comment 3, line 42

desktop/src-tauri/src/receiver_auth.rs:42

// do not establish provenance; the credential binds the source.

Comment 4, line 50

desktop/src-tauri/src/receiver_auth.rs:50

// Omit Debug to prevent credential values appearing in formatted errors.

Comment 5, line 81

desktop/src-tauri/src/receiver_auth.rs:81

// Read-only system-store probe distinguishes missing entries from unavailable storage.

Comment 6, line 109

desktop/src-tauri/src/receiver_auth.rs:109

// Compare validated fixed-size hexadecimal strings without stopping at the first mismatch.

Comment 7, line 139

desktop/src-tauri/src/receiver_auth.rs:139

// A service may persist a write before its reply fails. Reclaim only the exact

Comment 8, line 140

desktop/src-tauri/src/receiver_auth.rs:140

// attempted content, preserving replaced or ambiguous values.

Comment 9, line 149

desktop/src-tauri/src/receiver_auth.rs:149

// Verify persistent storage before exporter configuration; reclaim the owned entry on failure.

Comment 10, line 165

desktop/src-tauri/src/receiver_auth.rs:165

// Verification failure may indicate replacement by another writer.

Comment 11, line 166

desktop/src-tauri/src/receiver_auth.rs:166

// Re-read and reclaim only the exact owned content.

Comment 12, line 182

desktop/src-tauri/src/receiver_auth.rs:182

// Native Windows tests saw a successful write, NOT_FOUND, then matching content

Comment 13, line 183

desktop/src-tauri/src/receiver_auth.rs:183

// 10 ms later. Only missing reads in mutation flows wait; authentication reads do not use this helper.

Comment 14, line 184

desktop/src-tauri/src/receiver_auth.rs:184

// Errors and present values return immediately; do not write again.

Comment 15, line 231

desktop/src-tauri/src/receiver_auth.rs:231

// Delete only the exact owned credential; reject external replacements.

Comment 16, line 297

desktop/src-tauri/src/receiver_auth.rs:297

// CredRead returns one allocation; free it even when its content is invalid.