couchbaselabs / sdk-doctor

Application-server-side cluster connection diagnostics.
https://couchbase.com/
Apache License 2.0
18 stars 12 forks source link

RBAC support for Cluster Information #21

Open dufrenoyl opened 5 years ago

dufrenoyl commented 5 years ago

My sdk-doctor reports an error code 401 on Cluster information.

17:53:31.189 INFO ▶ Failed to retreive cluster information (status code: 401)

diagnose.go line 563 doesn't provide user and password to the curl http://localhost:8091/pools/default. This needs to be fixed to avoid 401 error.

Thanks.

hubgit commented 5 years ago

Same here - https://github.com/couchbaselabs/sdk-doctor/blob/471fb19ed2839ac38fd0f2e82615c0f6138a0fc2/cmd/diagnose.go#L572 is returning a 401 error, while the other services respond correctly, because authentication isn't being sent with the request.