Skip to content

dsc_credential should accept string #306

New issue

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

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

Already on GitHub? Sign in to your account

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

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

No branches or pull requests

1 participant