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
+10 -13
View File
@@ -29,7 +29,8 @@ db:
database: it_cost_dashboard
storage:
size: 5Gi
storageClassName: gp3
# Docker Desktop's built-in StorageClass.
storageClassName: hostpath
resources:
requests:
cpu: 100m
@@ -44,23 +45,19 @@ ingress:
host: "" # required per-env
secrets:
authSecret: "" # from GitHub secret AUTH_SECRET_<ENV>
authSecret: "" # from Gitea secret AUTH_SECRET_<ENV>
# MySQL root password. MUST be [A-Za-z0-9-] only — it is interpolated into
# DATABASE_URL and Helm has no URL-encode function.
dbRootPassword: "" # from GitHub secret DB_ROOT_PASSWORD_<ENV>
# Optional; empty disables local login entirely (src/auth.ts fails closed).
dbRootPassword: "" # from Gitea secret DB_ROOT_PASSWORD_<ENV>
# Local admin login password. Empty disables login entirely (src/auth.ts
# fails closed), so this is effectively required now that it is the only
# sign-in path.
localAdminPassword: ""
# Microsoft Entra ID SSO. Supplied per-env by the CI workflow from GitHub
# secrets; server-secret.yaml marks them required, so a deploy fails loudly
# rather than shipping a build whose sign-in button 500s.
entraClientId: ""
entraClientSecret: ""
entraIssuer: ""
# Pre-created manually, once per namespace (see the deploy notes). Not templated:
# the kubelet needs it independently of Helm.
# Created/refreshed by the CI workflow in each namespace ("Ensure Harbor pull
# secret exists" step). Not templated: the kubelet needs it independently of Helm.
imagePullSecrets:
- name: jfrog-registry-creds
- name: harbor-pull-secret
nodeSelector: {}
tolerations: []