Repository navigation
Merge Alwin feature branch into main - #2
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NVXu5uKZsbbEPGjgYYvAey
…e helper - Build CLIs for amd64 and arm64 (Apple Silicon) via TARGETARCH - Add hubble and kubescape CLIs, shell completion and the k alias - Enable Hubble relay/UI in the Cilium install (UI served at /hubble/) - Detect the public URL for Codespaces and local runs (PUBLIC_URL) - Detect the Git repo/branch so forks deploy their own gitops/ tree - Trim unused Argo CD components and poll Git every 60s - Add scripts/tre helper (info, status, workspaces, usage, hubble, sync) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NVXu5uKZsbbEPGjgYYvAey
…uardrails - Root app is now a template; gitops/apps is a Helm chart so every child Application follows the fork and branch detected at bootstrap - New project chart (gitops/projects/chart): namespace with Pod Security labels, ResourceQuota, LimitRange, retained shared PVC, hub RoleBinding and a workspace CiliumNetworkPolicy; alpha and beta declared in apps values - JupyterHub spawns into project-<name> namespaces, discovered from namespace labels and filtered by Keycloak groups; per-user home PVC per project, project shared volume at ~/shared, size options from the project - Least-privilege hub RBAC: namespaced spawn rights via RoleBinding, cluster read of namespaces only - Keycloak realm: project groups, group claim mapper, five demo users; PUBLIC_URL so local http and Codespaces https both work - Platform app: tre-user-home / tre-project-shared StorageClasses and the Hubble UI ingress at /hubble/ - Kyverno via Argo CD plus policies: approved registries, no privileged or host access, project label, audit :latest, generated default-deny - Portal lists the tools and demo accounts Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NVXu5uKZsbbEPGjgYYvAey
…N allow-list - tests/test_tre_config.py drives the real KubeSpawner 7.0.0 profile logic against a fake API: membership filtering, namespace/image/size overrides, forged project requests and users without a project - tests/kyverno: kyverno CLI test covering allowed and rejected pods and the generated default-deny policy - project chart: optional internetAllowlist renders an FQDN egress policy Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NVXu5uKZsbbEPGjgYYvAey
… and reference - Getting started for Codespaces and local VS Code dev containers - Concepts: Kubernetes primer for TRE people, TREs on Kubernetes (Five Safes and K8TRE mapping), architecture, life of a workspace - Component guides: Cilium/Hubble, JupyterHub, Keycloak, storage, Argo CD, Kyverno, Kubescape - Labs: orientation, workspaces, project isolation, internet egress, storage, CPU/memory, new project via GitOps, Kyverno, Kubescape, challenges - Reference: cheat sheet, repo layout, troubleshooting, resource budget, versions, glossary; facilitator guide with agenda and checklists Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NVXu5uKZsbbEPGjgYYvAey
- docs.yml builds the Zensical site on PRs and publishes it to GitHub Pages from main - validate.yml runs scripts/validate.sh (shellcheck, helm lint/template, kustomize with Helm, root-app substitution, kubeconform with CRD schemas), pytest for the JupyterHub config and kyverno test for the policies Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NVXu5uKZsbbEPGjgYYvAey
…orkflow Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NVXu5uKZsbbEPGjgYYvAey
- JupyterHub: users with no project saw an empty options form with a Start button; the spawn page now explains they aren't in a project (the pre_spawn_hook refusal stays as the enforcing check) - bootstrap: convert SSH repo URLs to HTTPS for explicitly set KID_GITOPS_REPO too, and never block on a git credential prompt (non-interactive ls-remote with a timeout) - Kyverno: disable the CRD migration post-upgrade hook, which Argo CD would run as a PostSync Job on every sync - tre workspaces: the IP column is the pod IP, not the node IP - Stop tracking a stray tests/__pycache__ file Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NVXu5uKZsbbEPGjgYYvAey
tests/e2e/run.sh runs the real hub (Z2JH 4.0.0 config rendered by kustomize from gitops/jupyterhub, including tre_config.py) behind the real configurable-http-proxy, with a mock Keycloak and a fake Kubernetes API that serves the project namespaces rendered by the project chart. It drives login and spawn over HTTP and checks: member-only project menus, workspace created in the project namespace with the right image/limits/volumes/labels, forged project refused, users without a project refused, tre-admins mapped to JupyterHub admin, and a hand-labelled namespace without the hub RoleBinding failing with 403. The Pod and PVC KubeSpawner submitted are then validated with kubeconform, the Kyverno policies and Pod Security baseline. Added as a CI job; unit test requirements now pin the hub image versions. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NVXu5uKZsbbEPGjgYYvAey
Complete KID Training Environment Updates (Claude)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.