Skip to content

Commit 33195db

Browse files
authored
Merge pull request #90 from port-labs/PORT-5213-replace-fernet-with-aes256-gcm-in-terraform
PORT-5213-replace-fernet-with-aes256-gcm-in-terraform
2 parents 78cbb77 + 9e43c10 commit 33195db

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

port/action/resource_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -816,14 +816,14 @@ func TestAccPortActionEncryption(t *testing.T) {
816816
"encryptedStringProp" = {
817817
"title" = "Encrypted string"
818818
"required" = true
819-
"encryption" = "fernet"
819+
"encryption" = "aes256-gcm"
820820
}
821821
}
822822
"object_props" = {
823823
"encryptedObjectProp" = {
824824
"title" = "Encrypted object"
825825
"required" = true
826-
"encryption" = "fernet"
826+
"encryption" = "aes256-gcm"
827827
}
828828
}
829829
}
@@ -845,10 +845,10 @@ func TestAccPortActionEncryption(t *testing.T) {
845845
resource.TestCheckResourceAttr("port_action.action1", "webhook_method.url", "https://getport.io"),
846846
resource.TestCheckResourceAttr("port_action.action1", "user_properties.string_props.encryptedStringProp.title", "Encrypted string"),
847847
resource.TestCheckResourceAttr("port_action.action1", "user_properties.string_props.encryptedStringProp.required", "true"),
848-
resource.TestCheckResourceAttr("port_action.action1", "user_properties.string_props.encryptedStringProp.encryption", "fernet"),
848+
resource.TestCheckResourceAttr("port_action.action1", "user_properties.string_props.encryptedStringProp.encryption", "aes256-gcm"),
849849
resource.TestCheckResourceAttr("port_action.action1", "user_properties.object_props.encryptedObjectProp.title", "Encrypted object"),
850850
resource.TestCheckResourceAttr("port_action.action1", "user_properties.object_props.encryptedObjectProp.required", "true"),
851-
resource.TestCheckResourceAttr("port_action.action1", "user_properties.object_props.encryptedObjectProp.encryption", "fernet"),
851+
resource.TestCheckResourceAttr("port_action.action1", "user_properties.object_props.encryptedObjectProp.encryption", "aes256-gcm"),
852852
),
853853
},
854854
},

port/action/schema.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ func StringPropertySchema() schema.Attribute {
320320
MarkdownDescription: "The algorithm to encrypt the property with",
321321
Optional: true,
322322
Validators: []validator.String{
323-
stringvalidator.OneOf("fernet"),
323+
stringvalidator.OneOf("aes256-gcm"),
324324
},
325325
},
326326
}
@@ -426,7 +426,7 @@ func ObjectPropertySchema() schema.Attribute {
426426
MarkdownDescription: "The algorithm to encrypt the property with",
427427
Optional: true,
428428
Validators: []validator.String{
429-
stringvalidator.OneOf("fernet"),
429+
stringvalidator.OneOf("aes256-gcm"),
430430
},
431431
},
432432
}

0 commit comments

Comments
 (0)