Skip to content

chore(deps): bump go dependencies#101

Draft
rhamzeh wants to merge 3 commits intomainfrom
chore/bump-deps
Draft

chore(deps): bump go dependencies#101
rhamzeh wants to merge 3 commits intomainfrom
chore/bump-deps

Conversation

@rhamzeh
Copy link
Copy Markdown
Member

@rhamzeh rhamzeh commented Mar 24, 2026

Description

What problem is being solved?

How is it being solved?

What changes are made to solve it?

References

Review Checklist

  • I have clicked on "allow edits by maintainers".
  • I have added documentation for new/changed functionality in this PR or in a PR to openfga.dev [Provide a link to any relevant PRs in the references section above]
  • The correct base branch is being used, if not main
  • I have added tests to validate that the change in functionality is working as expected

Summary by CodeRabbit

  • Chores
    • Updated Go toolchain from version 1.24.0 to 1.25.0 with build tools pinned to 1.26.1
    • Upgraded core dependencies including Terraform plugin framework, OpenFGA libraries, and gRPC components to newer versions
    • Updated OpenFGA Docker image version from 1.8.4 to 1.13.0 for testing
    • Bumped various supporting dependencies for improved stability and security

Copilot AI review requested due to automatic review settings March 24, 2026 09:25
@rhamzeh rhamzeh requested review from a team as code owners March 24, 2026 09:25
@socket-security
Copy link
Copy Markdown

socket-security Bot commented Mar 24, 2026

@socket-security
Copy link
Copy Markdown

socket-security Bot commented Mar 24, 2026

Warning

Review the following alerts detected in dependencies.

According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.

Action Severity Alert  (click "▶" to expand/collapse)
Warn High
License policy violation: golang github.com/hashicorp/go-retryablehttp under MPL-2.0

License: MPL-2.0 - the applicable license policy does not allow this license (4) (roundtripper_test.go)

License: MPL-2.0 - the applicable license policy does not allow this license (4) (cert_error_go119.go)

License: MPL-2.0 - the applicable license policy does not allow this license (4) (client_test.go)

License: MPL-2.0 - the applicable license policy does not allow this license (4) (client.go)

License: MPL-2.0 - the applicable license policy does not allow this license (4) (.github/dependabot.yml)

License: MPL-2.0 - the applicable license policy does not allow this license (4) (.golangci.yml)

License: MPL-2.0 - the applicable license policy does not allow this license (4) (roundtripper.go)

License: MPL-2.0 - the applicable license policy does not allow this license (4) (cert_error_go120.go)

License: MPL-2.0 - the applicable license policy does not allow this license (4) (LICENSE)

From: ?golang/github.com/hashicorp/terraform-plugin-go@v0.31.0golang/github.com/hashicorp/terraform-plugin-testing@v1.13.3golang/github.com/hashicorp/go-retryablehttp@v0.7.8

ℹ Read more on: This package | This alert | What is a license policy violation?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Find a package that does not violate your license policy or adjust your policy to allow this package's license.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore golang/github.com/hashicorp/go-retryablehttp@v0.7.8. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

See 4 more rows in the dashboard

View full report

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Mar 24, 2026

Walkthrough

Updates toolchain versions, adds tool version pinning configuration, and upgrades dependencies. Go version updated from 1.24.0 to 1.25.0, OpenFGA Docker image bumped from 1.8.4 to 1.13.0, and multiple Go dependencies advanced to newer versions.

Changes

Cohort / File(s) Summary
CI Workflow
.github/workflows/test.yml
Updated OpenFGA Docker image version in test job matrix from 1.8.4 to 1.13.0.
Tool Configuration
.mise.toml
New file introducing pinned versions for Go (1.26.1) and Terraform (1.14.7).
Go Dependencies
go.mod
Updated Go toolchain from 1.24.0/go1.24.1 to 1.25.0/go1.26.1. Upgraded terraform-plugin-framework (v1.16.1 → v1.19.0), terraform-plugin-go (v0.29.0 → v0.31.0), terraform-plugin-log (v0.9.0 → v0.10.0), OpenFGA SDK (v0.7.3 → v0.7.5), protobuf (v1.36.10 → v1.36.11), and multiple transitive dependencies including gRPC, OpenTelemetry, and golang.org modules.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Suggested labels

chore, ci

Suggested reviewers

  • ewanharris
  • sergiught
🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The PR title 'chore(deps): bump go dependencies' accurately describes the primary change of updating Go module dependencies and toolchain versions across the codebase.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/bump-deps

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the module’s Go toolchain/version and bumps a set of Go dependencies (Terraform SDK/framework, OpenFGA SDK/protos, and various indirect libs), plus adds a mise tool pinning file to standardize local dev tool versions.

Changes:

  • Bump Go version/toolchain in go.mod and update direct/indirect module versions.
  • Refresh go.sum with checksums for the newly resolved module versions.
  • Add .mise.toml to pin Go/Terraform versions for local development.

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 1 comment.

File Description
go.mod Updates Go/toolchain versions and bumps required module versions (HashiCorp, OpenFGA, gRPC/protobuf, etc.).
go.sum Adds checksum entries for newly selected module versions after dependency updates.
.mise.toml Introduces pinned Go/Terraform tool versions for contributors using mise.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread go.mod
module github.com/openfga/terraform-provider-openfga

