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
+4 -5
View File
@@ -10,14 +10,13 @@ const ADMIN_PAGE_PREFIXES = [
];
// Edge-safe Auth.js config. This is imported by the middleware, which runs in
// the edge runtime, so it MUST NOT import Node APIs (node:fs) or the providers
// (Credentials/MicrosoftEntraID pull in Node crypto). The JSON allowlist is read
// only at sign-in in src/auth.ts (Node) and the resulting role is baked into the
// JWT; here we only read the role off the token.
// the edge runtime, so it MUST NOT import Node APIs or the Credentials provider
// (it pulls in Node crypto). The role is baked into the JWT at sign-in in
// src/auth.ts (Node); here we only read the role off the token.
export const authConfig = {
// Stateless JWT sessions — no DB adapter, keeps the middleware edge-compatible.
session: { strategy: "jwt" },
// Custom sign-in page offering both SSO and local username/password.
// Custom sign-in page with local username/password.
pages: { signIn: "/login" },
// Providers are added in the Node config (src/auth.ts). Empty here on purpose.
providers: [],