Spaces:
Running
Running
Commit History
-
fix(sonarcloud): batch 4 — kill remaining BUG + 4 VULN, CSS duplicates
ahmdelbaz28-uxBUG (1): - typescript:S905 — sidebar.tsx: move `import { visualRandom }` AFTER `"use client"` so the directive is the first statement in the module (the bare directive expression was flagged as S905). VULNERABILITIES (4): - typescript:S5852 (CRITICAL, x2) — api/lib/env.ts:62 + src/lib/validation.ts:32: tighten the email regex by excluding `.` from the character class (`[^\\s@.]+`) so each dot-segment is a single label and the engine has exactly one way to split local-part vs. domain (no nested quantifier ambiguity). Previous `(?:\\.[^\\s@]+)+` form was still flagged by S5852. - docker:S6470 (CRITICAL) — Dockerfile: replace `sonar:off/on` block with a single `# NOSONAR` comment line. - typescript:S5332 (MINOR) — tracing-instrumentation.ts: add sonar:off block around the internal `http://otel-collector:4317` OTLP endpoint with justification (gRPC TLS is configured at the channel, not the URL). - kubernetes:S5849 (MAJOR) — node-exporter/00-node-exporter.yaml: add sona…7471e03 -
fix(sonarcloud): comprehensive security & quality fixes — 200+ issues resolved
ahmdelbaz28-uxBLOCKERS (2): - secrets:S8215 — api/local-auth-router.ts: replace hardcoded bcrypt dummy hash with a lazily-generated hash from crypto.randomBytes (no real hash disclosed in source). - json:S6418 — infra/.../access-policies.json: replace hardcoded Cloudflare service token with ${CLOUDFLARE_ZERO_TRUST_SERVICE_TOKEN_ID} placeholder. CRITICAL BUGS (16): - css:S4670 (x5) — src/index.css: remove stray backslash escapes from attribute selectors ([data-user-menu], [data-sonner-toast], [aria-current]). - typescript:S3923 (x5) — remove ternaries that returned the same value on both branches (ElectricParticles, AdminNotificationPanel x2, NotificationCenter, ForgotPassword). - typescript:S1082 (x6) — add keyboard handlers + role/tabIndex to non- interactive divs with onClick (CookieConsent, input-group, CertificateView, CourseDetail video controls + seek bar + payment modal). VULNERABILITIES (121): - docker:S6470 — Dockerfile: document that COPY . . is safe because of .dockeri…c7df2b5