Skip to content

Commit 60ba3be

Browse files
committed
chore(czech-file-knife): carry scanner exemptions into the standalone tree; env-var credentials in docs examples
1 parent ca7f321 commit 60ba3be

2 files changed

Lines changed: 12 additions & 7 deletions

File tree

‎czech-file-knife/.hypatia-ignore‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,8 @@ research_extensions/RE005:.github/workflows/static-analysis-gate.yml
5353
# Dependabot workflow uses the unprivileged pull_request event and also verifies
5454
# github.event.pull_request.user.login, so that threat model does not apply.
5555
research_extensions/RE008:.github/workflows/dependabot-automerge.yml
56+
57+
# iOS File Provider Extension: NSFileProviderReplicatedExtension is a Swift-only
58+
# Apple API with no Rust/Tauri equivalent. Carried over from
59+
# developer-ecosystem/.hypatia-baseline.json (tracking: developer-ecosystem#111).
60+
cicd_rules/banned_language_file:src/cfk-ios/swift/

‎czech-file-knife/docs/architecture/DISTRIBUTED_FILESYSTEMS.adoc‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ let config = SmbConfig {
4343
server: "fileserver".into(),
4444
share: "Documents".into(),
4545
username: Some("user".into()),
46-
password: Some("pass".into()),
46+
password: std::env::var("CFK_SMB_PASSWORD").ok(),
4747
version: SmbVersion::Smb3,
4848
..Default::default()
4949
};
@@ -127,8 +127,8 @@ let backend = CephBackend::new("my-ceph", config);
127127
let rgw_backend = CephBackend::rgw(
128128
"my-rgw",
129129
"https://rgw.example.com",
130-
"access_key",
131-
"secret_key",
130+
&std::env::var("CFK_S3_ACCESS_KEY_ID")?,
131+
&std::env::var("CFK_S3_SECRET_ACCESS_KEY")?,
132132
"my-bucket"
133133
);
134134
----
@@ -211,8 +211,8 @@ let backend = S3Backend::cloudflare_r2(
211211
"my-r2",
212212
"account-id",
213213
"my-bucket",
214-
"access_key",
215-
"secret_key"
214+
&std::env::var("CFK_S3_ACCESS_KEY_ID")?,
215+
&std::env::var("CFK_S3_SECRET_ACCESS_KEY")?
216216
);
217217
----
218218

@@ -231,7 +231,7 @@ let config = WebDavConfig {
231231
base_url: "https://dav.example.com/files/".into(),
232232
auth: Some(WebDavAuth::Basic {
233233
username: "user".into(),
234-
password: "pass".into(),
234+
password: std::env::var("CFK_WEBDAV_PASSWORD")?,
235235
}),
236236
..Default::default()
237237
};
@@ -243,7 +243,7 @@ let backend = WebDavBackend::nextcloud(
243243
"my-nextcloud",
244244
"https://cloud.example.com",
245245
"username",
246-
"app-password"
246+
&std::env::var("CFK_NEXTCLOUD_APP_PASSWORD")?
247247
);
248248
----
249249

0 commit comments

Comments
 (0)