1

I need to get credentials information (which credentials used) for node. enter image description here

Currently I use this code that prints LOT of information but no credentials info that used for the node:

for node in get_server_instance().nodes._data['computer']:
    for i in node:
        print (i, node[i])

Is there any way to reach credentials ?

Thanks

Ziv M
  • 409
  • 6
  • 18
  • What type of credentials are you using? What type of environment is Jenkins running in? – vault Jan 17 '22 at 13:18
  • @vault I use crumb request for authorization – Ziv M Jan 17 '22 at 13:21
  • Does this address the issue? https://support.cloudbees.com/hc/en-us/articles/219257077-CSRF-Protection-Explained#resolution – vault Jan 17 '22 at 13:29
  • @vault nope Its just the data not exist in reply struct – Ziv M Jan 17 '22 at 14:11
  • I have set up Jenkins so each node is a docker container. With this environment, I just exec into the container and generate ssh keys. – vault Jan 19 '22 at 08:14

1 Answers1

0

The only way is run grep "credentials" */config.xml on the server inside nodes directory

Ziv M
  • 409
  • 6
  • 18