Skip to content

Move every SSF transmitter route onto SsfEndpointOptions - #335

Merged
kirill-abblix merged 2 commits into
developfrom
feature/wellknown-flag-on-options
Aug 4, 2026
Merged

Move every SSF transmitter route onto SsfEndpointOptions#335
kirill-abblix merged 2 commits into
developfrom
feature/wellknown-flag-on-options

Conversation

@kirill-abblix

Copy link
Copy Markdown
Member

Route strings scattered across mapping calls made a gateway topology a puzzle assembled at three call sites; one options object now states the whole of it: ManagementPrefix (default /ssf), AdvertisedPrefix for what the configuration document names behind a rewriting proxy, ConfigurationDocumentRoute for the internal route the proxy maps the canonical address onto, and the MapWellKnownConfiguration suppression flag beside them. MapSsfTransmitterEndpoints() and MapSsfConfigurationDocument() lost their path parameters and read the options; the canonical well-known address remains derived from the issuer, never from configuration. The end-to-end gateway scenario now declares its whole topology in the one options object.

Route strings scattered across mapping calls made a gateway topology a
puzzle assembled at three call sites; now one options object states the
whole of it. ManagementPrefix (default /ssf) is where the surface is
mapped, AdvertisedPrefix is what the configuration document names when a
rewriting proxy makes the two differ, ConfigurationDocumentRoute is the
internal route the proxy maps the canonical address onto, and the
MapWellKnownConfiguration flag moved beside them. Both mapping calls
lost their path parameters: MapSsfTransmitterEndpoints() and
MapSsfConfigurationDocument() read the options, and the canonical
well-known address remains derived from the issuer, never from
configuration.
The platform's own idiom for path-valued options, as the authentication
middleware options already model their paths. Construction rejects a
value missing its leading slash, so a typo fails loudly at startup
instead of mapping a dead route, and an unset prefix or route is the
struct's own no-value state rather than a null string. Host code does
not change - string literals convert implicitly.
@sonarqubecloud

sonarqubecloud Bot commented Aug 4, 2026

Copy link
Copy Markdown

@kirill-abblix
kirill-abblix merged commit d9a8ae8 into develop Aug 4, 2026
22 checks passed
@kirill-abblix
kirill-abblix deleted the feature/wellknown-flag-on-options branch August 4, 2026 15:25
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.

1 participant