Skip to content

Commit 6e1f20f

Browse files
SSPROD-54737 - wif support
1 parent 385d42b commit 6e1f20f

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

modules/onboarding/README.md

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,14 @@ The Foundational Onboarding module serves the following functions:
99
If instrumenting a project, the following resources will be created:
1010

1111
- All the necessary `Service Accounts` and `Policies` to enable the Onboarding operation at the project level
12-
- A `Service Account key` and added role permissions to the `Service Account`, to allow Sysdig to authenticate to GCP on
13-
your behalf to validate resources.
12+
- A `Workload Identity Pool`, `Provider` and added custom role permissions to the `Service Account`, to allow Sysdig to authenticate to GCP on your behalf to validate resources.
1413
- A cloud account in the Sysdig Backend, associated with the GCP project and with the required component to serve the
1514
foundational functions.
1615

17-
If instrumenting an Organziation, the following resources will be created:
16+
If instrumenting an Organization, the following resources will be created:
1817

1918
- All the necessary `Service Accounts` and `Policies` to enable the Onboarding operation at the organization level
20-
- A `Service Account key` and added role permissions to the `Service Account`, to allow Sysdig to authenticate to GCP on
21-
your behalf to validate resources.
19+
- A `Workload Identity Pool`, `Provider` and added custom role permissions to the `Service Account`, to allow Sysdig to authenticate to GCP on your behalf to validate resources.
2220
- A cloud account in the Sysdig Backend, associated with the management project and with the required component to serve
2321
the foundational functions.
2422
- A cloud organization in the Sysdig Backend, associated with the GCP Organization to fetch the organization structure
@@ -27,7 +25,7 @@ If instrumenting an Organziation, the following resources will be created:
2725
Note:
2826

2927
- The outputs from the foundational module, such as `sysdig_secure_account_id` are needed as inputs to the other
30-
features/integrations modules for subsequent modular installs.
28+
features/integrations modules for subsequent modular installations.
3129

3230
<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
3331

@@ -45,6 +43,8 @@ Note:
4543
|------------------------------------------------------------|---------|
4644
| <a name="provider_google"></a> [google](#provider\_google) | 5.0.0 |
4745
| <a name="provider_random"></a> [random](#provider\_random) | >= 3.1 |
46+
| <a name="provider_time"></a> [time](#provider\_time) | 0.13.1 |
47+
4848

4949
## Modules
5050

@@ -56,15 +56,18 @@ No modules.
5656
resource |
5757
| [google_organization.org](https://registry.terraform.io/providers/hashicorp/google/latest/docs/data-sources/organization) |
5858
data source |
59+
| [sysdig_secure_trusted_cloud_identity.trusted_identity](https://registry.terraform.io/providers/sysdiglabs/sysdig/latest/docs/data-sources/secure_trusted_cloud_identity) | data source |
60+
| [sysdig_secure_tenant_external_id](https://registry.terraform.io/providers/sysdiglabs/sysdig/latest/docs/data-sources/secure_tenant_external_id) | data source |
5961
| [google_project.project](https://registry.terraform.io/providers/hashicorp/google/latest/docs/data-sources/project) |
6062
data source |
6163
| [random_id.suffix](https://registry.terraform.io/providers/hashicorp/random/latest/docs/resources/id) | resource |
64+
| [google_iam_workload_identity_pool.onboarding_auth_pool](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/iam_workload_identity_pool) | resource |
65+
| [google_iam_workload_identity_pool_provider.onboarding_auth_pool_provider](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/iam_workload_identity_pool_provider) | resource |
6266
| [google_project_iam_member.browser](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/google_project_iam#google_project_iam_member) |
6367
resource |
6468
| [google_organization_iam_member.browser](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/google_organization_iam#google_organization_iam_member) |
6569
resource |
66-
| [google_service_account_key.onboarding_service_account_key](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/service_account_key) |
67-
resource |
70+
| [google_service_account_iam_member.custom_onboarding_auth](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/google_service_account_iam#google_service_account_iam_member) | resource |
6871
| [sysdig_secure_cloud_auth_account.google_account](https://registry.terraform.io/providers/sysdiglabs/sysdig/latest/docs/resources/secure_cloud_auth_account) |
6972
resource |
7073
| [sysdig_secure_organization.google_organization](https://registry.terraform.io/providers/sysdiglabs/sysdig/latest/docs/resources/secure_organization) |

modules/onboarding/main.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ resource "random_id" "suffix" {
2020

2121
locals {
2222
suffix = var.suffix == null ? random_id.suffix[0].hex : var.suffix
23-
# account_id = time_sleep.wait_for_apply_google_permissions[0].
2423
}
2524

2625
resource "google_service_account" "onboarding_auth" {

0 commit comments

Comments
 (0)