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
+6 -7
View File
@@ -3,13 +3,12 @@
DATABASE_URL="file:./dev.db"
DATABASE_PROVIDER="sqlite"
# SSO secrets are NOT stored here (this file is committed). Dev auth vars live in
# .env.local (gitignored); prod auth vars in .env.production — see .env.production.example.
# Auth secrets are NOT stored here (this file is committed). Dev auth vars live
# in .env.local (gitignored); prod auth vars in .env.production.
# Local break-glass admin login (username/password, in addition to SSO). The
# password is intentionally EMPTY here so local login is DISABLED by default;
# set a real value in the gitignored .env.local (dev) / .env.production (prod).
# Role model: config/users.json maps SSO emails -> "admin" | "user"; unlisted
# SSO emails cannot sign in. The local admin always has the admin role.
# Local admin login (username/password) — the only sign-in path. The password is
# intentionally EMPTY here so login is DISABLED by default; set a real value in
# the gitignored .env.local (dev) / .env.production (prod). The local admin
# always has the admin role.
LOCAL_ADMIN_USERNAME="admin"
LOCAL_ADMIN_PASSWORD=""