Skip to content

refactor(licensing): remove configurable api-url from LicenseConfig#106

Merged
fupelaqu merged 1 commit into
mainfrom
release-r1
Jun 11, 2026
Merged

refactor(licensing): remove configurable api-url from LicenseConfig#106
fupelaqu merged 1 commit into
mainfrom
release-r1

Conversation

@fupelaqu

Copy link
Copy Markdown
Contributor

The license-server host must NOT be client-overridable: a client able to repoint it (via HOCON api-url / env) to a server it controls could bypass license enforcement (forged JWKS, fabricated 'valid' responses). Drop the apiUrl field from LicenseConfig, its config read, and the api-url key from reference.conf. The host is now a hardcoded constant in the Elastic-License extensions layer (LicenseEndpoint.ApiUrl), read directly by the licensing clients — not from this Apache-licensed, forkable config.

Tests updated accordingly (the api-url parse assertions removed).

The license-server host must NOT be client-overridable: a client able to
repoint it (via HOCON api-url / env) to a server it controls could bypass
license enforcement (forged JWKS, fabricated 'valid' responses). Drop the
apiUrl field from LicenseConfig, its config read, and the api-url key from
reference.conf. The host is now a hardcoded constant in the Elastic-License
extensions layer (LicenseEndpoint.ApiUrl), read directly by the licensing
clients — not from this Apache-licensed, forkable config.

Tests updated accordingly (the api-url parse assertions removed).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@fupelaqu fupelaqu marked this pull request as ready for review June 11, 2026 19:20
@fupelaqu fupelaqu merged commit fe172f0 into main Jun 11, 2026
2 checks passed
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