Skip to content

fix: resolve authoritative definitions in datacontract api with the request's Entropy Data API key - #1681

Merged
jschoedl merged 8 commits into
mainfrom
fix/api-definition-lookup-request-key
Oct 1, 2026
Merged

jschoedl merged 8 commits into
mainfrom
fix/api-definition-lookup-request-key

Conversation

@jschoedl

@jschoedl jschoedl commented Oct 1, 2026 •

Copy link
Copy Markdown
Collaborator

Since v1.2.1, datacontract api ignored the entropy-data-api-key sent with a request when resolving authoritativeDefinitions, 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's ENTROPY_DATA_API_KEY to exactly ENTROPY_DATA_HOST. Cached definitions are keyed by URL and API key and expire after 60 seconds.

@jschoedl
jschoedl marked this pull request as draft October 1, 2026 10:36
@jschoedl
jschoedl marked this pull request as ready for review October 1, 2026 13:56
Comment thread datacontract/lint/resolve.py Resolved
Comment thread docs/docs/api.md Resolved
…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
@jschoedl
jschoedl merged commit fb94528 into main Oct 1, 2026
19 checks passed
@jschoedl
jschoedl deleted the fix/api-definition-lookup-request-key branch October 1, 2026 15:01
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