Repository navigation
fix(storage): set 0600 mode on search-index.lock - #1344
Conversation
🦋 Changeset detectedLatest commit: f997ddc The changes in this PR will be included in the next version bump. This PR includes changesets to release 0 packagesWhen changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
Confidence Score: 5/5
[Low impact] This PR appears safe to merge.
|
Fixes #1316
Summary
OpenOptionsExt::mode(0o600)under#[cfg(unix)]inlock_rebuild_file(crates/nostream-storage/src/lmdb/mod.rs) sosearch-index.lockmatches the0600permissions of the LMDB files beside it instead of inheriting the host umask.lmdb::tests::the_store_directory_is_the_owners_alone(under#[cfg(unix)]) to assert thatsearch-index.lockexists in the store directory and every file created inside the store directory has mode0o600..changeset/search-index-lock-mode.mdforrewrite/main.Verification
cargo fmt --all --checkcargo clippy -p nostream-storage --all-targets --all-features -- -D warningscargo clippy -p nostream-storage --lib --bins --all-features -- -D warnings -D clippy::unwrap_used -D clippy::expect_used -D clippy::todo -D clippy::unimplemented -D clippy::paniccargo test -p nostream-storage --all-features