Hi Aravind, Yes,it worked. 😊 I was just double checking. Thank you so much for assistance.
Regards, Sushma On Fri, Jun 4, 2021, 7:18 PM Aravind SV <[email protected]> wrote: > Every API call will need authentication > <https://api.gocd.org/current/#authentication> (either username:password > you use for logging in, or authentication tokens). Those two headers are > constant. And yes, the badger is the value you want to encrypt. What > happened when you tried it? > > * From*: Sushma Gangaiah <sushma+gangaiah+%[email protected]%3E> > * Subject*: Re: [go-cd] Guidance needed on securing username and password > on Gocd yaml > * To*: [email protected], Marques Lee > <[email protected],+marques+lee+%[email protected]%3E> > * Date*: Fri, 4 Jun 2021 17:41:02 +0530 > Dear Marques, > > Please find modified block. Let me know if my understanding is wrong. > > $ curl 'https://ci.example.com/go/api/admin/encrypt' \ #our gocd url?-u > 'username:password' \ # username and pw of gocd?-H 'Accept: > application/vnd.go.cd.v1+json' \ #is this constant?-H 'Content-Type: > application/json' \# also this is constant?-X POST -d '{ > "value": "badger" # badger is value of password? > }' > > > On Fri, Jun 4, 2021 at 5:30 PM Sushma Gangaiah <[email protected]> > wrote: > >> Dear Marques, >> >> Do I need to use the below block to generate password? >> >> $ curl 'https://ci.example.com/go/api/admin/encrypt' \-u 'username:password' >> \ # which username password its asking for?-H 'Accept: >> application/vnd.go.cd.v1+json' \ #is this constant?-H 'Content-Type: >> application/json' \# also this is constant?-X POST -d '{ >> "value": "badger" # badger is value of password? >> }' >> >> >> On Fri, Jun 4, 2021 at 5:25 PM Sushma Gangaiah <[email protected]> >> wrote: >> >>> Dear Marques, >>> >>> Yes,how will I encrypt password? Looking for the steps to be done . As >>> the above link is quite confusing for me. Is it possible to encrypt in GoCD >>> server UI? >>> >>> Regards, >>> Sushma >>> >>> On Fri, Jun 4, 2021, 5:21 PM Marques Lee <[email protected]> >>> wrote: >>> >>>> Perhaps this is the API? You mentioned encrypting a password: >>>> >>>> >>>> https://api.gocd.org/current/#encrypt-a-plain-text-value >>>> >>>> On Fri, Jun 4, 2021 at 4:47 AM Marques Lee < >>>> [email protected]> wrote: >>>> >>>>> Fir example, to list access tokens for your user, you would request >>>>> GET: >>>>> >>>>> https://go-server-host:8154/go/api/current_user/access_tokens >>>>> >>>>> And of course supplying the headers and auth according to the docs. >>>>> >>>>> On Fri, Jun 4, 2021 at 4:42 AM Marques Lee < >>>>> [email protected]> wrote: >>>>> >>>>>> Which API are you trying to use? That text just means that url is the >>>>>> prefix of all api calls. Which API endpoint is throwing a 404? >>>>>> >>>>>> -Marques >>>>>> >>>>>> On Fri, Jun 4, 2021 at 4:09 AM Sushma Gangaiah < >>>>>> [email protected]> wrote: >>>>>> >>>>>>> Hi All, >>>>>>> >>>>>>> I am stuck in encrypting password using gocd. >>>>>>> >>>>>>> Referred https://api.gocd.org/current/#introduction and the >>>>>>> paragragh in above link mentioned "All APIs SHOULD be accessed from >>>>>>> https://go-server-url:8154/go/api", but when I try this facing 404 >>>>>>> error. Please advice. >>>>>>> >>>>>>> Regards, >>>>>>> Sushma >>>>>>> -- >>>>>>> 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 [email protected]. >>>>>>> To view this discussion on the web visit >>>>>>> https://groups.google.com/d/msgid/go-cd/f99cde95-c58d-4d58-8b6c-9681c02b34d5n%40googlegroups.com >>>>>>> <https://groups.google.com/d/msgid/go-cd/f99cde95-c58d-4d58-8b6c-9681c02b34d5n%40googlegroups.com?utm_medium=email&utm_source=footer> >>>>>>> . >>>>>>> >>>>>> -- >>>> 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 [email protected]. >>>> To view this discussion on the web visit >>>> https://groups.google.com/d/msgid/go-cd/CAPKX9jZOqo72SoSXVeieR_tYMTXfKZRHJ-eNPPFvCQsiGJd6rw%40mail.gmail.com >>>> <https://groups.google.com/d/msgid/go-cd/CAPKX9jZOqo72SoSXVeieR_tYMTXfKZRHJ-eNPPFvCQsiGJd6rw%40mail.gmail.com?utm_medium=email&utm_source=footer> >>>> . >>>> >>> -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/go-cd/CAHDZtpQok5ryxj%2BARG2mTODGoB3XCGRA3sLsoaqPO%2Bsk0rALEA%40mail.gmail.com > <https://groups.google.com/d/msgid/go-cd/CAHDZtpQok5ryxj%2BARG2mTODGoB3XCGRA3sLsoaqPO%2Bsk0rALEA%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/go-cd/CAHDZtpSyvrv6f65-b6vYOsDp%3Dm3HKBjaxq%3D-T--KZybZh%3DnnAw%40mail.gmail.com.
