Repository navigation
Conversation
Member
|
Hello @mccahan 👋 AFAIK, there might be more folders that should be writable. I know it did bite my hand last time I tried. Maybe though LO conversions? |
Author
|
Hey Gulien, do you happen to remember (even vaguely) what might have bitten you about it? I tried the hardened config against the corpus QA doc set without issue. I did add one small notes change about (FYI I made those MITRE submissions, but no idea how backlogged they are. I did see a GitHub Community post that GH is running ~5 weeks for submissions through them directly) |
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.
Documents how to harden the Gotenberg container, the image-level mitigations that cover dropped binaries without any code change.
Changes
operate/secure.mdx— a new "Harden the container" section: a read-only root file system,noexec,nosuidtmpfs mounts for/tmpand the home directory,cap_drop: ALL,no-new-privileges, andshm_size, with acompose.yamlexample. Links to outbound filtering for the egress half.getting-started/installation.mdx— the Kubernetesdeployment.yamlsample now setsreadOnlyRootFilesystem,runAsNonRoot,runAsGroup,capabilities: drop: [ALL],seccompProfile: RuntimeDefault, and in-memoryemptyDirmounts for the writable paths. The prose notes that anemptyDirtmpfs has no per-mountnoexecin vanilla Kubernetes, and the 386socketcallseccomp exception.cookbook/user-html.mdx— a cross-link from the untrusted-HTML recipe to the hardening section.Verification
The
compose.yamlexample was checked against a running container:/proc/mountsconfirmsnoexec,nosuidon both tmpfs mounts, execution from/tmpis refused, and an HTML-to-PDF conversion through Chromium still returns200.npm run buildpasses with every cross-link anchor resolving.