--
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/f99cde95-c58d-4d58-8b6c-9681c02b34d5n%40googlegroups.com.
Perhaps this is the API? You mentioned encrypting a password:
To view this discussion on the web visit https://groups.google.com/d/msgid/go-cd/CAPKX9jZOqo72SoSXVeieR_tYMTXfKZRHJ-eNPPFvCQsiGJd6rw%40mail.gmail.com.
$ 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?
}'
$ 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?
}'
Every API call will need 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?