Repository navigation
Windows server connection method and credential mgmt #181
Replies: 2 comments 7 replies
|
Hey Marc-Olivier, Great question! First, a disclaimer: My Windows knowledge is severely lacking in this area, so I used ChatGPT to assist with this reply. I am so sorry -- I hate using AI, and try to avoid it at all costs, but in this case, this is out of my area of expertise. I did compose a detailed and verbose prompt, and gave it full context of the xyOps Satellite source code, so it could get up to speed on the issue at hand. Here is what ChatGPT 5.3 Codex said: xyOps does not open a PowerShell remoting session ( xyOps runs as a background Windows Service with Administrator privileges (not as a normal user). So this is already architecturally similar to Jenkins agent mode. Why you still see different SSH behavior:
Practical ways to fix this
Quick diagnostics to run inside an xyOps job
Compare that output with an interactive CLI under the same account. I hope this helps, and again, huge apologies for using AI for this reply 😞 I know we have a few Windows users in the xyOps community. If this doesn't help, I can ping them to see if they've come across this sort of thing before. |
|
Hello, Thanks for your comprehensive answer. For information, both Jenkins agent and xyOps Satellite are installed as Windows services. Both services are run by a dedicated user I created for the occasion. It's not nt authority\system, since it's not advised to let such a powerful user run agents. They would run commands with full privilege. Anyway, thank you for your help. Best regards, |
Uh oh!
There was an error while loading. Please reload this page.
Hello,
I'd like to know which method xyOps uses to send commands to Windows servers. This seems to impact the way credentials are handled: The Satellite agent can't clone code from the Git server even though it's run by a service account which has ssh authentication configured to our Git server. Running git clone direclty from the CLI on the server works using the same service account.
Am I correct in assuming xyOps opens a PSSession then sends commands to the server ? In that case, the remote session isn't exactly the same as a local session, event if it's the same username. It then cannot use local ssh-agent sessions, dpapi credentials, nor the credential manager.
If I type ssh-add -l on the server, it lists the ssh key loaded in ssh-agent.
If I run this command in a xyOps workflow running on the server, it returns an empty list.
We have a similar setup where the same service account runs a Jenkins agent on the same server, and it can clone the code from the remote when running Jenkins jobs. It seems the Jenkins agent initiates the connection, receives commands and runs them.
Could a similar method be used by Satellite ?
Best regards,
Marc-Olivier
FYI, I use xyops Version 1.0.1 on a docker image.
All reactions