Migrate to Gitea + local Docker Desktop k8s/Harbor; remove SSO

- Remove Microsoft Entra ID SSO entirely; local admin credentials login
  is the only sign-in path (fail-closed on empty LOCAL_ADMIN_PASSWORD).
  Delete config/users.json allowlist and lookupRole.
- Move CI from .github to .gitea/workflows (Gitea Actions, runner label
  gitea-runner); drop the k8s-API network debug step.
- Replace JFrog with local Harbor: push/pull via
  host.docker.internal:8080/library, login with HARBOR_* Gitea secrets,
  pull secret renamed to harbor-pull-secret (created by CI per namespace).
- Adapt Helm values to Docker Desktop k8s: storageClassName hostpath,
  Harbor image repositories, *.local ingress hosts, AUTH_URL scheme http
  (configurable via ingress.scheme).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Tom Chien (IQ-AS)
2026-11-17 14:00:45 +08:00
co-authored by Claude Opus 4.6
parent a79a01437a
commit b3d48198c4
16 changed files with 104 additions and 324 deletions
+1 -3
View File
@@ -66,12 +66,10 @@ RUN groupadd --system --gid 1001 nodejs \
# .next/standalone ships its own traced node_modules — do NOT copy the
# builder's. .next/static is NOT part of standalone and must come separately or
# every CSS/JS chunk 404s. config/ is read at runtime by lookupRole()
# (src/lib/authz.ts) via process.cwd() once SSO is re-enabled.
# every CSS/JS chunk 404s.
# NOTE: this repo has no public/ directory; adding a COPY for it would fail.
COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static
COPY --from=builder --chown=nextjs:nodejs /app/config ./config
USER nextjs