Skip to content

Commit 8fdd695

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

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

manifests/director/client.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
name => $name,
3636
address => $address,
3737
port => $port,
38-
password => $password,
38+
password => Sensitive($password),
3939
file_retention => $file_retention,
4040
job_retention => $job_retention,
4141
autoprune => $autoprune,

manifests/director/storage.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
name => $name,
3535
address => $address,
3636
port => $port,
37-
password => $password,
37+
password => Sensitive($password),
3838
device_name => $device_name,
3939
media_type => $media_type,
4040
max_concurrent_jobs => pick($maxconcurjobs, $max_concurrent_jobs),

templates/bacula-dir-client.epp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
String $name,
44
String $address,
55
Integer $port,
6-
String[1] $password,
6+
Sensitive[String[1]] $password,
77
Bacula::Time $file_retention,
88
Bacula::Time $job_retention,
99
Bacula::Yesno $autoprune,

templates/bacula-dir-storage.epp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
String $name,
44
String $address,
55
Integer $port,
6-
String[1] $password,
6+
Sensitive[String[1]] $password,
77
String $device_name,
88
String $media_type,
99
Integer $max_concurrent_jobs,

0 commit comments

Comments
 (0)