Server mode: sqlguardllm serve with an HTTP API and a Docker image

Open
#34 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
Over a week
Newbie friendliness
18/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
docker, python, yaml
Domain
api, devops

Research direction

Start with src/sqlguardllm/server.py, Dockerfile and .github/workflows/release.yml, plus docs/DESIGN.md for the CheckResult JSON shape. The issue depends on #12 and #11, which are not in the payload, so read those first. Done means both endpoints return CheckResult JSON, the OpenAPI document and GHCR image publish on release, and a localhost benchmark shows p50 under 2 ms.

Written by the indexing model from the issue text.

Description

area:integrations size:m type:feature
Goal

Use the same engine from any language as a sidecar (docs/DESIGN.md#other-languages).

Acceptance criteria
  • sqlguardllm serve --policy FILE exposes POST /v1/check and POST /v1/explain with the same JSON as CheckResult
  • Named policies loaded at startup; no SQL or context is logged
  • OpenAPI document and a Docker image published to GHCR on release
  • p50 under 2 ms per check on localhost in a benchmark
Relevant files
  • src/sqlguardllm/server.py
  • Dockerfile
  • .github/workflows/release.yml
Size

M (1-2 days)

Notes
Dominant language
Python
Stars
0
Forks
0
Avg merge
1m
Merged PRs (30d)
2

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from jmmana/sqlguardllm

All issues in jmmana/sqlguardllm

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.