Skip to content

Commit

Permalink
fix: don't return sensitive value
Browse files Browse the repository at this point in the history
  • Loading branch information
konturn committed Jun 13, 2023
1 parent 1cf48b9 commit 0c27151
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func expandServiceEndpointGcp(d *schema.ResourceData) (*serviceendpoint.ServiceE
func flattenServiceEndpointGcp(d *schema.ResourceData, serviceEndpoint *serviceendpoint.ServiceEndpoint, projectID *uuid.UUID) {
doBaseFlattening(d, serviceEndpoint, projectID)

d.Set("private_key", (*serviceEndpoint.Authorization.Parameters)["PrivateKey"])
d.Set("private_key", d.Get("private_key").(string))
d.Set("client_email", (*serviceEndpoint.Authorization.Parameters)["Issuer"])
d.Set("token_uri", (*serviceEndpoint.Authorization.Parameters)["Audience"])
d.Set("scope", (*serviceEndpoint.Authorization.Parameters)["Scope"])
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ var gcpForTerraformTestServiceEndpoint = serviceendpoint.ServiceEndpoint{
"Issuer": "GCP_TEST_client_email",
"Audience": "GCP_TEST_token_uri",
"Scope": "GCP_TEST_scope",
"PrivateKey": "GCP_TEST_private_key",
"PrivateKey": "",
},
Scheme: converter.String("JWT"),
},
Expand Down

0 comments on commit 0c27151

Please sign in to comment.