security: harden infrastructure (nginx, Docker, compose)#23
Merged
Conversation
Deploying cherry-evals with
|
| Latest commit: |
528b16d
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://dac836bc.cherry-evals.pages.dev |
| Branch Preview URL: | https://fix-infra-security.cherry-evals.pages.dev |
marinone94
force-pushed
the
fix/infra-security
branch
from
March 11, 2026 05:33
c10ff42 to
838c8ab
Compare
marinone94
added a commit
that referenced
this pull request
Mar 11, 2026
- nginx: add CSP, HSTS (2yr preload), Permissions-Policy headers - Dockerfile: run as non-root user (appuser) in production - docker-compose: bind Qdrant ports to 127.0.0.1, use env vars for DB credentials with safe defaults Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Remove HSTS preload flag (too aggressive for first deployment) - Bind Postgres port to 127.0.0.1 (consistent with Qdrant) - Align X-Frame-Options with CSP frame-ancestors (both DENY/none) - Add missing CSP directives: font-src, object-src, base-uri Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
marinone94
force-pushed
the
fix/infra-security
branch
from
March 11, 2026 05:50
838c8ab to
528b16d
Compare
marinone94
added a commit
that referenced
this pull request
Mar 11, 2026
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.
Summary
appuserviagroupadd/useradd,--chownon COPY,USER appuser127.0.0.1(not exposed to network), PostgreSQL credentials via${POSTGRES_PASSWORD:-cherry}env varsTest plan
docker compose upstarts services normallycurl localhost:6333from host works; remote access blockeddocker exec <id> whoami→appuser)🤖 Generated with Claude Code