How to Print Secure Variable Value In console

17 views
Skip to first unread message

Nayan Makwana

unread,
Nov 9, 2022, 6:36:27 AM11/9/22
to go-cd
Hello Folks,

I am trying to Print secure variable values in the console using my customer plugin but rather than AEC or any clear data I got only ***** value please help me let me know how to print the secure variable values in the console.

Thank you in advance 

Regards 
Nayan Makwana



Ashwanth Kumar

unread,
Nov 9, 2022, 6:41:08 AM11/9/22
to go...@googlegroups.com
It is by design GoCD does not print secure variables in the console. It is no longer secure if folks can just env on the command to see the variables. The value will be passed correctly to the program. 

You shouldn't try to print the variable in stdout/stderr, if you must absolutely check the value try writing it to a file and login to the machine and verify the contents. 

Thanks,


--
You received this message because you are subscribed to the Google Groups "go-cd" group.
To unsubscribe from this group and stop receiving emails from it, send an email to go-cd+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/go-cd/b81099f2-2b02-4aaf-a95c-1a0c18bf4150n%40googlegroups.com.


--

Ashwanth Kumar / ashwanthkumar.in

Reply all
Reply to author
Forward
0 new messages