[TT-16950] fix: make Docker images backward compatible with runAsUser: 1000#984
Conversation
- Remove --chown=65532:65532 from COPY for non-FIPS builds - Add chmod -R a+rX so files are world-readable regardless of uid - FIPS/DHI builds pass NONROOT_CHOWN=true for proper nonroot ownership Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
This pull request adjusts the Docker build process to restore backward compatibility for users running the container with a specific user ID (e.g., To maintain stricter security for FIPS-compliant images, a new build argument Files Changed Analysis
Architecture & Impact Assessment
Build Logic Flowgraph TD
subgraph Docker Build Process
A[Start Build] --> B{Is it a FIPS build?};
B -- Yes --> C[Set NONROOT_CHOWN=true];
B -- No --> D[Use default NONROOT_CHOWN=false];
C --> E[Builder Stage: RUN ... && chown];
D --> E;
E -- COPY --> F[Final Image];
end
subgraph Image Runtime
F --> G{Image Type?};
G -- FIPS --> H[Files owned by 65532:65532];
G -- Standard --> I[Files owned by root, readable by all];
end
Scope Discovery & Context ExpansionThis change is scoped to the Docker packaging of the Further investigation could involve reviewing the associated Tyk Pump Helm chart to confirm how Metadata
Powered by Visor from Probelabs Last updated: 2026-04-20T16:57:28.783Z | Triggered by: pr_opened | Commit: 4fc6669 💡 TIP: You can chat with Visor using |
Security Issues (1)
✅ Performance Check PassedNo performance issues found – changes LGTM. Security Issues (1)
✅ Performance Check PassedNo performance issues found – changes LGTM. \n\n✅ Quality Check PassedNo quality issues found – changes LGTM. Powered by Visor from Probelabs Last updated: 2026-04-20T16:57:15.698Z | Triggered by: pr_opened | Commit: 4fc6669 💡 TIP: You can chat with Visor using |
🚨 Jira Linter FailedCommit: The Jira linter failed to validate your PR. Please check the error details below: 🔍 Click to view error detailsNext Steps
This comment will be automatically deleted once the linter passes. |
Summary
Remove --chown=65532:65532 from non-FIPS Dockerfile builds to restore
backward compatibility with helm charts using runAsUser: 1000.
Test plan
🤖 Generated with Claude Code