Closed whip113 closed 5 years ago
@whip113 Can you provide more details about how to recreate this bug? I have attempted to recreate this and was unable to do so locally.
@whip113 I will close this issue since I have not heard back from you but feel free to ping me if this is an issue in the latest releases.
I have the same problem.
PS C:\Users\marcin.dzieciol> C:\Users\marcin.dzieciol\Downloads\summon.exe --yaml 'pass: !var pass' .\pass.ps1
Error fetching variable pass: exec: "C:\\Program Files/Cyberark Conjur/Summon/Providers/conjur": file does not exist
in this example I've tried to use second option from this document
https://github.com/cyberark/summon/blob/master/provider/README.md
Defining path as a user environment variable.
I think the problem is combining backslashes and slashes in one path.
when I'm trying to provide provider path i have this result:
PS C:\Users\marcin.dzieciol> C:\Users\marcin.dzieciol\Downloads\summon.exe -p "C:\Program Files\Cyberark Conjur\Summon\Providers\conjur" --yaml 'pass: !var pass' .\pass.ps1
CreateFile C:\Program Files/Cyberark Conjur/Summon/Providers/C:\Program Files\Cyberark Conjur\Summon\Providers\conjur: The filename, directory name, or volume label syntax is incorrect.
it doesn't make sense, could you please fix this. For now version on windows is not usable.
@mdzieciol I think in theory should work fine. Can you:
dir
listing of your C:\Program Files\Cyberark Conjur\Summon\Providers
directory?.exe
extension?conjur
directly?)Can you also make sure that Windows isn't preventing you from running this file? You may need to escape the spaces though and I am not on a Windows machine right now but try:
dir "C:\Program Files\Cyberark Conjur\Summon\Providers" -Recurse | Unblock-File
PS C:\Users\marcin.dzieciol\Downloads> dir "C:\Program Files\Cyberark Conjur\Summon\Providers"
Directory: C:\Program Files\Cyberark Conjur\Summon\Providers
Mode LastWriteTime Length Name
-a---- 3/31/2020 10:20 PM 259 conjur
2.
But why it should be .exe extension. In this file I have configuration for Conjur. If this should be an exe, where I find it to download? And how to provide environment variables like URL, user, api-key etc.?
3. the same as 2nd answer. To be honest, in readme I didn't find any information how to configure windows version. I think I did something wrong if you asking me for exe file.
ah ok, I found it. Can you tell me, how to provide variables? I have this error: ''' Failed creating a Conjur client: Must specify an ApplianceURL -- Must specify an Account '''
@mdzieciol, could I ask you to post this question over on https://discuss.cyberarkcommons.org/ please? There is a broader audience there then in a closed Github issue and the community will benefit from the discussion.
I've opened a new issue for @mdzieciol's issues in #167 - let's have any further conversation there.
It would appear our hard coded value is making summon ignore what is provided with the
--provider
switch.