-
Notifications
You must be signed in to change notification settings - Fork 2
Security audit: fix 8 vulnerabilities before production #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
smallwat3r
merged 12 commits into
smallwat3r:main
from
patillacode:feature/security-audit
Mar 9, 2026
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
df9892f
fix: prevent open redirect via Host header (CANONICAL_HOST)
patillacode 8c0c956
fix: gate proxy header trust on TRUSTED_PROXY_CIDR
patillacode bc8bfa8
fix: require Redis authentication in docker-compose
patillacode 9cfd71a
fix: apply rate limiting to /config endpoint
patillacode 859011d
fix: remove unsafe-inline from CSP style-src
patillacode 7e0233a
chore: update CI actions/checkout to v4
patillacode 4553921
chore: add govulncheck step to CI
patillacode c2b5516
chore: pin Docker base images to digest
patillacode 0f1f32e
docs: expand .env.example with all supported env vars in logical sect…
patillacode 6a927d8
docs: add CANONICAL_HOST, TRUSTED_PROXY_CIDR, REDIS_PASSWORD to env v…
patillacode 3eb3495
chore: merge upstream/main (dark theme support)
patillacode 1fcd636
fix: upgrade chi, go-redis, and Go to address govulncheck findings
patillacode File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| # Copy this file to .env and fill in the values before running docker-compose. | ||
|
|
||
| # ── Server ──────────────────────────────────────────────────────────────────── | ||
| PORT=8080 | ||
| SHUTDOWN_TIMEOUT=5s | ||
|
|
||
| # ── Redis ───────────────────────────────────────────────────────────────────── | ||
| # Password used by docker-compose to configure the Redis instance AND embedded | ||
| # into REDIS_URL below. Generate a strong value: openssl rand -hex 32 | ||
| REDIS_PASSWORD=change-me | ||
|
|
||
| # Full Redis connection URL. Must include the password set above. | ||
| REDIS_URL=redis://:${REDIS_PASSWORD}@localhost:6379/0 | ||
| REDIS_POOL_SIZE=10 | ||
| REDIS_MIN_IDLE=2 | ||
|
|
||
| # ── Security ────────────────────────────────────────────────────────────────── | ||
| # Canonical hostname for HTTPS redirects (prevents open redirect via spoofed | ||
| # Host header). Set to the public hostname of your deployment. | ||
| # Example: CANONICAL_HOST=secretapi.example.com | ||
| CANONICAL_HOST= | ||
|
|
||
| # CIDR range of your trusted reverse proxy. X-Real-IP / X-Forwarded-For headers | ||
| # are only trusted when the connection comes from within this range. | ||
| # Example: TRUSTED_PROXY_CIDR=10.0.0.0/8 | ||
| TRUSTED_PROXY_CIDR= | ||
|
|
||
| # Set to 1 to disable HTTPS enforcement and HSTS (development only). | ||
| NO_HTTPS= |
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
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
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
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
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
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.