Skip to content

Commit 08fd6e6

Browse files
author
bestia.dev
committed
2025-02-16
1 parent 642f521 commit 08fd6e6

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<!-- markdownlint-disable MD041 -->
12
[//]: # (auto_md_to_doc_comments segment start A)
23

34
# ssh_auth_podman_push

automation_tasks_rs/src/secrets_always_local_mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ pub(crate) mod github_mod {
367367
github_client
368368
}
369369

370-
let encrypted_string_file_path = camino::Utf8Path::new("~/.ssh/github_api_secret_token_encrypted.txt");
370+
let encrypted_string_file_path = camino::Utf8Path::new("~/.ssh/github_api_secret_token_ssh_1.enc");
371371
let encrypted_string_file_path_expanded = cargo_auto_encrypt_secret_lib::file_path_home_expand(encrypted_string_file_path);
372372

373373
let identity_private_file_path = camino::Utf8Path::new("~/.ssh/github_api_secret_token_ssh_1");
@@ -564,7 +564,7 @@ pub(crate) mod crates_io_mod {
564564
eprintln!("{RED}Security vulnerability: Found the cargo file with plain-text secret_token: {file_auth_expanded}. It would be better to inspect and remove it. {RESET}")
565565
}
566566

567-
let encrypted_string_file_path = camino::Utf8Path::new("~/.ssh/crates_io_secret_token_encrypted.txt");
567+
let encrypted_string_file_path = camino::Utf8Path::new("~/.ssh/crates_io_secret_token_ssh_1.enc");
568568
let encrypted_string_file_path_expanded = cargo_auto_encrypt_secret_lib::file_path_home_expand(encrypted_string_file_path);
569569

570570
let identity_private_file_path = camino::Utf8Path::new("~/.ssh/crates_io_secret_token_ssh_1");
@@ -705,7 +705,7 @@ pub(crate) mod docker_hub_mod {
705705
// registry: docker.io -> replace dot into "--""
706706
// username: bestiadev
707707
let registry_escaped = registry.replace(".", "--");
708-
let encrypted_string_file_path = format!("~/.ssh/docker_hub_{registry_escaped}_{user_name}.txt");
708+
let encrypted_string_file_path = format!("~/.ssh/docker_hub_{registry_escaped}_{user_name}.enc");
709709
let encrypted_string_file_path = camino::Utf8Path::new(&encrypted_string_file_path);
710710
let encrypted_string_file_path_expanded = cargo_auto_encrypt_secret_lib::file_path_home_expand(encrypted_string_file_path);
711711

0 commit comments

Comments
 (0)