Skip to content
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

Path creation for registry key #298

Open
hdep opened this issue Oct 20, 2023 · 0 comments
Open

Path creation for registry key #298

hdep opened this issue Oct 20, 2023 · 0 comments

Comments

@hdep
Copy link

hdep commented Oct 20, 2023

Hello,

I don't know if this is a bug or a feature request, I'll let you choose the proper way :

Use Case

We need to create some registry key on PATH that doesn't exist. Currently if we just use the module like this it will fail.
we need to create HKLM\Software\Microsoft\Cryptography\Wintrust\config\EnableCertPaddingCheck but on our system folder Wintrust and config doesn't exist.

Describe the Solution You Would Like

Declare the registry key, and full path get created

  registry_key { 'HKLM\Software\Microsoft\Cryptography\Wintrust\config\EnableCertPaddingCheck':
    ensure => present,
    type   => 'dword',                 # Type de données (par exemple, string, dword, etc.)
    data   => '1',         # Données de la clé
  }

Describe Alternatives You've Considered

We have a workarround :

  registry_key { 'Wintrust':
    path   => 'HKLM\Software\Microsoft\Cryptography\Wintrust', # Crée le chemin parent
    ensure => present,
  }
  registry_key { 'Wintrust2':
    path   => 'HKLM\Software\Microsoft\Cryptography\Wintrust\config', # Crée le chemin parent
    ensure => present,
  }
  registry_value { 'HKLM\Software\Microsoft\Cryptography\Wintrust\config\EnableCertPaddingCheck':
    ensure => present,
    type   => 'dword',                 # Type de données (par exemple, string, dword, etc.)
    data   => '1',         # Données de la clé
  }

at least document this workaround would be a first step.

Additional Context

Add any other context or screenshots about the feature request here.

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

No branches or pull requests

2 participants