Skip to content

Commit c0e1fd1

Browse files
chore: update tests to use 1.0 image and update compat note (#51)
* chore: update tests to use 1.0 image and update compat note * mark keys op as sensitive Co-authored-by: Bharath KKB <[email protected]>
1 parent 821124d commit c0e1fd1

File tree

13 files changed

+83
-8
lines changed

13 files changed

+83
-8
lines changed

.github/release-please.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,16 @@
1+
# Copyright 2021 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
115
releaseType: terraform-module
216
handleGHRelease: true

.github/workflows/stale.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
# Copyright 2021 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
115
name: "Close stale issues"
216
on:
317
schedule:

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,6 @@ credentials.json
4747
**/*.gpg
4848
**/get-key
4949
**/*.zip
50+
51+
# tf lock file
52+
.terraform.lock.hcl

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
# Make will use bash instead of sh
1919
SHELL := /usr/bin/env bash
2020

21-
DOCKER_TAG_VERSION_DEVELOPER_TOOLS := 0.13
21+
DOCKER_TAG_VERSION_DEVELOPER_TOOLS := 1.0
2222
DOCKER_IMAGE_DEVELOPER_TOOLS := cft/developer-tools
2323
REGISTRY_URL := gcr.io/cloud-foundation-cicd
2424

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ The resources/services/activations/deletions that this module will create/trigge
1111
- one optional service account key per service account
1212

1313
## Compatibility
14-
This module is meant for use with Terraform 0.13. If you haven't
14+
This module is meant for use with Terraform 0.13+ and tested using Terraform 1.0+. If you find incompatibilities using Terraform >=0.13, please open an issue.
15+
If you haven't
1516
[upgraded](https://www.terraform.io/upgrade-guides/0-13.html) and need a Terraform
1617
0.12.x-compatible version of this module, the last released version
1718
intended for Terraform 0.12.x is [v3.0.1](https://registry.terraform.io/modules/terraform-google-modules/-service-accounts/google/v3.0.1).

build/int.cloudbuild.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@ tags:
3838
- 'integration'
3939
substitutions:
4040
_DOCKER_IMAGE_DEVELOPER_TOOLS: 'cft/developer-tools'
41-
_DOCKER_TAG_VERSION_DEVELOPER_TOOLS: '0.13'
41+
_DOCKER_TAG_VERSION_DEVELOPER_TOOLS: '1.0'

build/lint.cloudbuild.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ tags:
2222
- 'lint'
2323
substitutions:
2424
_DOCKER_IMAGE_DEVELOPER_TOOLS: 'cft/developer-tools'
25-
_DOCKER_TAG_VERSION_DEVELOPER_TOOLS: '0.13'
25+
_DOCKER_TAG_VERSION_DEVELOPER_TOOLS: '1.0'

modules/key-distributor/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,12 +146,12 @@ gpg --decrypt data.gpg
146146
| Name | Description | Type | Default | Required |
147147
|------|-------------|------|---------|:--------:|
148148
| create\_wrapper\_script | Whether to create the get-key wrapper script | `bool` | `true` | no |
149-
| folder\_ids | Folder IDs where the Cloud Function will have access to create Service Account keys. | `list` | `[]` | no |
149+
| folder\_ids | Folder IDs where the Cloud Function will have access to create Service Account keys. | `list(any)` | `[]` | no |
150150
| function\_members | List of IAM members (users, groups, etc) with the invoker permission on the CLoud Function | `list(string)` | n/a | yes |
151151
| function\_name | Name of the Cloud Function | `string` | `"key-distributor"` | no |
152152
| org\_id | Organization ID where the Cloud Function will have access to create Service Account keys. | `string` | `""` | no |
153153
| project\_id | Project Id for the Cloud Function. Also if folder\_ids and project\_ids are empty, the Cloud Function will be granted access to create keys in this project by default. | `string` | n/a | yes |
154-
| project\_ids | Project IDs where the Cloud Function will have access to create Service Account keys. | `list` | `[]` | no |
154+
| project\_ids | Project IDs where the Cloud Function will have access to create Service Account keys. | `list(any)` | `[]` | no |
155155
| public\_key\_file | Path of the ascii armored gpg public key. Create by running `gpg --export --armor <key-id> > pubkey.asc` | `string` | `"pubkey.asc"` | no |
156156
| region | The region where the Cloud Function will run | `string` | `"us-central1"` | no |
157157

modules/key-distributor/variables.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ variable "org_id" {
2121
}
2222

2323
variable "folder_ids" {
24-
type = list
24+
type = list(any)
2525
description = "Folder IDs where the Cloud Function will have access to create Service Account keys."
2626
default = []
2727
}
2828

2929
variable "project_ids" {
30-
type = list
30+
type = list(any)
3131
description = "Project IDs where the Cloud Function will have access to create Service Account keys."
3232
default = []
3333
}

test/fixtures/multiple_service_accounts/outputs.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ output "iam_emails" {
3232
output "keys" {
3333
description = "The service account keys."
3434
value = module.example.keys
35+
sensitive = true
3536
}
3637

3738
output "project_id" {

0 commit comments

Comments
 (0)