π§ Google IAM Service Account User-Managed Key is not rotated every 90 days - prod.logic.yaml π’
- Contextual name: π§ prod.logic.yaml π’
- ID:
/ce/ca/google/iam/service-account-key-rotation/prod.logic.yaml
- Located in: π Google IAM Service Account User-Managed Key is not rotated every 90 days π’
Flagsβ
- π’ Logic test success
- π’ Logic with extracts
- π’ Logic with test data
Input Typeβ
Type | API Name | Extracts | Extract Files | Logic Files | |
---|---|---|---|---|---|
π | π Google IAM Service Account Key | CA10__CaGoogleIamServiceAccountKey__c | 1 | 1 | 1 |
Usesβ
Test Results π’β
Generated at: 2025-04-24T23:47:02.897675359Z Open
Result | Id | Condition Index | Condition Text | Runtime Error |
---|---|---|---|---|
π’ | aA1 | βοΈ 99 | βοΈ isDisappeared(CA10__disappearanceTime__c) | βοΈ null |
π’ | aA2 | βοΈ 199 | βοΈ extract('CA10__validAfter__c').beyondLastDays(90) | βοΈ null |
π’ | aA3 | βοΈ 200 | βοΈ otherwise | βοΈ null |
Generationβ
File | MD5 | |
---|---|---|
Open | /ce/ca/google/iam/service-account-key-rotation/policy.yaml | 96D671B53702B9437225A4BF207FE3FC |
Open | /ce/ca/google/iam/service-account-key-rotation/prod.logic.yaml | 843E06AB8218228A631A2F2719D80626 |
Open | /ce/ca/google/iam/service-account-key-rotation/test-data.json | D2DD12B93957E57AE7B94231F0BC103F |
Open | /types/CA10__CaGoogleIamServiceAccountKey__c/object.extracts.yaml | 77CA840C297D7AA897F12C624C90A9A4 |
Generate FULL scriptβ
java -jar repo-manager.jar policies generate FULL /ce/ca/google/iam/service-account-key-rotation/prod.logic.yaml
Generate DEBUG scriptβ
java -jar repo-manager.jar policies generate DEBUG /ce/ca/google/iam/service-account-key-rotation/prod.logic.yaml
Generate CAPTURE_TEST_DATA scriptβ
java -jar repo-manager.jar policies generate CAPTURE_TEST_DATA /ce/ca/google/iam/service-account-key-rotation/prod.logic.yaml
Generate TESTS scriptβ
java -jar repo-manager.jar policies generate TESTS /ce/ca/google/iam/service-account-key-rotation/prod.logic.yaml
Execute testsβ
java -jar repo-manager.jar policies test /ce/ca/google/iam/service-account-key-rotation/prod.logic.yaml
Contentβ
---
inputType: "CA10__CaGoogleIamServiceAccountKey__c"
testData:
- file: test-data.json
importExtracts:
- file: /types/CA10__CaGoogleIamServiceAccountKey__c/object.extracts.yaml
conditions:
- status: "INCOMPLIANT"
currentStateMessage: "Service Account key is older than 90 days."
remediationMessage: "It's recommended to rotate Service Account key."
check:
IS_BEYOND_LAST_DAYS:
offsetDays: 90
arg:
EXTRACT: CA10__validAfter__c
otherwise:
status: "COMPLIANT"
currentStateMessage: "Service Account key is regularly rotated."