Lineage GET endpoints skip the view-permission check
Affected module
Lineage
Describe the bug
Filing this as a public issue, as suggested in our earlier report (GHSA-c644-6j8x-5784). Found by a model reading the code; checked against main at c4621bfd on 2026-10-02. Nothing was executed.
GET /v1/lineage/{entity}/{id} and /{entity}/name/{fqn} return the lineage graph without an authorizer call (resources/lineage/LineageResource.java:182-211, :231-261). Of the fourteen @GET handlers in that file, only /scene checks VIEW_BASIC on the focus entity (:134-146, :324). POST /hydrate prunes nodes the caller cannot view (:1026-1035). The only pruning on the plain GETs is by domain, and only for users with DomainOnlyAccessRole (jdbi3/LineageRepository.java:167-172).
THREAT_MODEL.md:83-86 lists lineage graph traversal as a risk. LineageResourceIT.java:1287-1295 asserts Forbidden for a restricted client on /scene; the other GET handlers have no such assertion.
To Reproduce
Not run; this is from reading the code. Call get-by-id as a signed-in user whose policy denies VIEW_BASIC on the entity.
Expected behavior
The same Forbidden that /scene returns, or nodes the caller cannot view pruned as /hydrate does.
OpenMetadata version
main at c4621bfd
Additional context
Suggested fix: apply the /scene check to every lineage GET, or prune as /hydrate does. Happy to re-check once a fix lands.
SK, Trenyx