Repository navigation
fix: resolve authoritative definitions in datacontract api with the request's Entropy Data API key - #1681
Merged
Conversation
jschoedl
marked this pull request as draft
October 1, 2026 10:36
…nition isn't served to another
…ATA_HOST when resolving definitions in datacontract api
jschoedl
marked this pull request as ready for review
October 1, 2026 13:56
andredlng
reviewed
Oct 1, 2026
andredlng
reviewed
Oct 1, 2026
…e same one is read again
…s and local files and don't widen with entropy-data-host
…uest's API key, and drop the empty host hint for IRIs without a host
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Since v1.2.1,
datacontract apiignored theentropy-data-api-keysent with a request when resolvingauthoritativeDefinitions, so tests started from Entropy Data failed on contracts that reference definitions. Lookups now use that key again, and may reach any Entropy Data domain, where Entropy Data writes definition URLs (e.g.https://app.entropy-data.com/<org>/definitions/<id>).A key only goes to the host it belongs to: the request's key to its
entropy-data-host(all Entropy Data domains counting as one host), the server'sENTROPY_DATA_API_KEYto exactlyENTROPY_DATA_HOST. Cached definitions are keyed by URL and API key and expire after 60 seconds.