Skip to content

Commit e7b8578

Browse files
authored
Merge pull request #120 from OpenVPN/security/hide-private-keys
[Security Fix] Enhance data source and resource connectors
2 parents 4dfb8fc + b021a5c commit e7b8578

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

cloudconnexa/data_source_host_connector.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,13 @@ func dataSourceHostConnector() *schema.Resource {
5353
"profile": {
5454
Type: schema.TypeString,
5555
Computed: true,
56+
Sensitive: true,
5657
Description: "OpenVPN profile",
5758
},
5859
"token": {
5960
Type: schema.TypeString,
6061
Computed: true,
62+
Sensitive: true,
6163
Description: "Connector token",
6264
},
6365
},

cloudconnexa/data_source_network_connector.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,13 @@ func dataSourceNetworkConnector() *schema.Resource {
5353
"profile": {
5454
Type: schema.TypeString,
5555
Computed: true,
56+
Sensitive: true,
5657
Description: "OpenVPN profile",
5758
},
5859
"token": {
5960
Type: schema.TypeString,
6061
Computed: true,
62+
Sensitive: true,
6163
Description: "Connector token",
6264
},
6365
},

cloudconnexa/resource_host_connector.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,13 @@ func resourceHostConnector() *schema.Resource {
5959
"profile": {
6060
Type: schema.TypeString,
6161
Computed: true,
62+
Sensitive: true,
6263
Description: "OpenVPN profile of the connector.",
6364
},
6465
"token": {
6566
Type: schema.TypeString,
6667
Computed: true,
68+
Sensitive: true,
6769
Description: "Connector token.",
6870
},
6971
},

cloudconnexa/resource_network_connector.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,13 @@ func resourceNetworkConnector() *schema.Resource {
5858
"profile": {
5959
Type: schema.TypeString,
6060
Computed: true,
61+
Sensitive: true,
6162
Description: "OpenVPN profile of the connector.",
6263
},
6364
"token": {
6465
Type: schema.TypeString,
6566
Computed: true,
67+
Sensitive: true,
6668
Description: "Connector token.",
6769
},
6870
},

0 commit comments

Comments
 (0)