Skip to main content

🧠 Google Project has API Keys - prod.logic.yaml 🟠🟒

  • Contextual name: 🧠 prod.logic.yaml 🟠🟒
  • ID: /ce/ca/google/project/api-keys-for-active-services/prod.logic.yaml
  • Located in: πŸ“ Google Project has API Keys 🟒

Flags​

Input Type​

TypeAPI NameExtractsExtract FilesLogic Files
πŸ”’πŸ“• Google ProjectCA10__CaGoogleProject__c2116

Uses​

Test Results πŸŸ’β€‹

Generated at: 2025-04-24T23:47:17.790536261Z Open

ResultIdCondition IndexCondition TextRuntime Error
🟒a4p1βœ”οΈ 199βœ”οΈ CA10G1__Google_API_Keys__r.has(INCOMPLIANT)βœ”οΈ null
🟒a4p2βœ”οΈ 200βœ”οΈ otherwiseβœ”οΈ null

Generation​

FileMD5
Open/ce/ca/google/project/api-keys-for-active-services/policy.yaml48AFC83D0C49EC30BF5054F4F689CCA9
Open/ce/ca/google/project/api-keys-for-active-services/prod.logic.yaml9D140D0E8A7EFDED2D365884DF31F7CE
Open/ce/ca/google/project/api-keys-for-active-services/test-data.json4F7540DB00DF7B7F42EBEA44EC4B9929

Generate FULL script​

java -jar repo-manager.jar policies generate FULL /ce/ca/google/project/api-keys-for-active-services/prod.logic.yaml

Generate DEBUG script​

java -jar repo-manager.jar policies generate DEBUG /ce/ca/google/project/api-keys-for-active-services/prod.logic.yaml

Generate CAPTURE_TEST_DATA script​

java -jar repo-manager.jar policies generate CAPTURE_TEST_DATA /ce/ca/google/project/api-keys-for-active-services/prod.logic.yaml

Generate TESTS script​

java -jar repo-manager.jar policies generate TESTS /ce/ca/google/project/api-keys-for-active-services/prod.logic.yaml

Execute tests​

java -jar repo-manager.jar policies test /ce/ca/google/project/api-keys-for-active-services/prod.logic.yaml

Content​

Open File

---
inputType: "CA10__CaGoogleProject__c"
testData:
- file: test-data.json
conditions:
- status: "INCOMPLIANT"
currentStateMessage: "API Keys exist for a project."
remediationMessage: "To avoid the security risk in using API keys, it is recommended to use standard authentication flow instead."
check:
RELATED_LIST_HAS:
status: "INCOMPLIANT"
relationshipName: "CA10G1__Google_API_Keys__r"
otherwise:
status: "COMPLIANT"
currentStateMessage: "API keys are not created for a project."
relatedLists:
- relationshipName: "CA10G1__Google_API_Keys__r"
conditions: []
otherwise:
status: "INCOMPLIANT"
currentStateMessage: "API Key exists."