feat: add Firebase App Check security policies#391
Conversation
…est_config and regenerate doc
…anges - Change token_ttl policy_type from blacklist to range [1800, 86400] for google_firebase_app_check_app_attest_config and google_firebase_app_check_device_check_config - Update plan.json test fixtures to use integer seconds for range evaluation - Revert all changes to files outside Firebase App Check service
🔍 File Validation FailedStatus: ❌ VALIDATION FAILED ❌ Service PRs can only modify files in: inputs/gcp/, policies/gcp/, and docs/gcp/
Service PRs can only modify files in:
|
🔍 File Validation FailedStatus: ❌ VALIDATION FAILED ❌ Service PRs can only modify files in: inputs/gcp/, policies/gcp/, and docs/gcp/
Service PRs can only modify files in:
|
🔍 File Validation FailedStatus: ❌ VALIDATION FAILED ❌ Service PRs can only modify files in: inputs/gcp/, policies/gcp/, and docs/gcp/
Service PRs can only modify files in:
|
🔍 Policy Check ResultsStatus: ❌ CHECKS FAILED Test Output |
🔍 Policy Check ResultsStatus: ✅ All checks passed Test Output |
🔍 Policy Check ResultsStatus: ✅ All checks passed Test Output |
Shani1116
left a comment
There was a problem hiding this comment.
Please see the feedback below -
- 2 of your policies do not follow the PDE policy format.
- Remove plan.json files
- Complete security_impact and rationale for all attributes.
Revise and update accordingly.
… files, complete JSON attributes - Rewrite app_attest and device_check token_ttl policies to use helpers whitelist format - Remove plan.json files from inputs (not needed in PR) - Fill in security_impact and rationale for app_id and project in app_attest_config JSON
🔍 Policy Check ResultsStatus: ✅ All checks passed Test Output |
|
Hi @Shani1116, all three review points have been addressed:
All policy checks are now passing ✅. Please re-review when you get a chance. |
…k JSON attributes Fill in security_impact and rationale for device_check_config (key_id, app_id, project), recaptcha_v3_config (app_id, token_ttl, project), and service_config (service_id, project).
🔍 Policy Check ResultsStatus: ✅ All checks passed Test Output |
token_ttl was updated to security_impact: true in the JSON but the .md still showed false with no rationale or compliant/non-compliant values.
🔍 Policy Check ResultsStatus: ✅ All checks passed Test Output |
Shani1116
left a comment
There was a problem hiding this comment.
Resolved all feedback. APC passes without errors.
Approved.
Replaces #284
Implemented comprehensive security policies for Firebase App Check including SHA-256 certificate validation, token TTL enforcement, and App Check configuration controls. Added detailed security documentation covering threat scenarios, attack vectors, and compliance requirements (HIPAA, PCI-DSS, SOC 2, GDPR).
Why a new PR
PR #284 used branch
feat/firebase-app-check-security-policieswhich does not match the requiredgcp/service/<service-name>convention, causing the automated policy checks to be bypassed.Test plan
opa evalagainst compliant and non-compliant inputssecurity_impactandrationalefor every attribute