This repository was archived by the owner on Aug 17, 2025. It is now read-only.

Description
Describe the problem:
I'm trying to update the registration of the Broker by the ServiceManager and it fails with this error:
$ smctl update-broker my-broker '{"credentials":{"tls":{"sm_provided_tls_credentials": true}}, "broker_url":"*****"}'
Error: request PATCH https://*****?async=false failed: StatusCode: 400 Body: {"error":"BadRequest","description":"updating a url of a broker requires its credentials"}
As per the implementation, if the "sm_provided_tls_credentials": true is set it should not return this error message updating a url of a broker requires its credentials, am I right?
Steps to reproduce:
- Register the Broker
- Update the Broker with different
broker_url
Observed Results:
$ smctl update-broker my-broker '{"credentials":{"tls":{"sm_provided_tls_credentials": true}}, "broker_url":"*****"}'
Error: request PATCH https://*****?async=false failed: StatusCode: 400 Body: {"error":"BadRequest","description":"updating a url of a broker requires its credentials"}
Expected Results:
- Broker registration should be updated with the new Broker URL.
Relevant Code Snippet: