Skip to content

Commit

Permalink
disable config.yaml show_diff
Browse files Browse the repository at this point in the history
To prevent the 'token` secret from leaking into the agent logs.
  • Loading branch information
jhoblitt committed Jun 26, 2024
1 parent 8ee99fd commit b37082c
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions manifests/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
assert_private()

file { '/etc/rancher/rke2/config.yaml':
ensure => file,
owner => 'root',
group => 'root',
mode => '0600',
content => stdlib::to_yaml($rke2::config),
ensure => file,
owner => 'root',
group => 'root',
mode => '0600',
show_diff => false, # don't print 'token' into logs
content => stdlib::to_yaml($rke2::config),
}

# The config.yaml.d directory is used by default. As we are using an all-in-one config
Expand Down

0 comments on commit b37082c

Please sign in to comment.