The Docker build context carries client files and live secrets #224
Labels
No Label
P0
P1
P2
P3
accessibility
backend
bug
content
data-integrity
enhancement
frontend
infra
integration
owner
owner-input
performance
phase-7
phase-8
release-blocker
security
seo
ui
ux
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: null/Queue-North-Website#224
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Seen at
a25077d(v0.9.5).What is true now.
.dockerignoredoes not exclude.drop/,zoho.md(the live reCAPTCHA secret key and the Zoho WebToLead tokens),Levi.md, or the two 30 MB zips, so all of it is sent into the Docker build context and the builder stage. The final image copies only built output (Dockerfile:79-81), so nothing has shipped. One carelessCOPYwould change that.What to do. Add
.drop/,zoho.md,Levi.mdand*.zipto.dockerignore. It also shrinks every build context by about 60 MB.Verify: a throwaway build of the context (
FROM busybox,COPY . /ctx,RUN find /ctx -maxdepth 2) run against this.dockerignorelists none of those paths, andnpm run docker:buildstill succeeds.Done in
2f1e248. .dockerignore now excludes .drop/, zoho.md (the live reCAPTCHA secret and Zoho tokens), Levi.md, *.zip, *.eml, *.pdf and the four agent workspaces. Proven by listing the build context from inside a throwaway busybox image built against this .dockerignore: before the change the context carried .drop, zoho.md, Levi.md and two 30 MB zips; after it, ls reports 'No such file or directory' for each, and the context is down to the source, docs, scripts and public assets.