Repository navigation
Docker security hardening: non-root users, restrictive permissions, base image updates - #294
Merged
Merged
Conversation
…e images Co-authored-by: makr-code <[email protected]>
Co-authored-by: makr-code <[email protected]>
Copilot
AI
changed the title
[WIP] Check Themis source code for docker vulnerabilities
Docker security hardening: non-root users, restrictive permissions, base image updates
Jan 8, 2026
makr-code
approved these changes
Jan 8, 2026
makr-code
marked this pull request as ready for review
January 8, 2026 18:18
makr-code
added a commit
that referenced
this pull request
May 11, 2026
Update STUB_INVENTORY.md with new reconciled entries (#259–#294) and refresh footer timestamp/status snapshot. Add public-interface includes and standard library headers to acceleration sources (graphics_backends.cpp, plugin_loader.cpp, shader_integrity.cpp) to satisfy compilation and clarify dependencies; also include shader_integrity.h. Simplify plugin_loader mismatch handling (avoid structured-binding use). Make scheduled-edge-refresh test create an isolated, deterministic DB path using thread id + timestamp via ostringstream, create/remove directories with std::error_code to avoid flaky filesystem ops, and add the needed <sstream> include.
16 tasks done
Copilot AI
added a commit
that referenced
this pull request
May 20, 2026
- Add RerouteSerializeFn tests (stub #252) - AstVisitorFn bridge: TensorAwareQueryOptimizer (stub #275) - ExactSimilarityFn bridge: TensorFingerprintGraph (stub #276) - [[deprecated]] attribute: ggmlCorePtrs (stub #277) - RpcPhase2Fn bridge: DistributedTransactionManager (stub #279) - AuthorizeFn bridge: RopeApiHandler RBAC (stub #280) - HttpPostFn bridge: AIPluginGenerator (stub #282) - HTToTTFn bridge: HTTrain (stub #286) - ModelPathProviderFn bridge: LoRATrainingService (stub #289) - AllReduceCpuFn bridge: DistributedTrainer (stub #290) - NlpContextFn bridge: AdaptiveShardRouter (stub #291) - StringArrayFn bridge: PropertyGraphManager (stub #292) - SchemaInspectorFn/SchemaValidatorFn: ImportApiHandler (stub #294) - Lz4CompressFn/Lz4DecompressFn: SecureTransportClient (stub #295) - SpamKeywordsProviderFn: FeedbackStore (stub #296) - MODIFY path fix: FeedbackStore validateWithPlugin (stub #297) - shared_ptr ResponseBuffer RAII: Http2Session (stub #298) - ModelPathProviderFn: ThemisHelpLoRA Config (stub #299) - IngestExternalFileFn: BackupManager (stub #300) - StatsQueryFn: RopeApiHandler (stub #307) - Update STUB_INVENTORY.md: 272->292 resolved, 44->24 active Co-authored-by: Copilot <[email protected]> Co-authored-by: makr-code <[email protected]>
This was referenced May 20, 2026
Copilot AI
added a commit
that referenced
this pull request
May 20, 2026
…backed schema endpoints Agent-Logs-Url: https://github.com/makr-code/ThemisDB/sessions/09f496ca-1d71-4462-aa8e-9869efc2cfea Co-authored-by: makr-code <[email protected]>
8 tasks done
7 tasks done
makr-code
added a commit
that referenced
this pull request
May 21, 2026
…backed schema endpoints Agent-Logs-Url: https://github.com/makr-code/ThemisDB/sessions/09f496ca-1d71-4462-aa8e-9869efc2cfea Co-authored-by: makr-code <[email protected]>
31 of 46 tasks
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.
Comprehensive security audit identified privilege escalation risks and containers running as root. Fixed critical issues across Docker infrastructure.
Security Fixes
Privilege Management
docker/entrypoint.sh: Directory permissions0775→0750(prevents world access)docker/docker-compose.qnap.yml: Container user0:0→999:999(non-root themis user)Non-Root Runtime
Added
USER themisdirective to 5 Dockerfiles missing it:Dockerfile.optimized-localDockerfile.minimalDockerfile.benchmarkDockerfile.quickDockerfile.simple(documented entrypoint privilege drop)Base Image Update
docker/Dockerfile.qnap: Ubuntu 20.04 → 22.04 (EOL mitigation)Documentation
DOCKER_SECURITY_AUDIT.md: Full technical audit with vulnerability analysis, compliance mapping (CIS, OWASP), and remediation details.
DOCKER_SECURITY_CHECK_ZUSAMMENFASSUNG.md: German executive summary for stakeholders.
Result
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.