feat: implement Firebase user cleanup for pentest sessions #17

Open
opened 2026-03-17 18:59:36 +00:00 by sharang · 0 comments
Owner

The cleanup module (compliance-agent/src/pentest/cleanup.rs) has a placeholder for Firebase identity provider that logs a warning and skips cleanup.

Implement Firebase user cleanup using the Firebase Admin SDK REST API:

Reference: cleanup.rs line 27-29 (IdentityProvider::Firebase branch)

The cleanup module (compliance-agent/src/pentest/cleanup.rs) has a placeholder for Firebase identity provider that logs a warning and skips cleanup. Implement Firebase user cleanup using the Firebase Admin SDK REST API: - Get admin credentials from a service account JSON (FIREBASE_SERVICE_ACCOUNT env var) - Exchange for an OAuth2 token via Google's token endpoint - DELETE user via https://identitytoolkit.googleapis.com/v1/accounts:delete Reference: cleanup.rs line 27-29 (IdentityProvider::Firebase branch)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sharang/compliance-scanner-agent#17