Skip to content

Commit

Permalink
Merge pull request #171 from formalco/api_key_sidecar
Browse files Browse the repository at this point in the history
Api key sidecar
  • Loading branch information
ahmb84 authored Oct 27, 2023
2 parents bb77466 + 5c5e9be commit 3ad13cf
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions formal/resources/resource_sidecar.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,13 @@ func ResourceSidecar() *schema.Resource {
Optional: true,
Default: false,
},
"api_key": {
// This description is used by the documentation generator and the language server.
Description: "Api key for the deployed Sidecar.",
Type: schema.TypeString,
Computed: true,
Sensitive: true,
},
},
}
}
Expand Down Expand Up @@ -244,6 +251,7 @@ func resourceSidecarRead(ctx context.Context, d *schema.ResourceData, meta inter
}

d.Set("formal_control_plane_tls_certificate", res.Msg.Secret)
d.Set("api_key", res.Msg.Secret)
}

d.SetId(res.Msg.Sidecar.Id)
Expand Down

0 comments on commit 3ad13cf

Please sign in to comment.