Can Configuration Data be encrypted?

Welcome Forums DSC (Desired State Configuration) Can Configuration Data be encrypted?

This topic contains 3 replies, has 3 voices, and was last updated by

 
Participant
2 years, 6 months ago.

  • Author
    Posts
  • #41276

    Participant
    Points: 0
    Rank: Member

    Is there an accepted procedure to encrypt the data in a "ConfigurationData.psd1" file? I don't want to leave IP or hostnames (etc) in config files that are checked in to source code.

  • #41278

    Keymaster
    Points: 1,704
    Helping HandTeam Member
    Rank: Community Hero

    There's nothing native, no. You can certainly encrypt it manually, knowing that you'll have to manually decrypt it before feeding it to your configuration script.

  • #41299

    Participant
    Points: 0
    Rank: Member

    I could work that in to the flow, thanks 🙂

  • #41315

    Participant
    Points: 0
    Rank: Member

    Alternatively you can check that data into a separate repo with unique permissions. This is relatively common.

The topic ‘Can Configuration Data be encrypted?’ is closed to new replies.