Encrypting a file variable from the web.config

jsphillips's Avatar

jsphillips

14 Feb, 2018 12:21 AM

I have the below web.config I have passwords in. When I try to encrypt this variable I am getting an assembly reference error. Is their a way to encrypt that password so it is not in plain text with another template or way I'm missing?

</configSections>
  <users>
    <user name="externalApp" password="#{externalpassword}" roles="ExternalApplication" />
  </users>

  1. Support Staff 1 Posted by Kenneth Bates on 15 Feb, 2018 01:24 AM

    Kenneth Bates's Avatar

    Hi,

    Thanks for getting in touch! You can define your variables as sensitive whose values Octopus will encrypt using AES128 encryption. You can refer to additional information on sensitive variables in our documentation.
    https://octopus.com/docs/deployment-process/variables/sensitive-var...

    You can then use the substitute variables in files feature as usual to substitute these sensitive variable values into your config file.
    https://octopus.com/docs/deployment-process/configuration-files/sub...

    Would this meet your requirements? Let me know what you think and if you have any further questions. :)

    Kind regards,

    Kenny

  2. 2 Posted by jsphillips on 15 Feb, 2018 02:11 PM

    jsphillips's Avatar

    No but that’s okay. I had my development team move the users element under app settings so it would encrypt it naturally with the proper step. Thanks for the help on this regardless. This can be closed. Octopus kicks ass. Thanks!.

    Scott Phillips “act as if”
    IT Systems Specialist | [email blocked]<mailto:[email blocked]> | 334.612.5427
    [alfainfopsSIG]

    From: Kenneth Bates [mailto:[email blocked]]
    Sent: Wednesday, February 14, 2018 7:25 PM
    To: Phillips, Scott <[email blocked]>
    Subject: Re: Encrypting a file variable from the web.config [Problems #69994]

    CAUTION: This email originated from outside of the Alfa network. Do not click links or open attachments unless you recognize the sender and know the content is safe. Ref #49275

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac