Skip to content

Fix/adversarial review remediation - #30

Merged
AlanFokCo merged 2 commits into
mainfrom
fix/adversarial-review-remediation
Sep 1, 2026
Merged

Fix/adversarial review remediation#30
AlanFokCo merged 2 commits into
mainfrom
fix/adversarial-review-remediation

Conversation

@AlanFokCo

Copy link
Copy Markdown
Member

No description provided.

…ommit lockfiles

- root .gitignore: stop ignoring package-lock.json; commit lockfiles for all
  three frontends so dependency trees are reproducible.

- ai-dashboard/frontend (ops console):
  * vite dev proxy: add /ops -> localhost:8080
  * Settings/Images: use getErrorMessage(err) so API failures (non-Error
    rejection payloads) actually surface an error message
  * router ProtectedLayout: fetch user info before deciding; render a loading
    placeholder meanwhile instead of flashing a /login redirect on hard refresh

- ai-dev-console/console/frontend-new:
  * MainLayout: replace the 1.5s setTimeout auth check with a blocking check;
    protected content is no longer rendered before the session is verified

- ai-dev-console/console/frontend (legacy umi 3 / webpack 4, see OPTIMIZATION.md):
  * build scripts: NODE_OPTIONS=--openssl-legacy-provider (OpenSSL 3 md4)
  * overrides: pin swr to 2.4.2 (^2.0.0 floats to 2.5.x which breaks wp4)
  * config.js chainWebpack: parse .mjs as javascript/auto (wp4 CJS interop)
  * prebuild lint no longer blocks the build (~490 pre-existing errors)
  * engines.node >= 16
  * rebuild dist/: removes eval('('+detail.jobConfig+')') XSS from the shipped
    bundle; source already used JSON.parse but dist had never been rebuilt
Security:
- dashboard: adminOnly on all management routes & Grafana proxy, OAuth state,
  DeleteUser nil guard, node-shell timeout/random suffix/dedup, IMS pagination,
  TokenRequest fallback for K8s>=1.24, RRSA role ARN fix, remove Password field
- dev-console legacy: session-based notebook identity & ownership checks, token
  stripped from responses, server-generated notebook tokens, auth suffix-bypass
  and /common port hardening, pipeline/mlflow proxy identity, SLS injection and
  pagination fixes, tenant registry locking, arena client error propagation,
  kubeconfig path sanitization (0600), remove hardcoded JWT & token logs

Correctness:
- restore module compilation (clientmgr/signals), add missing backend entry
  points (both consoles), deepcopy drift, gorm zero-value writes + optimistic
  lock, idempotent mysql migrations, pod status/tenancy conversion, notebook
  stop/start & job stop route contracts, tensorboard endpoints, 7+ index-out
  panics, workloadgate detection, k8sutil nil guards, list limits

Build/deploy:
- switch both consoles to the new stack (internal backends + frontend-new),
  retire removed operator build path, fix chart dependency paths, add
  OIDC_ROLE_ARN & auto session secret to charts, add consoles CI workflow,
  update Makefile/Dockerfiles/BUILD.md/CLAUDE.md

Verified: go build/vet/test green for ai-dashboard, ai-dev-console and
notebook-controller; all three frontends build.
@AlanFokCo
AlanFokCo merged commit 1c77d03 into main Sep 1, 2026
6 of 9 checks passed
@AlanFokCo
AlanFokCo deleted the fix/adversarial-review-remediation branch September 1, 2026 08:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant