Skip to content

Commit 6d2def8

Browse files
committed
fix: masked key detection
1 parent b4d3f5c commit 6d2def8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/provider/resource_project_api_key.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ func (r *ProjectApiKeyResource) Read(ctx context.Context, req resource.ReadReque
315315
data.OrganizationId.ValueString(),
316316
data.ProjectId.ValueStringPointer(),
317317
func(apiKey apiclient.ApiKey) bool {
318-
return data.Created.IsNull() || data.Created.ValueInt64() == apiKey.Created && MatchStringWithMask(data.Id.ValueString(), apiKey.SensitiveId)
318+
return (data.Created.IsNull() || data.Created.ValueInt64() == apiKey.Created) && MatchStringWithMask(data.Id.ValueString(), apiKey.SensitiveId)
319319
},
320320
)
321321
if err != nil {

0 commit comments

Comments
 (0)