rundeck-plugins / rundeck-winrm-plugin

UNMAINTAINED - Rundeck WinRM Node Executor plugin
Other
56 stars 28 forks source link

Store passwords in a file #48

Closed dmtrrk closed 5 years ago

dmtrrk commented 7 years ago

I'm trying to configure WinRM with winrm-password-storage-path

What I can see from this change is that it simply reads some file and gets password from it. So I need to specify winrm-password-storage-path and put some file there with password content?

  1. What is the filename?
  2. Is there any way not to store password in open way? Only configuration with winrm-password-option?

I create file with node name and tried different extensions, also tried to specify full filename. Executing the job I'm getting error, e.g. path does not exist

dmtrrk commented 7 years ago

For the moment I'm using Security Option. But getting an error:

Failed: WinRMProtocolError: WinRM Error: Error when sending request to http://my-host:5985/wsmanRequest: <?xml version="1.0" encoding="UTF-8"?>

http://my-host:5985/wsman http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous 153600 uuid:22ECF3E1-35E4-4BEF-8F8A-767F926BA282 PT60.000S http://schemas.xmlsoap.org/ws/2004/09/transfer/Create http://schemas.microsoft.com/wbem/wsman/1/windows/shell/cmd FALSE 437 stdin stdout stderr
gschueler commented 7 years ago

@deeptowncitizen it is not a file, it is stored in the key storage system. You can configure it to store in the DB or in the filesystem, and it can be encrypted, see storage facility