diff --git a/dev/k8s/manifests/ctrl-worker.yaml b/dev/k8s/manifests/ctrl-worker.yaml index e55027fb54..d2fd62fcf7 100644 --- a/dev/k8s/manifests/ctrl-worker.yaml +++ b/dev/k8s/manifests/ctrl-worker.yaml @@ -44,10 +44,16 @@ data: url = "clickhouse://default:password@clickhouse:9000?secure=false&skip_verify=true" admin_url = "clickhouse://unkey_user_admin:C57RqT5EPZBqCJkMxN9mEZZEzMPcw9yBlwhIizk99t7kx6uLi9rYmtWObsXzdl@clickhouse:9000?secure=false&skip_verify=true" + # GitHub App credentials for authenticating with the GitHub API. + # app_id is resolved at runtime via os.ExpandEnv from the github-credentials secret. + # Without a valid app_id the generated JWT has issuer "0" and GitHub returns 401. [github] - app_id = 0 + app_id = ${UNKEY_GITHUB_APP_ID} private_key_pem = """${UNKEY_GITHUB_PRIVATE_KEY_PEM}""" - allow_unauthenticated_deployments = true + # Set to true only for local dev without GitHub credentials configured. + # When true, deployments skip GitHub auth entirely works only with public repos. + # Controlled via UNKEY_ALLOW_UNAUTHENTICATED_DEPLOYMENTS in .env.github. + allow_unauthenticated_deployments = ${UNKEY_ALLOW_UNAUTHENTICATED_DEPLOYMENTS} --- apiVersion: apps/v1 @@ -110,6 +116,18 @@ spec: name: github-credentials key: UNKEY_GITHUB_PRIVATE_KEY_PEM optional: true + - name: UNKEY_GITHUB_APP_ID + valueFrom: + secretKeyRef: + name: github-credentials + key: UNKEY_GITHUB_APP_ID + optional: true + - name: UNKEY_ALLOW_UNAUTHENTICATED_DEPLOYMENTS + valueFrom: + secretKeyRef: + name: github-credentials + key: UNKEY_ALLOW_UNAUTHENTICATED_DEPLOYMENTS + optional: true volumeMounts: - name: docker-socket mountPath: /var/run/docker.sock diff --git a/web/apps/dashboard/app/(app)/[workspaceSlug]/layout.tsx b/web/apps/dashboard/app/(app)/[workspaceSlug]/layout.tsx index 8a270fb98a..6b6da1fb46 100644 --- a/web/apps/dashboard/app/(app)/[workspaceSlug]/layout.tsx +++ b/web/apps/dashboard/app/(app)/[workspaceSlug]/layout.tsx @@ -12,7 +12,7 @@ function WorkspaceLoadingFallback() {
Loading workspace...
+Lasdasdoading workspace...
{description}
-
- {step.logs.map((log, idx) => (
-
-
- {log.message}
-
- ))}
-
- No repositories found
diff --git a/web/apps/dashboard/app/(app)/[workspaceSlug]/projects/onboarding/steps/select-repo/language-icon.tsx b/web/apps/dashboard/app/(app)/[workspaceSlug]/projects/onboarding/steps/select-repo/language-icon.tsx new file mode 100644 index 0000000000..566527f0ae --- /dev/null +++ b/web/apps/dashboard/app/(app)/[workspaceSlug]/projects/onboarding/steps/select-repo/language-icon.tsx @@ -0,0 +1,41 @@ +import type { IconProps } from "@unkey/icons"; +import { + BracketsCurly, + LangElixir, + LangGo, + LangJava, + LangJavascript, + LangPhp, + LangPython, + LangRuby, + LangRust, + LangTypescript, +} from "@unkey/icons"; + +const languageIconMap: Record{message}
+{message}