Skip to content

Don't advertise the Annotation API from the registry's node - #543

Merged
lo-simon merged 1 commit into
sony:masterfrom
garethsb:bugfix/registry-annotation-service
Nov 18, 2026
Merged

lo-simon merged 1 commit into
sony:masterfrom
garethsb:bugfix/registry-annotation-service

Conversation

@garethsb

Copy link
Copy Markdown
Contributor

The registry's own Node resource is made by make_node, which adds an urn:x-nmos:service:annotation/v1.0 entry to its services whenever annotation_port is not negative. The annotation_port setting has a default of 3212, and the registry server does not serve the Annotation API. So by default, nmos-cpp-registry advertises an IS-13 endpoint that nothing answers. We found this on a lab registry, where IS-13 clients that discover endpoints from Node services tried to annotate the registry's node and got no response on port 3212.

This PR makes -1 the registry's run-time default for annotation_port, in insert_default_settings. The registry's node then advertises the Annotation API only when annotation_port is configured explicitly, for example by an application that builds a registry which also serves make_annotation_api. Node defaults are unchanged. testAnnotationPortDefaults covers the registry with and without http_port, an explicit registry annotation_port, and the Node default.

@jonathan-r-thorpe, @lo-simon: do you think the registry needs to support IS-13 for its own node? If so, the alternative is to serve make_annotation_api from registry_server.cpp instead of disabling the advertisement.

Co-authored-by: Gareth's 🤖 buddy

The registry's own Node resource is made by make_node, which adds an
urn:x-nmos:service:annotation/v1.0 entry to its services whenever
annotation_port is not negative. The annotation_port setting has a default
of 3212, and the registry server does not serve the Annotation API, so
by default the registry's node advertises an IS-13 endpoint that
nothing answers.

Make -1 the registry's run-time default for annotation_port, so that
its node advertises the Annotation API only when annotation_port is
configured explicitly.

Signed-off-by: Gareth Sylvester-Bradley <garethsb@nvidia.com>

@lo-simon lo-simon left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lo-simon
lo-simon merged commit 9dabe3e into sony:master Nov 18, 2026
12 checks passed
@garethsb
garethsb deleted the bugfix/registry-annotation-service branch November 18, 2026 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants