fix: enforce Keyverse identity and tenant authorization - #110
Closed
seonghobae wants to merge 3 commits into
Closed
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
seonghobae
marked this pull request as draft
August 12, 2026 02:04
seonghobae
marked this pull request as ready for review
August 12, 2026 02:26
seonghobae
marked this pull request as draft
August 12, 2026 02:29
Contributor
Author
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.
Summary
Exact identity and stack state
5a065bb44b4b7296f68ec992b04ab36b85d90e0ecodex/local-llm-benchmark@c138d1737b69fec9805253398a41046617a3a7a7main@6841b71935e0b7cb98fb52bcb4709cc5100c8d87This PR remains Draft while #109 is Draft/unintegrated and while exact-head release evidence is incomplete.
Verification
This is intentionally stacked on contextual-orchestrator PR #109 so the existing Keyverse verifier seam and its reviewed parent changes remain in the same normal protected merge flow. No JWT parser, Keycloak admin credential, or Admin merge is introduced.
Live stack revalidation (2026-08-12)
5a065bb44b4b7296f68ec992b04ab36b85d90e0eand protectedmainremains6841b71935e0b7cb98fb52bcb4709cc5100c8d87.216177f2c3524a145b24e6b9eafa3e8ca86306f5; the comparison is now 3 commits ahead and 13 commits behind with merge basec138d1737b69fec9805253398a41046617a3a7a7.Keep this PR Draft. Reconcile its three unique tenant-authorization commits only after PR #109 reaches one accepted stable head or integrates into protected
main, then regenerate every exact-head test, security, fuzz, coverage, docstring, and independent-review gate.Current-head tenant-existence disclosure defect (2026-08-12)
Exact head
5a065bb44b4b7296f68ec992b04ab36b85d90e0estill has a valid fail-closed privacy defect. The workflow-run lookup is the working comparison path: a foreign tenant is converted toKeyErrorand receives the same404 workflow_run_not_foundenvelope as an absent identifier. In contrast, existing foreign or ownerless resources at/api/v1/evaluation_runs/{id},/api/v1/batch_routing_jobs/{id},/api/v1/batch_routing_jobs/{id}/results, and/v1/batch/embeddings/{id}reachauthorize_resource(..., require_tenant=True)and return403 tenant_forbidden, while absent identifiers return404. That difference reveals resource existence and contradicts the stated “hide cross-tenant or ownerless reads” contract.Do not mark this PR Ready. The parent advanced to
216177f2c3524a145b24e6b9eafa3e8ca86306f5, leaving this head 13 commits behind, so this branch is frozen for source mutation during the current writer lease. After the parent stabilizes, repair test-first with HTTP regressions requiring indistinguishable404status and resource-specific not-found envelopes for absent, foreign-tenant, and ownerless identifiers across all four lookup families, while preserving successful same-tenant access and avoiding payload/status leakage before authorization. Then rerun the focused tests, full suite, 100% production statement/branch/public-docstring gates, security/fuzz workflows, and current-head independent review.