Skip to content

Commit

Permalink
(profile::core::letsencrypt) convert aws_credentials param to Sensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
jhoblitt committed Apr 1, 2024
1 parent a254393 commit 1babd2e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions site/profile/manifests/core/letsencrypt.pp
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
# @param aws_credentials
# `.aws/credentials` format string for aws route53 credentials
class profile::core::letsencrypt (
Optional[Hash[String, Hash]] $certonly = undef,
Optional[String] $aws_credentials = undef,
Optional[Hash[String[1], Hash]] $certonly = undef,
Optional[Sensitive[String[1]]] $aws_credentials = undef,
) {
include letsencrypt
include letsencrypt::plugin::dns_route53
Expand Down Expand Up @@ -68,7 +68,7 @@
ensure => file,
mode => '0600',
backup => false,
content => $aws_credentials,
content => $aws_credentials.unwrap,
;
}

Expand Down
2 changes: 1 addition & 1 deletion spec/classes/core/letsencrypt_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
context 'with aws_credentials param' do
let(:params) do
{
aws_credentials: 'foo',
aws_credentials: sensitive('foo'),
}
end

Expand Down

0 comments on commit 1babd2e

Please sign in to comment.