Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

dsc_credential should accept string #306

Open
Clebam opened this issue Feb 13, 2025 · 0 comments
Open

dsc_credential should accept string #306

Clebam opened this issue Feb 13, 2025 · 0 comments

Comments

@Clebam
Copy link

Clebam commented Feb 13, 2025

This PR changed string to senstive string. However it complexifies a lot if puppet is used with hiera (and the migration from old puppet dsc to pwshlib is even harder)
https://github.com/puppetlabs/Puppet.Dsc/pull/19/files

A suggested solution would be to use a variant as here : https://github.com/voxpupuli/puppet-mongodb/blob/master/lib/puppet/functions/mongodb_password.rb#L9

'Variant[String[1], Sensitive[String[1]]]'

This would allow to use string or sensitive string

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant