Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

    If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

    Otter is displaying a credential password in the execution log

    Scheduled Pinned Locked Moved Support
    otter
    3 Posts 2 Posters 11 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M Offline
      markrobertjohnson
      last edited by

      I am using the $GetCredentialProperty(cred,Password) to pass a password into a powershell script in a PSEnsure statement. The execution log renders all of the input parameters, including the password (as DEBUG log items). Is there a way to redact the the password? perhaps just turning off DEBUG log messages would be sufficient, but I do not know how to turn those DEBUG log messages off.


      #PSEnsure Statement
      PSEnsure
      (
      Key: ConfigureNpm,
      Value: 0,
      CollectScript: Test-DefaultNpmRegistry,
      ConfigureScript: Set-NpmConfiguration,
      UseExitCode: true,
      CollectScriptParams: %(
      RegistryUrl: "$DefaultNpmPullRegistryUrl"
      ),
      ConfigureScriptParams: %(
      RegistryUrl: $DefaultNpmPullRegistryUrl,
      RegistryUsername: $GetCredentialProperty(devbuilder,Username),
      RegistryPassword: $GetCredentialProperty(devbuilder,Password),
      UserProfileName: $GetCredentialProperty(devbuilder,Username)
      )
      );


      #Log Output
      DEBUG: Found script Set-NpmConfiguration.ps1 in Default raft.
      DEBUG: Assigning parameter RegistryUrl=http://proget.internal.com/npm/npm
      DEBUG: Assigning parameter RegistryUsername=builderusername
      DEBUG: Assigning parameter RegistryPassword=<PASSWORD_IS_RENDERED_HERE>
      DEBUG: Assigning parameter UserProfileName=builderusername

      1 Reply Last reply Reply Quote 0
      • ? This user is from outside of this forum
        Guest
        last edited by

        Hmm, that doesn't make sense. I don't see a purpose to logging values, since you can just Log-Debug if there is a problem before runnign the script. Easy fix.

        So, if you update to the latest Windows Extension (1.3.3), the logging should be changed to:

        DEBUG: Found script Set-NpmConfiguration.ps1 in Default raft.
        DEBUG: Assigning parameter RegistryUrl...
        DEBUG: Assigning parameter RegistryUsername...
        DEBUG: Assigning parameter RegistryPassword...
        DEBUG: Assigning parameter UserProfileName...
        
        1 Reply Last reply Reply Quote 0
        • ? This user is from outside of this forum
          Guest
          last edited by

          Thanks Steve! That solved the issue.

          1 Reply Last reply Reply Quote 0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • 1 / 1
          • First post
            Last post
          Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation