Skip to content

Commit 7037fe3

Browse files
authored
Merge pull request #92 from authzed/fix/remove-pending-modifiers
fix: remove remaining plan modifiers from policy resource
2 parents b628406 + 6eea215 commit 7037fe3

File tree

2 files changed

+24
-14
lines changed

2 files changed

+24
-14
lines changed

CHANGELOG.md

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,31 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [0.4.1] - 2025-01-08
11+
12+
### Fixed
13+
- Ensures consistent behavior across all resources and eliminates plan inconsistencies for policy updates
14+
15+
## [0.4.0] - 2025-01-08
16+
17+
### Added
18+
- Native FGAM (Fine-Grained Access Management) field support for all resources
19+
- New `updated_at` and `updater` fields for Service Accounts, Roles, Policies, and Tokens
20+
- Enhanced retry logic with support for 429 (Rate Limit) status codes
21+
- Improved concurrent operation handling with increased retry limits
22+
23+
### Fixed
24+
- **CRITICAL**: Resolved "Provider produced inconsistent result after apply" errors caused by etag inconsistencies
25+
- Fixed etag handling by removing incorrect UseStateForUnknown() plan modifiers from etag fields
26+
- Ensured etag values always come from API responses for consistent state management
27+
1028
### Changed
11-
- Renamed provider from `platform-api` to `cloudapi` for Terraform Registry compliance
12-
- Updated documentation to reflect new provider name
13-
- Improved README with more detailed examples
29+
- Removed provider-side FGAM patches and locking mechanisms in favor of native API support
30+
- Updated OpenAPI spec integration to use latest API fixes
31+
32+
33+
### Removed
34+
- Provider-side FGAM coordinators and serialization logic (replaced by native API support)
1435

1536
## [0.1.0] - 2023-08-15
1637

internal/provider/policy_resource.go

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ import (
1111
"github.com/hashicorp/terraform-plugin-framework/path"
1212
"github.com/hashicorp/terraform-plugin-framework/resource"
1313
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
14-
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
15-
"github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier"
1614
"github.com/hashicorp/terraform-plugin-framework/types"
1715
)
1816

@@ -54,9 +52,6 @@ func (r *policyResource) Schema(_ context.Context, _ resource.SchemaRequest, res
5452
"id": schema.StringAttribute{
5553
Computed: true,
5654
Description: "Unique identifier for this resource",
57-
PlanModifiers: []planmodifier.String{
58-
stringplanmodifier.UseStateForUnknown(),
59-
},
6055
},
6156
"name": schema.StringAttribute{
6257
Required: true,
@@ -82,16 +77,10 @@ func (r *policyResource) Schema(_ context.Context, _ resource.SchemaRequest, res
8277
"created_at": schema.StringAttribute{
8378
Computed: true,
8479
Description: "Timestamp when the policy was created",
85-
PlanModifiers: []planmodifier.String{
86-
stringplanmodifier.UseStateForUnknown(),
87-
},
8880
},
8981
"creator": schema.StringAttribute{
9082
Computed: true,
9183
Description: "User who created the policy",
92-
PlanModifiers: []planmodifier.String{
93-
stringplanmodifier.UseStateForUnknown(),
94-
},
9584
},
9685
"updated_at": schema.StringAttribute{
9786
Computed: true,

0 commit comments

Comments
 (0)