Repository navigation
Add FastAPI service + Dockerfile, CI container smoke test (v0.5.0) - #2
Open
ashishdhillon wants to merge 1 commit into
Open
ashishdhillon wants to merge 1 commit into
ashishdhillon wants to merge 1 commit into
Conversation
POST /v1/check, /v1/redact, GET /health; optional X-API-Key; 100k-char limit; non-root image. Optional extra guardkit[api]. CI gains an 'extras' job (dev+api+mcp tests) and a 'docker' job. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FK2aywToQzZSDMzqXdmFRo
This branch has not been deployed
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.
guardkit/api.py: FastAPI app (/health,/v1/check,/v1/redact), optionalX-API-Key(constant-time compare), 100k-char limit, no matched values echoed. Extra:guardkit[api].Dockerfile(python:3.12-slim, non-root, healthcheck, example policy) +.dockerignore.extrasjob runs the optional-dependency tests (api, mcp) and adockerjob builds the image and smoke-tests it.Verified: clean-venv install of
.[api]and a live uvicorn run (health 200, no key 401, check 200). Latency measured on that run (2-core sandbox, localhost): ~3.2 ms p50 / 4.4 ms p95 short prompt; 7.0 / 8.9 ms for ~4.5k chars.Not verified: the Docker image itself — the sandbox has no Docker daemon. The new
dockerCI job is the first real build; check it is green before merging.After merge: publish a GitHub Release tagged v0.5.0.
Generated by Claude Code