fix(terrascript): upgrade time and random Terraform provider versions#5496
Merged
RH-tj merged 3 commits intoapp-sre:masterfrom Apr 22, 2026
Merged
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
✅ Files skipped from review due to trivial changes (2)
WalkthroughUpdated Terraform temporary provider version constraints for Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes 🚥 Pre-merge checks | ✅ 3 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Update hardcoded Terraform provider versions in terrascript to match the upgraded providers in the qontract-reconcile-base container image: - time: 0.9.1 -> 0.13.1 (fixes CVE-2023-24538, CVE-2023-24540) - random: 3.4.3 -> 3.8.1 (fixes CVE-2023-24538, CVE-2023-24540) The old versions were compiled with Go < 1.19.9 which contains critical vulnerabilities. The new versions are built with safe Go versions. NOTE: This change requires the updated qontract-reconcile-base image with the new provider versions to be available before deployment. JIRA: APPSRE-xxxx Made-with: Cursor
…oviders Updates the qontract-reconcile-base-master digest to pick up the new image built from container-images#294, which removed vulnerable AWS provider versions and upgraded time (0.13.1) and random (3.8.1). Made-with: Cursor
6953a28 to
43e39e1
Compare
Contributor
|
/lgtm |
BumbleFeng
approved these changes
Apr 21, 2026
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.
Summary
hashicorp/timeprovider version from 0.9.1 to 0.13.1 in terrascript required_providershashicorp/randomprovider version from 3.4.3 to 3.8.1 in terrascript required_providersContext
ACS flagged critical fixable CVEs in the
qontract-reconcile-masterimage running ingabi-pipelinesonappsrep09ue1. The root cause is old Terraform providers compiled with vulnerable Go versions (< 1.19.9). The oldtime(0.9.1) andrandom(3.4.3) providers were built with Go 1.18.5, which is affected by CVE-2023-24538, CVE-2023-24540, CVE-2024-24790, and others.Dependency
This PR requires the updated
qontract-reconcile-basecontainer image (with the new provider versions available in the plugin directory) to be published first. See companion PR: app-sre/container-images#TBDThe qontract-reconcile Dockerfile base image digest will also need to be updated to reference the new base image once it is published.
Test plan
terraform initsucceeds with new provider versionsrequired_providersblocksMade with Cursor
Summary by CodeRabbit