fix(pentest): delete test users only in the target's identity provider (#999) (#1002)
CI / Check (push) Skipped
CI / Agent integration (push) Skipped
CI / Detect Changes (push) Successful in 4s
CI / Deploy Docs (push) Successful in 1m9s
CI / Deploy MCP (push) Successful in 3m49s
CI / Deploy Dashboard (push) Successful in 4m55s
CI / Deploy Agent (push) Successful in 6m4s
CI / Check (push) Skipped
CI / Agent integration (push) Skipped
CI / Detect Changes (push) Successful in 4s
CI / Deploy Docs (push) Successful in 1m9s
CI / Deploy MCP (push) Successful in 3m49s
CI / Deploy Dashboard (push) Successful in 4m55s
CI / Deploy Agent (push) Successful in 6m4s
This commit was merged in pull request #1002.
This commit is contained in:
1 parent
396cb3cd39
commit
fad023e734
12 files changed
+813
-487
No files matched your search
@@ -32,6 +32,7 @@ Click **New Pentest** on the dashboard to open the 4-step onboarding wizard:
|
||||
- **Registration URL** (optional) — auto-discovered via Playwright if omitted
|
||||
- **Verification Email** (optional) — override the agent's default mailbox. Uses plus-addressing (`base+sessionid@domain`) and polls IMAP for verification links
|
||||
- **IMAP Settings** — collapsible section to override host/port/credentials
|
||||
- **Delete the test user afterwards** — deletes the account in the application's own identity provider when the session ends. It needs admin access to that provider, given for the session through the API (`config.auth.cleanup`): a Keycloak realm (a client whose service account may manage users), an Auth0 tenant (a machine-to-machine application with `read:users` and `delete:users`) or an Okta org (an API token). The account is found by the session's own address and deleted only if exactly one account carries it. Without that access, or if the provider refuses, the report lists the test user as **left behind**, to be deleted by hand. Prüfwerk never uses its own login service for this.
|
||||
|
||||
### Step 3 — Strategy & Instructions
|
||||
|
||||
|
||||
@@ -417,6 +417,7 @@ Every connection the agent opens, in one place. **Guarded** means: the HTTP clie
|
||||
| Git remotes (clone, fetch, submodules, linked artifacts) | `pipeline/git.rs`, `ingest/` | `check_git_url` and the resolved address before every clone and fetch; redirects off |
|
||||
| Gitea API of a git source or tracker (managed Git) | `git_source/gitea.rs`, `trackers/gitea.rs` | guarded |
|
||||
| DAST and pentest targets | `api/handlers/dast.rs`, `pentest/orchestrator.rs`, `compliance-dast` | base URL checked with `check_url`; the DAST tools share a guarded client |
|
||||
| The target's identity provider, for deleting a pentest test user (Keycloak, Auth0, Okta; given per session) | `pentest/cleanup.rs` | URL checked with `check_url` when the session is created; guarded client |
|
||||
|
||||
### Operator-configured services (not guarded)
|
||||
|
||||
@@ -428,7 +429,6 @@ These are set by the operator in the agent's environment, not by a tenant, and o
|
||||
| Tenant registry (entitlements, projects) | `registry.rs` | `TENANT_REGISTRY_URL` |
|
||||
| breakpilot-compliance OSCAL catalog | `controls/oscal_provider.rs` | `BREAKPILOT_BASE_URL` |
|
||||
| GitLab and Jira issue trackers | `trackers/gitlab.rs`, `trackers/jira.rs` | `GITLAB_URL`, `JIRA_URL` |
|
||||
| Identity providers for pentest test-user cleanup (Keycloak, Auth0, Okta) | `pentest/cleanup.rs` | `KEYCLOAK_URL`, `AUTH0_DOMAIN`, `OKTA_DOMAIN` |
|
||||
| Headless Chrome for PDF reports | `pentest/report/pdf.rs` | `CHROME_WS_URL` |
|
||||
| MongoDB | `database.rs` | `MONGODB_URI` |
|
||||
| ClamAV service (clamd, plain TCP; the tree's files are streamed to it) | `pipeline/clamav.rs` | `CLAMD_ADDRESS` |
|
||||
|
||||
Reference in new issue
Block a user