update kubectl image (#558)#559
Conversation
(cherry picked from commit db35e33)
WalkthroughThe container image used by the ChangesECR Token Refresher Image Update
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 Trivy (0.69.3)Trivy execution timed out Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
modules/artifactories/default/0.1/ecr-token-refresher.tf (1)
49-49: 🔒 Security & Privacy | 🔵 Trivial | 💤 Low valueConsider pinning by digest instead of mutable tag.
facetscloud/aws-kubectl:1.31.0is still a mutable tag; if the maintainer republishes that tag with different contents, the cron job would silently pick up a new image on next pull (image_pull_policy = "Always"). Pinning by immutable digest (image@sha256:...) would guarantee reproducibility for this critical secret-rotation job.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@modules/artifactories/default/0.1/ecr-token-refresher.tf` at line 49, The cron job image reference in the ecr-token-refresher Terraform should not use the mutable aws-kubectl tag. Update the image setting in the ecr-token-refresher configuration to pin the container by immutable digest instead, using the existing image reference as the base and replacing the tag with a digest form so the job always pulls the exact same artifact.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In `@modules/artifactories/default/0.1/ecr-token-refresher.tf`:
- Line 49: The cron job image reference in the ecr-token-refresher Terraform
should not use the mutable aws-kubectl tag. Update the image setting in the
ecr-token-refresher configuration to pin the container by immutable digest
instead, using the existing image reference as the base and replacing the tag
with a digest form so the job always pulls the exact same artifact.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 6bb13ad6-c43c-4bd8-b885-c571e65e3d67
📒 Files selected for processing (1)
modules/artifactories/default/0.1/ecr-token-refresher.tf
(cherry picked from commit db35e33)
Description
Related issues
Type of change
Checklist
developbranchTesting
Reviewer instructions
Summary by CodeRabbit
kubectlcontainer image.