Fix agent model authorization principal#60
Merged
Merged
Conversation
Contributor
Author
Test & Lint Summary
|
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
user,relation, andobject.identity_id,identity_type, workload ID, Ziti identity ID, resolved model ID, organization ID, and provider organization ID.identity:<workload_id>when an agent request has a resolved workload ID; non-agent callers and agent calls without workload metadata continue using the resolved identity ID.Fixes agynio/chat-app#96.
What the existing failure logs show
unexpected status 403 Forbidden: access deniedfromhttp://llm-proxy.ziti/v1/responses.remote_name=simple-hello, TestLLM endpoint) followed byproxy: error status=403 err=access denied, without the principal or tuple being checked.Test & Lint Summary
git diff --check: passed with no whitespace errors.go test ./internal/proxy ./internal/auth ./internal/identity ./internal/zitimgmtclient: 2 packages passed, 2 packages had no test files, 0 failed, 0 skipped.go test ./...: 4 packages passed, remaining packages had no test files, 0 failed, 0 skipped.go vet ./...: passed with no errors.go build ./...: passed.