Question about Peer configuration API

Hello !

I just found something I’m not sure about the peer configuration API. It returns the details about a Peer and that’s fine.

However if I set the Username and Password when I perform a GET /peers/{id}/configuration the Password field is always returned null.

Here is a sample response:

{
   "HttpHeaders" : [],
   "Password" : null,
   "Pkcs11" : false,
   "Timeout" : 0,
   "Url" : "http://gateway:8042/",
   "Username" : "orthanc"
}

Is it an intended behavior ? Not a big deal but if that field is always null maybe it’s not relevant to return it at all :smiley:.

Thanks !

Hi, I can’t comment on the official background, but this is correct. It should not be possible to fetch a password once set. This follows best security practices.
Hth.
James

1 Like