Skip to content

Commit 8cac41e

Browse files
committed
Attempt to prevent logs from containing passwords
1 parent 8e27366 commit 8cac41e

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

templates/bacula-dir-client.epp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Client {
1414
Address = <%= $address %>
1515
FDPort = <%= $port %>
1616
Catalog = MyCatalog
17-
Password = "<%= $password %>"
17+
Password = "<%= Sensitive($password) %>"
1818
File Retention = <%= $file_retention %>
1919
Job Retention = <%= $job_retention %>
2020
AutoPrune = <%= bacula::yesno2str($autoprune) %>

templates/bacula-dir-header.epp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Director { # define myself
99
WorkingDirectory = <%= $bacula::director::homedir %>
1010
Pid Directory = <%= $bacula::director::rundir %>
1111
Maximum Concurrent Jobs = <%= $bacula::director::max_concurrent_jobs %>
12-
Password = "<%= $bacula::director::password %>" # Console password
12+
Password = "<%= Sensitive($bacula::director::password) %>" # Console password
1313
Messages = Daemon
1414
<%= epp('bacula/_tls_server.epp') %>
1515
}
@@ -19,7 +19,7 @@ Catalog {
1919
Name = MyCatalog
2020
dbname = "<%= $bacula::director::db_name %>";
2121
dbuser = "<%= $bacula::director::db_user %>";
22-
dbpassword = "<%= $bacula::director::db_pw %>";
22+
dbpassword = "<%= Sensitive($bacula::director::db_pw) %>";
2323
<% if $bacula::director::db_address { -%>
2424
DB Address = <%= $bacula::director::db_address %>
2525
<% } -%>

templates/bacula-dir-storage.epp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Storage {
1313
Name = <%= $name %>-sd
1414
Address = <%= $address %>
1515
SDPort = <%= $port %>
16-
Password = "<%= $password %>"
16+
Password = "<%= Sensitive($password) %>"
1717
Device = <%= $device_name %>
1818
Media Type = <%= $media_type %>
1919
Maximum Concurrent Jobs = <%= $max_concurrent_jobs %>

templates/bacula-fd-header.epp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
Director {
22
Name = <%= $bacula::client::director_name %>-dir
3-
Password = "<%= $bacula::client::password %>"
3+
Password = "<%= Sensitive($bacula::client::password) %>"
44
<%= epp('bacula/_tls_server.epp') -%>
55
}
66

77
Director {
88
Name = <%= $bacula::client::director_name %>-mon
9-
Password = "<%= $bacula::client::password %>"
9+
Password = "<%= Sensitive($bacula::client::password) %>"
1010
Monitor = yes
1111
<%= epp('bacula/_tls_server.epp') -%>
1212
}

templates/bacula-sd-dir.epp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Permit the Director to contact this SD
22
Director {
33
Name = <%= $bacula::storage::director_name %>-dir
4-
Password = "<%= $bacula::storage::password %>"
4+
Password = "<%= Sensitive($bacula::storage::password) %>"
55
<%= epp('bacula/_tls_server.epp') %>
66
}
77

0 commit comments

Comments
 (0)