Skip to content

Commit

Permalink
Added docs for PR in Vault GCP Secrets repo (#8728)
Browse files Browse the repository at this point in the history
  • Loading branch information
onetwopunch authored Apr 16, 2020
1 parent 9316b04 commit dab8b5b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions website/pages/api-docs/secret/gcp/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,12 @@ resource "//cloudresourcemanager.googleapis.com/projects/mygcpproject" {
],
}
resource "//bigquery.googleapis.com/projects/my-project/datasets/mydataset" {
roles = [
"roles/bigquery.dataViewer"
],
}
resource "https://selflink/to/my/resource" {
roles = [
"project/mygcpproject/roles/projcustomrole",
Expand Down
12 changes: 12 additions & 0 deletions website/pages/docs/secrets/gcp/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,9 @@ few different formats:
# Pubsub snapshot
//pubsub.googleapis.com/project/my-project/snapshots/my-pubsub-snapshot

# BigQuery dataset
//bigquery.googleapis.com/projects/my-project/datasets/mydataset

# Resource manager
//cloudresourcemanager.googleapis.com/projects/my-project"
```
Expand Down Expand Up @@ -346,6 +349,10 @@ resourcemanager.projects.setIamPolicy
# All compute
compute.*.getIamPolicy
compute.*.setIamPolicy

# BigQuery Datasets
bigquery.datasets.get
bigquery.datasets.update
```

You can either:
Expand All @@ -358,6 +365,11 @@ You can either:
`roles/iam.serviceAccountAdmin` and `roles/iam.serviceAccountKeyAdmin` so
Vault can manage service accounts and keys.

- Notice that BigQuery requires different permissions than other resource. This is
because BigQuery currently uses legacy ACL instead of traditional IAM permissions.
This means to update access on the dataset, Vault must be able to update the dataset's
metadata.

### Root Credential Rotation

If the mount is configured with credentials directly, the credential's key may be
Expand Down

0 comments on commit dab8b5b

Please sign in to comment.