Re: [go-cd] Re: GoCD 22.3 does not appear to allow windows file paths for git urls

2022-11-09 Thread Chad Wilson
I am curious, does a UNC path work with `git clone` on the command line?

It's possible this happened as a side effect of strengthening the
validation in 21.3.0 (https://www.gocd.org/releases/#21-3-0) due to
https://github.com/gocd/gocd/security/advisories/GHSA-xx28-8pr9-6xqh

On Thu, Nov 10, 2022 at 6:50 AM Funkycybermonk  wrote:

> It appears that I am able to change it from a unc path to a file protocol
> path to get the slashes the other direction and it does work. I'm not sure
> there is a specific reason but it actually seems to shave about 5 seconds
> off the time to pull the resources in.
>
> If this isn't a concern for anything else, I think I'm ok, it just might
> be helpful to Windows installs if there is a note that UNC paths no longer
> work and to use file://path instead.
>
> Thanks!
>
> On Wednesday, November 9, 2022 at 3:15:12 PM UTC-6 Funkycybermonk wrote:
>
>> Hello!
>>
>> It appears that on start, 22.2/22.3 at least try to validate the git urls
>> in my cruise xml. The issue is that it doesn't seem to allow windows file
>> or unc paths like . I can change
>> them to something else temporarily but it appears that the xml validation
>> will always fail. Is there a way to add alternate git path formats without
>> a new build of the server? Or, if there is just an alternate way of
>> legitimately addressing a unc path in GoCD in a different format it
>> accepts. We can't pull it from outside every time because these run
>> frequently and its a cost overhead for data being pulled in so it gets
>> expensive over time.
>>
>> It appears to be tested using class isValidURL in UrlArgumentTest.java
>> but the error is being thrown from ScmMaterialConfig.java I think.
>>
>> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/862032f5-ba19-4d4b-8a2e-6ad542b96125n%40googlegroups.com
> 
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAA1RwH-qm6uJa%3Dy-cQgm30BPfw7a1623NbWvNRWXrYJYWf7Ucw%40mail.gmail.com.


[go-cd] Re: GoCD 22.3 does not appear to allow windows file paths for git urls

2022-11-09 Thread Funkycybermonk
It appears that I am able to change it from a unc path to a file protocol 
path to get the slashes the other direction and it does work. I'm not sure 
there is a specific reason but it actually seems to shave about 5 seconds 
off the time to pull the resources in. 

If this isn't a concern for anything else, I think I'm ok, it just might be 
helpful to Windows installs if there is a note that UNC paths no longer 
work and to use file://path instead.

Thanks!

On Wednesday, November 9, 2022 at 3:15:12 PM UTC-6 Funkycybermonk wrote:

> Hello!
>
> It appears that on start, 22.2/22.3 at least try to validate the git urls 
> in my cruise xml. The issue is that it doesn't seem to allow windows file 
> or unc paths like . I can change 
> them to something else temporarily but it appears that the xml validation 
> will always fail. Is there a way to add alternate git path formats without 
> a new build of the server? Or, if there is just an alternate way of 
> legitimately addressing a unc path in GoCD in a different format it 
> accepts. We can't pull it from outside every time because these run 
> frequently and its a cost overhead for data being pulled in so it gets 
> expensive over time. 
>
> It appears to be tested using class isValidURL in UrlArgumentTest.java but 
> the error is being thrown from ScmMaterialConfig.java I think.
>
> 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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/862032f5-ba19-4d4b-8a2e-6ad542b96125n%40googlegroups.com.


[go-cd] GoCD 22.3 does not appear to allow windows file paths for git urls

2022-11-09 Thread Funkycybermonk
Hello!

It appears that on start, 22.2/22.3 at least try to validate the git urls 
in my cruise xml. The issue is that it doesn't seem to allow windows file 
or unc paths like . I can change 
them to something else temporarily but it appears that the xml validation 
will always fail. Is there a way to add alternate git path formats without 
a new build of the server? Or, if there is just an alternate way of 
legitimately addressing a unc path in GoCD in a different format it 
accepts. We can't pull it from outside every time because these run 
frequently and its a cost overhead for data being pulled in so it gets 
expensive over time. 

It appears to be tested using class isValidURL in UrlArgumentTest.java but 
the error is being thrown from ScmMaterialConfig.java I think.

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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/772a7604-bb58-4cfd-be7e-8481109c3073n%40googlegroups.com.


Re: [go-cd] gocd agent 18.10

2022-11-09 Thread VIjay
Thanks,  I was looking exactly same information.
I know its 4y old build but trying to replace existing system with minimal 
changes :)

On Tuesday, November 8, 2022 at 10:32:57 AM UTC-5 Aravind SV wrote:

> Hello!
>
> On Tue, Nov 8, 2022 at 1:26 PM Sriram Narayanan  wrote:
>
>> Could you just create that directory and file and configure the values 
>> there?
>> The RPM does not deliver that directory.
>>
>
> I don't think that'll work. The person mentioned 18.10, which is over 4 
> years old. No one should really be using it. But, if they are, then they 
> should follow the correct documentation: https://docs.gocd.org/18.10.0/ 
>
> I think wrapper-properties was introduced later.
>
> Cheers,
> Aravind
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/58cd9fec-47d6-4b40-bd42-eda43d56c9fen%40googlegroups.com.


Re: [go-cd] How to Print Secure Variable Value In console

2022-11-09 Thread 'Ashwanth Kumar' via go-cd
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,


On Wed, 9 Nov 2022 at 17:06, Nayan Makwana 
wrote:

> 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
>
>
>
> --
> 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+unsubscr...@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

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAD9m7Czu-_zDYxBfNQFWF4jvtwHdbVbjXqo4BtsaNNbHqG9M9A%40mail.gmail.com.


[go-cd] How to Print Secure Variable Value In console

2022-11-09 Thread Nayan Makwana
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



-- 
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+unsubscr...@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.