Skip to content

armgit / ARTEX

Public Imported from GitHub
0

ARTEX - AI autonomous penetration testing system (English translation; upstream: Autumn-27/ARTEX, AGPL-3.0)

fix(web): clear and mask test-account passwords on the task form

Coff0xc00def89a66dd
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 5af6fb6..e2669b5 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -6,6 +6,7 @@ All notable changes to this project are documented in this file. The format is b
### Fixed
+- **Task form does not keep test-account secrets on screen**: after a task is created the credential rows are cleared, and the password field is masked.
- **Docker Compose database passwords with URL-special characters**: `docker-compose.yml` no longer pastes `POSTGRES_PASSWORD` into `ARTEX_PG_DSN`. The server builds the URL from `ARTEX_PG_HOST`, `ARTEX_PG_PORT`, `ARTEX_PG_USER`, `ARTEX_PG_PASSWORD`, `ARTEX_PG_DBNAME` and `ARTEX_PG_SSLMODE`, percent-encoding the user and password, so `/`, `?`, `%`, `@`, `:` and spaces connect. An explicit `ARTEX_PG_DSN` still wins and is not rewritten. `ARTEX_PG_PASSWORD` is removed from the environment with the other startup secrets (#450).
## [0.7.0] - 2026-11-21
diff --git a/web/src/app/(main)/function/tasks/page.tsx b/web/src/app/(main)/function/tasks/page.tsx
index d6ac89a..27345fe 100644
--- a/web/src/app/(main)/function/tasks/page.tsx
+++ b/web/src/app/(main)/function/tasks/page.tsx
@@ -3273,6 +3273,7 @@ function CreateTaskSheet({
setSeedFirstIntent(false);
setCoverageEnabled(true);
setInterceptRules([]);
+ setCredentials([]);
setUploadCount(0);
draftIdRef.current = "";
setOpen(false);
@@ -3457,6 +3458,8 @@ function CreateTaskSheet({
onChange={(e) => setCredentials((prev) => prev.map((x, j) => (j === i ? { ...x, username: e.target.value } : x)))}
/>
<Input
+ type="password"
+ autoComplete="new-password"
placeholder={t("password (empty = agent generates)")}
value={c.password}
onChange={(e) => setCredentials((prev) => prev.map((x, j) => (j === i ? { ...x, password: e.target.value } : x)))}