Skip to content
Merged
Show file tree
Hide file tree
Changes from 22 commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
0a3a461
Add files via upload
trongnhanphan223878459 Dec 7, 2025
062132d
Add files via upload
trongnhanphan223878459 Dec 7, 2025
9bc2850
Delete policies/gcp/api_hub/vars.rego
trongnhanphan223878459 Dec 7, 2025
66e5e34
Delete policies/gcp/api_hub/google_apikeys_key
trongnhanphan223878459 Dec 7, 2025
37c81fd
Adding policies
trongnhanphan223878459 Dec 7, 2025
5043d13
Adding policies
trongnhanphan223878459 Dec 8, 2025
bd5c6af
Adding inputs
trongnhanphan223878459 Dec 10, 2025
b5eb1a5
Merge branch 'dev' into trongnhanphan
trongnhanphan223878459 Dec 17, 2025
70bce83
adding policies
trongnhanphan223878459 Jan 13, 2026
40c6b49
Refactor import paths in Rego policy files to unify helper imports (#…
paulJRCurtis Dec 17, 2025
00948cf
Enhance auto-test script to normalize policies root and remove shim (…
paulJRCurtis Dec 17, 2025
3d7d837
Feature/access context manager (#241)
paulJRCurtis Jan 19, 2026
10a7f1c
fixing
trongnhanphan223878459 Jan 20, 2026
5826b98
fixing errors
trongnhanphan223878459 Jan 26, 2026
fbf85fc
add gendoc
HxyBean Jan 27, 2026
35d3fb4
add docgen
HxyBean Jan 27, 2026
f5da617
Revert "add gendoc"
trongnhanphan223878459 Jan 27, 2026
b58f32e
fixing
trongnhanphan223878459 Jan 27, 2026
2a2a7a7
fix
trongnhanphan223878459 Jan 28, 2026
68159f6
Merge branch 'dev' into trongnhanphan
trongnhanphan223878459 Jan 31, 2026
5100186
Generate Markdown Documentation
trongnhanphan223878459 Jan 31, 2026
1d7867d
add hardcoded value and new policy table_type and storage_location_pr…
trongnhanphan223878459 Feb 1, 2026
33f10ab
Merge branch 'dev' into trongnhanphan
trongnhanphan223878459 Feb 2, 2026
601e082
delete duplicate "catalog ="
trongnhanphan223878459 Feb 2, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 64 additions & 0 deletions docs/gcp/Apikeys/apikeys_key.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
## 🛡️ Policy Deployment Engine: `google_apikeys_key`

This section provides a concise policy evaluation for the `google_apikeys_key` resource in GCP.

Reference: [Terraform Registry – google_apikeys_key](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/google_apikeys_key)

---

## Argument Reference

| Argument | Description | Required | Security Impact | Rationale | Compliant | Non-Compliant |
|----------|-------------|----------|-----------------|-----------|-----------|---------------|
| `name` | The resource name of the API key. | true | false | None | None | None |
| `display_name` | Human-readable display name of the API key. | false | false | None | None | None |
| `project` | The project that the API key belongs to. | false | false | None | None | None |
| `restrictions` | Restrictions applied to the API key. | false | false | None | None | None |

### restrictions Block

| Argument | Description | Required | Security Impact | Rationale | Compliant | Non-Compliant |
|----------|-------------|----------|-----------------|-----------|-----------|---------------|
| `api_targets` | API targets that this API key is allowed to use. | false | false | None | None | None |
| `browser_key_restrictions` | Browser restrictions for the API key. | false | false | None | None | None |
| `server_key_restrictions` | Server restrictions for the API key. | false | false | None | None | None |
| `android_key_restrictions` | Android application restrictions for the API key. | false | false | None | None | None |
| `ios_key_restrictions` | iOS application restrictions for the API key. | false | false | None | None | None |

### api_targets Block

| Argument | Description | Required | Security Impact | Rationale | Compliant | Non-Compliant |
|----------|-------------|----------|-----------------|-----------|-----------|---------------|
| `service` | The service that this API key is allowed to call. | true | true | Restricting API targets ensures that the API key can only be used with approved Google Cloud services, reducing the risk of misuse. | ['maps.googleapis.com', 'places.googleapis.com', 'translate.googleapis.com'] | ['*'] |
| `methods` | The allowed methods for the specified API target. | false | true | Limiting callable methods reduces the attack surface of the API key and prevents unintended API usage. | ['TranslateText', 'DetectLanguage'] | ['*'] |

### browser_key_restrictions Block

| Argument | Description | Required | Security Impact | Rationale | Compliant | Non-Compliant |
|----------|-------------|----------|-----------------|-----------|-----------|---------------|
| `allowed_referrers` | Allowed HTTP referrers for browser usage. | false | true | Restricting HTTP referrers prevents unauthorized websites from using the API key. | ['https://example.com'] | ['*'] |

### server_key_restrictions Block

| Argument | Description | Required | Security Impact | Rationale | Compliant | Non-Compliant |
|----------|-------------|----------|-----------------|-----------|-----------|---------------|
| `allowed_ips` | Allowed IP addresses for server usage. | false | true | Restricting server IP addresses ensures that only trusted network locations can use the API key. | ['203.0.113.0/24'] | ['0.0.0.0/0'] |

### android_key_restrictions Block

| Argument | Description | Required | Security Impact | Rationale | Compliant | Non-Compliant |
|----------|-------------|----------|-----------------|-----------|-----------|---------------|
| `allowed_applications` | Allowed Android applications. | false | false | None | None | None |

### allowed_applications Block

| Argument | Description | Required | Security Impact | Rationale | Compliant | Non-Compliant |
|----------|-------------|----------|-----------------|-----------|-----------|---------------|
| `package_name` | The package name of the Android application. | true | true | Restricting Android package names ensures that only trusted mobile applications can use the API key. | com.example.app | * |
| `sha1_fingerprint` | The SHA1 fingerprint of the Android application certificate. | true | true | Restricting SHA1 fingerprints prevents unauthorised Android applications from using the API key. | AA:BB:CC:DD:EE:FF | * |

### ios_key_restrictions Block

| Argument | Description | Required | Security Impact | Rationale | Compliant | Non-Compliant |
|----------|-------------|----------|-----------------|-----------|-----------|---------------|
| `allowed_bundle_ids` | Allowed iOS bundle identifiers. | false | true | Restricting iOS bundle identifiers ensures that only trusted iOS applications can use the API key. | ['com.example.iosapp'] | ['*'] |
Loading
Loading