Skip to content
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.

Commit

Permalink
Merge branch 'develop' into release/v1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
florisvdg committed Jul 8, 2020
2 parents 6679c03 + b2ca0d4 commit 9c653e4
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 10 deletions.
4 changes: 2 additions & 2 deletions secrethub/resource_service_gcp.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ func resourceServiceGCP() *schema.Resource {
Type: schema.TypeString,
Required: true,
ForceNew: true,
Description: "The role name or ARN of the IAM role that should have access to this service account.",
Description: "The email of the Google Service Account that provides the identity of the SecretHub service account.",
},
"kms_key_id": {
Type: schema.TypeString,
Required: true,
ForceNew: true,
Description: "The Resource ID of the KMS key to use to encrypt and decrypt your SecretHub key material.",
Description: "The Resource ID of the Cloud KMS key to use to encrypt and decrypt your SecretHub key material.",
},
},
}
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/service_aws.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ description: |-

This resource allows you to manage a service account that is tied to an AWS IAM role.

The native AWS identity provider uses a combination of AWS IAM and AWS KMS to provide access to SecretHub for any service running on AWS (e.g. EC2, Lambda or ECS) without needing a SecretHub credential.
The AWS identity provider uses a combination of AWS IAM and AWS KMS to read secrets from SecretHub from any app running on AWS (EC2, ECS, Lambda, etc.) without needing to manage another key.

## Example Usage

Expand Down
33 changes: 33 additions & 0 deletions website/docs/r/service_gcp.html.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
layout: "secrethub"
page_title: "Resource: secrethub_service_gcp"
sidebar_current: "docs-secrethub-resource-service-gcp"
description: |-
Creates and manages SecretHub service accounts tied to a GCP Service Account.
---

# Resource: secrethub_service_gcp

This resource allows you to manage a SecretHub service account that is tied to a GCP Service Account.

The GCP identity provider uses a combination of Cloud IAM and Cloud KMS to read secrets from SecretHub from any app running on Google Cloud (GCE, GKE, etc.) without needing to manage another key.

## GCP Project link

Before you can use this resource, you first have to link your SecretHub namespace with your GCP project.
You only have to do this once for your namespace and GCP project.

Because the linking process uses OAuth and therefore needs a web browser login, it cannot be Terraformed and needs the SecretHub CLI:

```
secrethub service gcp link <namespace> <project id>
```

## Argument Reference

The following arguments are supported:

* `service_account_email` - (Required) The email of the Google Service Account that provides the identity of the SecretHub service account.
* `kms_key_id` - (Required) The Resource ID of the Cloud KMS key to use to encrypt and decrypt your SecretHub key material.
* `repo` - (Required) The path of the repository on which the service operates.
* `description` - (Optional) A description of the service so others will recognize it.
20 changes: 13 additions & 7 deletions website/secrethub.erb
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@
<li<%= sidebar_current("docs-secrethub-datasource") %>>
<a href="#">Data Sources</a>
<ul class="nav nav-visible">
<li<%= sidebar_current("docs-secrethub-datasource-secret") %>>
<a href="/docs/providers/secrethub/d/secret.html">secrethub_secret</a>
</li>
<li<%= sidebar_current("docs-secrethub-datasource-secret") %>>
<a href="/docs/providers/secrethub/d/secret.html">secrethub_secret</a>
</li>

</ul>
</li>

Expand All @@ -26,17 +27,22 @@
<li<%= sidebar_current("docs-secrethub-resource-secret") %>>
<a href="/docs/providers/secrethub/r/secret.html">secrethub_secret</a>
</li>
<li<%= sidebar_current("docs-secrethub-resource-access-rule") %>>
<a href="/docs/providers/secrethub/r/access_rule.html">secrethub_access_rule</a>
</li>
<li<%= sidebar_current("docs-secrethub-resource-service") %>>
<a href="/docs/providers/secrethub/r/service.html">secrethub_service</a>
</li>
<li<%= sidebar_current("docs-secrethub-resource-service-aws") %>>
<li<%= sidebar_current("docs-secrethub-resource-service-aws") %>>
<a href="/docs/providers/secrethub/r/service_aws.html">secrethub_service_aws</a>
</li>
<li<%= sidebar_current("docs-secrethub-resource-access-rule") %>>
<a href="/docs/providers/secrethub/r/access_rule.html">secrethub_service</a>
</li>
<li<%= sidebar_current("docs-secrethub-resource-service-gcp") %>>
<a href="/docs/providers/secrethub/r/service_gcp.html">secrethub_service_gcp</a>
</li>

</ul>
</li>

</ul>
</div>
<% end %>
Expand Down

0 comments on commit 9c653e4

Please sign in to comment.