Skip to content

Keep an unregistered Endpoint private - #218

Merged
rbardaji merged 1 commit into
mainfrom
fix/217-standalone-not-public
Aug 3, 2026
Merged

Keep an unregistered Endpoint private#218
rbardaji merged 1 commit into
mainfrom
fix/217-standalone-not-public

Conversation

@rbardaji

@rbardaji rbardaji commented Aug 3, 2026

Copy link
Copy Markdown
Collaborator

Closes #217.

Answering no to Register this Endpoint with the Federation now? is supposed to produce a standalone Endpoint. It was not one: IS_PUBLIC was written only when a registration was fetched, so declining left the True that example.env carries as a demo default, with METRICS_ENDPOINT still pointing at the Federation.

The Endpoint then posted its public IP, organization, endpoint name, system usage and catalog counts every 3300 seconds to a platform it had deliberately not joined — and the Federation accepted them with 201 Created.

The fix

IS_PUBLIC=False now goes in with the rest of the defaults, before the registration block, which is the only thing that turns it back on and does so from the answer given while registering. Installing with --config-id, or answering yes, behaves exactly as before.

example.env now says that IS_PUBLIC is what allows metrics to be posted, which was documented nowhere.

Verified

  • A full install with no registration renders IS_PUBLIC=False, and the Endpoint running with that .env posted nothing: zero matches for a metrics POST in its logs after startup, while the metrics task kept collecting and logging locally.
  • 1203 tests pass, black --check . and flake8 clean.
  • The sequence diagram claimed the old behaviour explicitly; it has been corrected, and re-rendered to check it still draws.

Backwards compatibility

Only new installations are affected. An existing .env keeps whatever IS_PUBLIC it has — set it to False by hand on an Endpoint that should not be reporting.

…ported

IS_PUBLIC gates the metrics POST to the Federation. The installer wrote it
only when a registration was fetched, so declining to register inherited
example.env's demo default of True and the Endpoint reported its public IP,
organization, name, system usage and catalog counts to a platform it had
deliberately not joined.

It is now switched off with the rest of the defaults, before the registration
block gets its chance to turn it back on from the answer given while
registering. Metrics are still collected and logged; nothing leaves the
Endpoint.

The sequence diagram said the opposite, and now matches.
@rbardaji
rbardaji merged commit 4c3cb4e into main Aug 3, 2026
1 check passed
@rbardaji
rbardaji deleted the fix/217-standalone-not-public branch August 3, 2026 21:06
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.

An Endpoint that declines to register still reports metrics to the Federation

1 participant