go 1.24.0
go 1.25.0
Copy link

Copilot AI Mar 24, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

go 1.25.0 combined with toolchain go1.26.1 means CI/dev runs will effectively execute Go 1.26.1 (and may auto-download that toolchain) even though the module language version is declared as 1.25. This is inconsistent with the prior pattern of keeping go and toolchain on the same minor version, and can add an implicit network dependency in CI (setup-go installs from go.mod). Consider aligning go and toolchain to the same Go minor (or dropping toolchain if not needed) so builds are deterministic and the declared Go version matches the compiler actually used.

Suggested change
go 1.25.0
go 1.26.1

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@go.mod`:
- Line 11: The provider is missing the required GenerateResourceConfig RPC
implementation and uses outdated testing/SDK versions introduced as breaking
changes in terraform-plugin-go v0.31.0; add a GenerateResourceConfig handler to
your ResourceServer implementations for both tfprotov5 and tfprotov6 (implement
the method name GenerateResourceConfig on the server type used for resources,
delegating to your existing plan/apply/read logic or returning the appropriate
diagnostics and config proto), and update go.mod to bump
github.com/hashicorp/terraform-plugin-testing to >= v1.15.0 and
github.com/hashicorp/terraform-plugin-sdk/v2 to >= v2.40.0, then run go mod tidy
and rebuild to ensure the new RPC and dependency versions resolve compile
errors.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: b080ed8c-5b00-4d48-938a-f887b607ee5a

📥 Commits

Reviewing files that changed from the base of the PR and between 949ef66 and 84d5b7b.

⛔ Files ignored due to path filters (1)
  • go.sum is excluded by !**/*.sum
📒 Files selected for processing (3)
  • .github/workflows/test.yml
  • .mise.toml
  • go.mod

Comment thread go.mod
github.com/hashicorp/terraform-plugin-framework-jsontypes v0.2.0
github.com/hashicorp/terraform-plugin-framework-validators v0.19.0
github.com/hashicorp/terraform-plugin-go v0.29.0
github.com/hashicorp/terraform-plugin-go v0.31.0
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

🧩 Analysis chain

🌐 Web query:

What are the breaking changes between terraform-plugin-go v0.29.0 and v0.31.0?

💡 Result:

The breaking changes between terraform-plugin-go v0.29.0 and v0.31.0 are as follows: In v0.31.0 (released March 10, 2026): BREAKING CHANGES: - tfprotov5+tfprotov6: The GenerateResourceConfig RPC call is now required in ResourceServer. (#607) NOTES: - all: To prevent compilation errors, ensure your Go module is updated to at least terraform-plugin-framework@v1.19.0, terraform-plugin-mux@v0.23.0, terraform-plugin-sdk/v2@v2.40.0, and terraform-plugin-testing@v1.15.0 before upgrading this dependency. (#607) - This Go module has been updated to Go 1.25 per the Go support policy. No explicit breaking changes were listed for v0.30.0 (released February 24, 2026). It mentions notes about experimental state store protocol definitions and an upcoming requirement for StateStoreServer in ProviderServer. The primary breaking change in this range is the requirement to implement GenerateResourceConfig in ResourceServer for both tfprotov5 and tfprotov6.

Citations:


🏁 Script executed:

# Read the go.mod file to check all dependency versions
cat go.mod

Repository: openfga/terraform-provider-openfga

Length of output: 3994


🏁 Script executed:

# Search for GenerateResourceConfig implementation
rg "GenerateResourceConfig" --type go

Repository: openfga/terraform-provider-openfga

Length of output: 60


🏁 Script executed:

# Search for ResourceServer implementation
rg "ResourceServer" --type go

Repository: openfga/terraform-provider-openfga

Length of output: 60


🏁 Script executed:

# Check if terraform-plugin-mux is listed as indirect dependency
rg "terraform-plugin-mux" go.mod

Repository: openfga/terraform-provider-openfga

Length of output: 60


Address critical compatibility issues with terraform-plugin-go v0.31.0.

The upgrade to v0.31.0 introduced a breaking change: GenerateResourceConfig RPC is now required in ResourceServer for both tfprotov5 and tfprotov6. This implementation is missing from the provider and must be added before this version can be used.

Additionally, the following required dependencies are below minimum compatible versions:

  • terraform-plugin-testing is v1.13.3 but needs v1.15.0 or later
  • terraform-plugin-sdk/v2 is v2.37.0 but needs v2.40.0 or later

The provider will not compile or function correctly without addressing these issues.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@go.mod` at line 11, The provider is missing the required
GenerateResourceConfig RPC implementation and uses outdated testing/SDK versions
introduced as breaking changes in terraform-plugin-go v0.31.0; add a
GenerateResourceConfig handler to your ResourceServer implementations for both
tfprotov5 and tfprotov6 (implement the method name GenerateResourceConfig on the
server type used for resources, delegating to your existing plan/apply/read
logic or returning the appropriate diagnostics and config proto), and update
go.mod to bump github.com/hashicorp/terraform-plugin-testing to >= v1.15.0 and
github.com/hashicorp/terraform-plugin-sdk/v2 to >= v2.40.0, then run go mod tidy
and rebuild to ensure the new RPC and dependency versions resolve compile
errors.

@rhamzeh rhamzeh marked this pull request as draft March 24, 2026 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants