[Bug]: LLM Provider shouldn't share ProviderName with Policy Metadata
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 71
- Forks
- 111
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 110
Description
Please select the area the issue is related to
Area/Management (Management API or Management Portal UI), Area/Gateway (Routing, API deployment in gateway etc.)
Please select the aspect the issue is related to
Aspect/API (API backends, definitions, contracts, interfaces, OpenAPI)
Description
Policy Engine should not use ctx.SharedContext.Metadata to send, policy engine specific data.
Steps to Reproduce
Token Based Rate Limiting uses this.
providerName, ok := ctx.SharedContext.Metadata[MetadataKeyProviderName].(string)
Severity Level of the Issue
Severity/Blocker (Core functionality is broken and consumer is blocked. Need immediate attention)
Environment Details (with versions)
No response
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating MetadataKeyProviderName and the Token Based Rate Limiting usage shown in the issue, then trace how policy-engine data is passed through ctx.SharedContext.Metadata. Done means provider metadata no longer conflicts with policy metadata and the affected behavior is covered by tests; no test or source file is named in the issue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100