Skip to content

feat(seer): add validate_llm_proxy_key RPC endpoint#117885

Merged
sehr-m merged 2 commits into
masterfrom
sehrm/llm-proxy-validate-key
Jun 17, 2026
Merged

feat(seer): add validate_llm_proxy_key RPC endpoint#117885
sehr-m merged 2 commits into
masterfrom
sehrm/llm-proxy-validate-key

Conversation

@sehr-m

@sehr-m sehr-m commented Jun 16, 2026

Copy link
Copy Markdown
Member

Summary

  • Adds validate_llm_proxy_key to seer_method_registry in seer_rpc.py
  • Pass-through that always returns {"valid": true} — validates the RPC flow before adding real key logic
  • Accessible at POST /api/0/internal/seer-rpc/validate_llm_proxy_key/
  • Authenticated via existing SeerRpcSignatureAuthentication (HMAC shared secret)

Context

The llm-proxy's custom auth hook will call this endpoint to validate API keys on every LLM request (with caching). This PR proves the endpoint is reachable and the contract works. Real key validation (new table, subscription checks) comes next.

Test plan

  • Validated locally with mock getsentry returning {"valid": true} — full flow works
  • Existing seer RPC tests still pass

Linear: AIML-2931

🤖 Generated with Claude Code

@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Jun 16, 2026
Pass-through endpoint that always returns {"valid": true}. This
validates the custom auth hook → getsentry RPC flow for the llm-proxy
before adding real key validation logic.

Registered in seer_method_registry, accessible at:
POST /api/0/internal/seer-rpc/validate_llm_proxy_key/

AIML-2931
@sehr-m sehr-m force-pushed the sehrm/llm-proxy-validate-key branch from 6c7895d to 7794f60 Compare June 17, 2026 21:20
@linear-code

linear-code Bot commented Jun 17, 2026

Copy link
Copy Markdown

AIML-2931

Verifies the endpoint is reachable via HMAC auth and returns
{"valid": true}.

AIML-2931
@sehr-m sehr-m marked this pull request as ready for review June 17, 2026 21:26
@sehr-m sehr-m requested a review from a team as a code owner June 17, 2026 21:26
@sehr-m sehr-m merged commit 7c8f460 into master Jun 17, 2026
65 checks passed
@sehr-m sehr-m deleted the sehrm/llm-proxy-validate-key branch June 17, 2026 23:20
sehr-m added a commit that referenced this pull request Jun 23, 2026
## Summary

- Adds `validate_llm_proxy_key` to `seer_method_registry` in
`seer_rpc.py`
- Pass-through that always returns `{"valid": true}` — validates the RPC
flow before adding real key logic
- Accessible at `POST /api/0/internal/seer-rpc/validate_llm_proxy_key/`
- Authenticated via existing `SeerRpcSignatureAuthentication` (HMAC
shared secret)

## Context

The llm-proxy's custom auth hook will call this endpoint to validate API
keys on every LLM request (with caching). This PR proves the endpoint is
reachable and the contract works. Real key validation (new table,
subscription checks) comes next.

## Test plan

- [ ] Validated locally with mock getsentry returning `{"valid": true}`
— full flow works
- [ ] Existing seer RPC tests still pass

Linear: AIML-2931

🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants