Skip to content

feat(plugins/lasso): send source.type=portkey for Used By attribution#1679

Open
orgersh92 wants to merge 1 commit into
Portkey-AI:2.0.0from
lasso-security:rnd-6273-source-portkey
Open

feat(plugins/lasso): send source.type=portkey for Used By attribution#1679
orgersh92 wants to merge 1 commit into
Portkey-AI:2.0.0from
lasso-security:rnd-6273-source-portkey

Conversation

@orgersh92

Copy link
Copy Markdown

Summary

The Lasso plugin now stamps source.type = "portkey" on every
/gateway/v3/classify payload. This drives the new "Used By" badge on
the customer's Application API Keys list — without it, all Portkey
traffic through this plugin shows as "N/A" on the keys page.

Backwards compatible: source is an optional opaque object on the
Lasso side. Older Lasso servers ignore it.

Changes

  • LassoV3ClassifyRequest interface gains an optional source field.
  • The plugin handler now sets source: { type: "portkey" } on every
    payload before calling Lasso.
  • Existing test (should send messageType PROMPT for beforeRequestHook)
    extended to assert the new field.

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.

1 participant