Skip to content

Enhance nginx configuration and container security features#33

Merged
ahnaf-tahmid-chowdhury merged 17 commits into
mainfrom
new
Jul 6, 2026
Merged

Enhance nginx configuration and container security features#33
ahnaf-tahmid-chowdhury merged 17 commits into
mainfrom
new

Conversation

@ahnaf-tahmid-chowdhury

Copy link
Copy Markdown
Collaborator

No description provided.

Replace raw `$http_host` with canonical `$host` for routing
and add `X-Forwarded-Host` and `X-Forwarded-Proto` headers
to preserve the original client request through the proxy chain.
- Correct "Server stopped" to "Server already stopped" in stop path
- Use `_get_client_ip` helper instead of raw `request.client.host`
- Remove unnecessary f-string on regex replacement label
- Suppress stderr in chmod with portable redirection
- Whitelist private subnets for Traefik forwarded headers
The hardened container uses tmpfs paths, so removing this limit allows
Theia file uploads and other workspace uploads to be gated solely by
application-level limits
xfs_quota requires the underlying block device node inside the
container.
Add XFS_QUOTA_DEVICE_PATH to compose.yml and document the required setup
in .env.example and PRODUCTION-DEPLOYMENT.md.
start.sh now sets LD_PRELOAD itself after creating passwd/group files,
so the
spawner only needs to pass NSS_WRAPPER_PASSWD and NSS_WRAPPER_GROUP.
Centralize Docker volume/container name construction in
`make_docker_volume_name`, replacing ad-hoc sanitization in the
server API and spawner. Add validation in `VolumeService.create_volume`
with proper error handling for invalid and duplicate names. Update
cleanup logic in `create_server` to track multiple auto-created
volumes and clean them all up on failure.
switch to user UUID

Replace the `username` parameter with `user_identifier` (UUID) so that
colliding sanitized usernames produce distinct Docker resource names.
Update all callers to pass `str(current_user.id)` instead of
`current_user.username`, and adjust container-name generation in the
spawner to use the new helper.
@ahnaf-tahmid-chowdhury ahnaf-tahmid-chowdhury merged commit 7123ee9 into main Jul 6, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant