Skip to content

feat(studio): add the mecatl-studio Helm chart - #2291

Merged
Nashon-Steffen merged 4 commits into
mainfrom
Nashon-Steffen/studio-helm-chart
Oct 13, 2026
Merged

Nashon-Steffen merged 4 commits into
mainfrom
Nashon-Steffen/studio-helm-chart

Conversation

@Nashon-Steffen

Copy link
Copy Markdown
Contributor

Summary

Adds deploy/helm/mecatl-studio, a Helm chart for Mecatl Studio, and publishes it with each release next to the mecak8s chart.

Why: Studio ships only as an image today. Every deployment, including stacklok/infra staging, hand-writes the same Deployment, Service, ServiceAccount, NetworkPolicy, PodDisruptionBudget (PDB) and route. A chart lets operators install Studio the same way they install mecak8s. It is also the first step towards continuous deployment of main to the infra dev cluster: Flux will follow a chart version range there, so nothing needs to push from this public repo into the private infra repo.

The chart:

  • Configuration: Studio's environment comes from typed values: mecatl.baseURL, mecatl.resourceURL, mecatl.authToken, publicURL, session, allowUnauthenticated, trustedProxyHops, logLevel and extraEnv. Settings that start a different workflow get a values comment, not their own section.
  • Render-time checks: rendering fails on anything the Studio image would refuse at startup:
    • a missing mecatl.baseURL or publicURL;
    • URLs the image's parser rejects (credentials, query, fragment, or a path on the base URL);
    • a missing session secret when browser login is on;
    • a static token without allowUnauthenticated;
    • an extraEnv entry that sets a variable the chart owns;
    • podLabels that would change the selector;
    • an image with both a tag and a digest.
  • Image: defaults to ghcr.io/stacklok/mecatl/studio:<appVersion>. image.digest pins it instead.
  • Pod:
    • Meets the Pod Security restricted profile, with a read-only root filesystem and no service-account token.
    • A 5-second preStop sleep keeps serving while the gateway removes a terminating pod. It uses the kubelet's sleep action (Kubernetes 1.30+) because the image has no shell.
    • Replicas spread across zones.
  • Scheduling: the PDB uses unhealthyPodEvictionPolicy: AlwaysAllow, so pods crash-looping during a Mecatl outage don't block node drains.
  • NetworkPolicy: admits Studio's port, from networkPolicy.ingressFrom peers when set. Egress allows DNS to kube-system plus TCP 443 and the ports in the Mecatl URLs. networkPolicy.extraEgress covers other destinations.
  • HTTPRoute (optional, Gateway API): the host name defaults to the lowercase host of publicURL, and the request timeout is 0s for long-lived activity streams.
  • Names and selector labels match the stacklok/infra manifests when the release is named mecatl-studio, so the Deployment selector stays the same if staging migrates.

Release flow:

  • create-release-pr.yml (releaseo) now bumps the Studio chart's version and appVersion along with VERSION.
  • create-release-pr.yml and create-release-tag.yml both verify those values.
  • release.yml has a new publish-studio-chart job. It runs after publish-studio, lints, packages, pushes to oci://ghcr.io/stacklok/mecatl/charts, signs with cosign and attests provenance. It skips with a notice for tags that predate the chart.
  • The workflow README and cut-release skill describe the new chart.

Issue relationship

Relates to #2288 (independent; both prepare continuous deployment of Studio from main)

Type of change

  • Bug fix
  • New feature
  • Refactoring (no behavior change)
  • Dependency update
  • Documentation
  • Other (describe):

Test plan

Baseline checks

  • Linting (task lint): no Go changes. I ran actionlint v1.7.7 on the four changed workflows; it reported no findings.
  • Fast offline test suite (task test): no Go changes.
  • Pre-review race suite (task test:race): no Go changes.
  • Offline demo (go run ./cmd/mecademo): no runtime changes.
  • Markdown changed: task docs:check passed with 0 broken links or anchors. The full task docs needs buf, which isn't installed locally, for its unrelated gRPC reference step.
  • User docs/user-facing behavior changed: site build (task site:build)
  • Guarded engine API affected: compatibility check (task api:check)
  • Intentional engine API change: task api:update + engine/CHANGELOG.md

Chart and workflow checks:

  • task deploy:helm-unittest: mecak8s 40/40, mecatl-studio 39/39.
  • task deploy:check: both Studio ci/*-values.yaml fixtures pass kubeconform v0.7.0 in strict mode. HTTPRoute is skipped because kubeconform has no Gateway API schemas; the unit tests cover its shape.
  • helm lint --strict passes with the browser-login fixture.
  • release-workflow-graph_test.py: every publish job depends on validate-release-ref.
  • relevant-changes-workflow_test.sh and relevant-changes_test.sh pass.

Changes

File Change
deploy/helm/mecatl-studio/** New chart: templates, strict values schema, helm-unittest suites, CI value fixtures
Taskfile.yml deploy:helm-unittest and deploy:check cover the Studio chart
.github/workflows/k8s-e2e.yml Path filters include the Studio chart, so its checks run when it changes
.github/workflows/create-release-pr.yml, create-release-tag.yml Propagate and verify the Studio chart version
.github/workflows/release.yml New publish-studio-chart job
.github/workflows/README.md, .claude/skills/cut-release/SKILL.md Release docs list the Studio chart
user-docs/operating/studio.md New "Install with Helm" section (canonical Studio page)

User-facing change

Operators can install Studio with helm upgrade --install mecatl-studio oci://ghcr.io/stacklok/mecatl/charts/mecatl-studio --version <VERSION>. The chart is first published with the next release.

Special notes for reviewers

  • Release tooling: the release PR and tag workflows now refuse to proceed unless deploy/helm/mecatl-studio/Chart.yaml matches VERSION. The chart starts at 0.0.47 / v0.0.47 to match the current VERSION.
  • Early access: the chart carries the same org.stacklok.mecatl.studio.stability: early-access marker as the image (as a Chart.yaml annotation), and values.yaml says values may change without a deprecation period.
  • Not in this PR: publishing prerelease charts and images from main. That's the next PR (continuous.yml). Labels already stay valid for versions like 0.0.48-main.212.g1a2b3c4d, and a unit test covers it.
  • Migrating stacklok/infra staging from raw manifests: add the Helm ownership annotations and managed-by label to the existing objects (or let them be recreated), and disable Kustomization pruning before removing the manifests.

🤖 Generated with Claude Code

Studio ships as an image only, so every deployment hand-writes the same
Deployment, Service, NetworkPolicy, PDB, and route manifests. Package
them as deploy/helm/mecatl-studio so operators, and Flux HelmReleases
that follow a version range, install Studio the same way they install
mecak8s.

The chart renders Studio's configuration from typed values and fails at
render time on combinations the image refuses at startup: a missing
public origin, Mecatl URLs the image's parser rejects, a static token
without the unauthenticated opt-in, or variables the chart owns in
extraEnv. Pods run under the restricted profile with a read-only root
filesystem, keep serving briefly on termination while the gateway drops
them, and spread across zones. The NetworkPolicy admits Studio's port
and allows DNS plus TCP 443 and the Mecatl URL ports. An optional
Gateway API HTTPRoute derives its host from publicURL. Names and
selector labels match the raw manifests this replaces when the release
is named mecatl-studio.

Release PRs keep the chart's version and appVersion at VERSION, both
release workflows verify them, and the Release workflow publishes,
signs, and attests the chart after the Studio image. deploy:check and
deploy:helm-unittest cover the chart, and k8s-e2e runs them when it
changes.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>

@Nashon-Steffen Nashon-Steffen left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Multi-Agent Consensus Review

Agents consulted: helm-chart, security, ci-cd, test-coverage, general-architecture, comment-hygiene (codex cross-review unavailable)

Consensus Summary

# Finding Consensus Severity Action
1 Default trustedProxyHops: 1 with open ingress lets callers spoof X-Forwarded-For 9/10 MEDIUM Fix
2 Default-on egress policy crash-loops Studio when DNS isn't served by kube-system pods, or the IdP isn't on 443 9/10 MEDIUM Fix
3 The selector contract and several validation branches are untested (18 of 21 template mutations survive) 8/10 MEDIUM Fix
4 Studio-only chart edits trigger the kind e2e and the 100-minute execution qualification 7/10 MEDIUM Fix
5 URL validators and comments disagree with the image's parser 9/10 LOW Fix
6 No kubeVersion although the chart requires 1.30+ 8/10 LOW Fix
7 Comment and fixtures describe a continuous-build pipeline that isn't on main 10/10 LOW Fix
8 Release helm lint can't catch the chart's fail/required guards 9/10 LOW Fix
9 Render-time validation is a subset; MECATL_DEV_MOCK slips through extraEnv 8/10 LOW Fix
10 HTTPRoute hostnames aren't reconciled with the publicURL host 7/10 LOW Fix
11 Pod template carries version labels; podLabels can duplicate chart labels 7/10 LOW Fix
12 urlPort reads ports from the URL path; ports aren't range-checked 7/10 LOW Fix
13 Port-only egress rule opens the Mecatl ports to every destination 7/10 LOW Fix
14 Redundant helm registry login interpolates GITHUB_TOKEN into the script 8/10 LOW Fix
15 helm push failure output is swallowed by set -e 7/10 LOW Fix
16 No step summary or post-sign verification for the Studio chart 8/10 LOW Fix
17 No offline guard that the Studio Chart.yaml matches VERSION 7/10 LOW Fix
18 cut-release step 6 doesn't name or verify the Studio chart 8/10 LOW Fix
19 User docs: version placeholder, availability, and naming rule 7/10 LOW Fix
20 preStop comment says the image has no shell; it ships busybox sh 7/10 LOW Fix
21 Taskfile comments overstate coverage 9/10 LOW Fix
22 Test name claims an acceptance it doesn't assert 8/10 LOW Fix

Overall

This PR packages Mecatl Studio as deploy/helm/mecatl-studio and publishes it next to mecak8s on each release. The approach is sound. The release wiring mirrors the existing chart jobs and is stricter than the mecak8s one (it depends on validate-release-ref and attests provenance). The default image tag (v<VERSION>) matches what publish-studio pushes. The pod meets the restricted profile. The env projection matches what config.ts, runtime.ts, and bootstrap.ts accept, and the auth gating (session secret unless allowUnauthenticated; static token only with it) mirrors the image.

None of the findings block the approach. Two MEDIUMs are deployment defaults that bite in common clusters:

  • trustedProxyHops: 1 together with an ingress policy that admits any peer lets any in-cluster client, or any client behind an L4 LoadBalancer/NodePort, choose the address Studio rate-limits and audits on. The image defaults to 0.
  • The default-on egress policy allows DNS only to kube-system pods, so Studio crash-loops at startup on NodeLocal DNSCache or OpenShift clusters, or when the IdP listens on a non-443 port.

The other two MEDIUMs are coverage and CI cost:

  • The unit suites pass, but most template mutations go undetected, including Service/NetworkPolicy/PDB selector changes. Those selectors are the contract the staging migration relies on.
  • The new path filter sends every Studio chart edit through about 140 minutes of kind jobs that never deploy Studio.

The LOWs are mostly accuracy: URL validators that are stricter than the image, comments that reference a continuous pipeline not yet on main, and docs that claim the chart refuses everything the image refuses.

Outside the inline comments: confirm the stacklok/infra Deployment selector is exactly {name: mecatl-studio, instance: mecatl-studio} before migrating staging, because selectors are immutable. After the first release, check the visibility of the new GHCR package (charts/mecatl-studio) so Flux can pull it.

Documentation

  • user-docs/operating/studio.md:400: the version placeholder, the first available release, and the Deployment naming rule (inline).
  • user-docs/operating/studio.md:408: "refuses to render a configuration the Studio image would reject" overclaims (see the validation-subset comment).
  • user-docs/operating/studio.md:412: add the trustedProxyHops / ingressFrom coupling and the non-443 IdP egress requirement.
  • .claude/skills/cut-release/SKILL.md:119: step 6 should name the Studio chart job and verify the published version.

Generated with Claude Code

# 1 matches a single ingress or gateway in front of the ClusterIP Service. Set 0
# when clients reach Studio directly, for example through a layer-4
# LoadBalancer or NodePort Service, or clients can choose their own address.
trustedProxyHops: 1

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Default trustedProxyHops: 1 with open ingress lets callers spoof X-Forwarded-For (MEDIUM, 9/10; security, general-architecture, comment-hygiene)

With 1 hop, clientAddress() (apps/server/src/http/security.ts) trusts the right-most XFF entry. The default networkPolicy.ingressFrom: [] admits any pod on 3100, and the schema allows NodePort/LoadBalancer Services, which add no XFF header. Either way, a client can pick the address that keys the login and status rate limiters and the auth audit records. The image's own default is 0.

Options:

  • Default to 0 and tell operators to set 1 alongside httpRoute/ingressFrom.
  • Or fail rendering when trustedProxyHops > 0 and either service.type != ClusterIP or ingressFrom is empty.

Also reword the comment's last clause ("…or clients can choose their own address" reads as a third case for setting 0), and add the coupling to the Helm section of studio.md.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed in 5130be5. The default stays 1, because 0 would put every user behind a gateway into the gateway's single rate-limit bucket. Rendering now fails when trustedProxyHops > 0 with a NodePort or LoadBalancer Service. The values comment and studio.md now say to narrow networkPolicy.ingressFrom to the proxy.

- to:
- namespaceSelector:
matchLabels:
kubernetes.io/metadata.name: kube-system

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Default-on egress policy can crash-loop Studio at startup (MEDIUM, 9/10; helm-chart, general-architecture, security)

DNS is allowed only to pods in kube-system on 53. Studio resolves baseURL and runs protected-resource discovery at startup, so it exits and crash-loops when:

  • the cluster uses NodeLocal DNSCache (169.254.20.10, hostNetwork), common on GKE/EKS;
  • the cluster is OpenShift (openshift-dns, port 5353);
  • the IdP the discovery document points at listens on a non-443 port (e.g. Keycloak on 8443). The chart can't know that port.

Suggest a networkPolicy.dns (peers and ports) value that defaults to the current rule, plus a podSelector: {k8s-app: kube-dns} to narrow the default. At minimum, document the NodeLocal/OpenShift/IdP-port cases in values.yaml and studio.md.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed in 5130be5. Added networkPolicy.dns (peers and ports), defaulting to the previous kube-system/53 rule. The values comment and studio.md cover NodeLocal DNSCache, OpenShift, and an identity provider on a port other than 443.

@@ -0,0 +1,163 @@
suite: network exposure contracts

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The selector contract and several validation branches are untested (MEDIUM, 8/10; test-coverage)

helm unittest --strict passes 39/39, but 18 of 21 one-line template mutations also pass. Highlights:

  • Service, NetworkPolicy, and PDB selectors can be switched to the full (version-bearing) label set. There is no service.yaml suite, and no assertion on podSelector/selector.matchLabels. That is the selector contract the staging migration depends on.
  • Removing app.kubernetes.io/name from the podLabels guard goes undetected.
  • Deleting the session.secretKey check, or the required on serviceAccount.name, goes undetected. serviceaccount.yaml (including automountServiceAccountToken: false) has no suite.
  • image.tag, nameOverride, and fullnameOverride are untested. nameOverride feeds the selector.
  • The PDB enabled: false branch, probe paths, and the DNS egress rule (egress[0]) are untested.

Suggest service and serviceaccount suites, selector equality asserts in this file, and the missing failure cases. Anchor the schema errorPatterns on the JSON pointer (/logLevel, /podDisruptionBudget/maxUnavailable), as the mecak8s suites do.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed in 414ca4c. Added Service and ServiceAccount suites; selector asserts for Service, NetworkPolicy, and PDB; the missing validation, override, PDB, probe, and DNS cases; schema patterns anchored on JSON pointers; and an in-cluster CI fixture. Re-running 12 of the mutations, including all the selector swaps, now fails the suite.

Comment thread .github/workflows/k8s-e2e.yml Outdated
- internal/adapter/server/http.go
- deploy/helm/mecak8s/**
- deploy/helm/mecatl-execution/**
- deploy/helm/mecatl-studio/**

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Studio-only chart edits trigger about 140 minutes of kind jobs (MEDIUM, 7/10; ci-cd)

These filters are workflow-wide, so any Studio chart edit runs both k8s-e2e (40 min) and execution-production-e2e (100 min, no job-level if:). Neither deploys Studio. Only the deploy:helm-unittest/deploy:check steps are needed.

Consider a lightweight chart-checks job (or ci.yml category) path-filtered on deploy/helm/** + Taskfile.yml, and keep mecatl-studio/** out of this workflow. Update the header comment to match.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed in de31004. New studio-chart workflow runs deploy:helm-unittest and deploy:check on deploy/helm/mecatl-studio/** changes, and k8s-e2e no longer triggers on the Studio chart.

{{- fail "mecatl.resourceURL must be an http or https URL without credentials, query, or fragment" -}}
{{- end -}}
{{- $publicURL := required "publicURL is required: the browser-facing origin, for example https://studio.example.com" .Values.publicURL -}}
{{- if not (regexMatch "^https?://[^/?#@[:space:]]+$" $publicURL) -}}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

URL validators and comments disagree with the image's parser (LOW, 9/10; helm-chart, general-architecture, test-coverage, comment-hygiene)

  • ^https?://[^/?#@[:space:]]+$ rejects https://studio.example.com/, which parsePublicUrl accepts (pathname /). The error says "without a path", which confuses because the URL has none. baseURL already allows a trailing /.
  • Both validators are case-sensitive, so HTTPS://… fails here but WHATWG URL accepts it.
  • The baseURL comment (values.yaml:24) and its required message say "https:// address", but http:// is accepted and tested for in-cluster targets.

Allowing /? here also needs publicHost to strip a trailing slash. Add a validation case pinning the chosen behaviour.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed in 5130be5. All three URLs share one origin grammar: case-insensitive scheme, optional trailing slash on publicURL, numeric ports only. publicHost tolerates the trailing slash. The baseURL comment and required message now allow http://.

image tag. It opens `Release vX.Y.Z` from branch `release/vX.Y.Z`, then asserts that the
required values are synchronized. **If that verification step fails, do not merge the PR**;
tagged checkout again. The workflow bumps `VERSION`, the `mecak8s` and
`mecatl-studio` chart versions and app versions, and the `mecak8s` chart's default

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cut-release step 6 doesn't name or verify the Studio chart (LOW, 8/10; ci-cd, general-architecture)

Step 6 (line 119, outside this diff) still says "…microVM, chart, and CLI/Homebrew jobs". There are now three chart jobs, and publish-studio-chart can quietly no-op through its gate. Name the mecak8s and Studio chart jobs, and add a check such as helm show chart oci://ghcr.io/stacklok/mecatl/charts/mecatl-studio --version X.Y.Z.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed in de31004. Step 6 now names the mecak8s, execution, and Studio chart jobs and adds helm show chart checks for both published charts.

Comment thread user-docs/operating/studio.md Outdated
```sh
helm upgrade --install mecatl-studio \
oci://ghcr.io/stacklok/mecatl/charts/mecatl-studio \
--version <VERSION> \

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Version placeholder, availability, and naming rule (LOW, 7/10; general-architecture, comment-hygiene)

  • Earlier on this page, <VERSION> means the v-prefixed image tag. The chart version is bare semver (0.0.48), so a reader who copies the tag here won't resolve the chart. Use <CHART_VERSION> or spell it out.
  • The chart is first published with the next release, but this page goes live on merge. State the first release that includes it.
  • deployment/mecatl-studio only works because the release name contains the chart name. Add the naming rule (<RELEASE>-mecatl-studio, or fullnameOverride), as mecak8s.md does.
  • Lines 408–420 pack validation, routing, ingress, and egress into one paragraph, and "Run" sits alone on line 418. Splitting by topic would scan better.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed in 5130be5. The section now uses <CHART_VERSION> (bare semver), states the 1.30+ requirement and that charts ship with releases after v0.0.47, gives the naming rule and the chart verify command, and is split into one paragraph per topic.

Comment on lines +105 to +107
# Studio closes its listener on SIGTERM; keep serving while the
# gateway drops this endpoint. The image has no shell, so this uses
# the kubelet's sleep action.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

preStop comment says the image has no shell; it ships busybox sh (LOW, 7/10; helm-chart)

apps/Dockerfile notes the Chainguard node runtime "does ship Node's bundled npm and a busybox sh". The sleep action is still the right choice. Only the stated reason is wrong.

Suggested change
# Studio closes its listener on SIGTERM; keep serving while the
# gateway drops this endpoint. The image has no shell, so this uses
# the kubelet's sleep action.
# Studio closes its listener on SIGTERM; keep serving while the
# gateway drops this endpoint. The kubelet's sleep action keeps the
# hook independent of binaries in the image.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed in 5130be5.

Comment thread Taskfile.yml Outdated
Comment on lines +793 to +794
# kubeconform ships no Gateway API schemas; the Studio HTTPRoute shape is
# covered by the chart's helm-unittest suites instead.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Taskfile comments overstate coverage (LOW, 9/10; comment-hygiene, ci-cd, test-coverage)

  • The unit suites assert hostnames, backendRefs[0], and the timeout. They don't validate parentRefs, matches, or the Gateway API schema that this skip removes.
  • The deploy:check description at line 761 says "every deploy/helm/*/ci/*-values.yaml fixture", but the loops name two charts explicitly.
Suggested change
# kubeconform ships no Gateway API schemas; the Studio HTTPRoute shape is
# covered by the chart's helm-unittest suites instead.
# kubeconform ships no Gateway API schemas, so HTTPRoute is skipped here;
# the chart's helm-unittest suites assert its key fields.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed in de31004.

- failedTemplate:
errorPattern: "mecatl.baseURL must be an http or https scheme, host, and optional port"

- it: accepts a namespaced resource but rejects a query

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test name claims an acceptance it doesn't assert (LOW, 8/10; test-coverage, comment-hygiene)

Only the ?x=1 rejection is asserted. networking_test.yaml uses a path-bearing resourceURL, but those templates never include mecatl-studio.validate. Making the regex reject paths leaves every test green. Split this into "accepts a namespaced resource" (notFailedTemplate plus the MECATL_RESOURCE_URL env value) and "rejects a query in the resource URL".

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed in 414ca4c.

Nashon-Steffen and others added 3 commits October 13, 2026 11:09
Addresses #2291 review comments:
- MEDIUM deploy/helm/mecatl-studio/values.yaml:57 (4262207795): refuse trustedProxyHops > 0 with a NodePort or LoadBalancer Service; document the ingressFrom coupling
- MEDIUM deploy/helm/mecatl-studio/templates/networkpolicy.yaml:24 (4262207803): add networkPolicy.dns; document NodeLocal DNSCache, OpenShift, and non-443 IdP egress
- LOW deploy/helm/mecatl-studio/templates/_helpers.tpl:71 (4262207828): accept a trailing slash and any-case scheme as the image does; baseURL docs allow http://
- LOW deploy/helm/mecatl-studio/Chart.yaml:4 (4262207831): require Kubernetes 1.30+ via kubeVersion
- LOW deploy/helm/mecatl-studio/Chart.yaml:6 (4262207856): describe only the Release workflow's packaging
- LOW deploy/helm/mecatl-studio/templates/_helpers.tpl:101 (4262207880): refuse MECATL_DEV_MOCK, NODE_ENV, and NODE_TLS_REJECT_UNAUTHORIZED in extraEnv; state what validation cannot see
- LOW deploy/helm/mecatl-studio/templates/_helpers.tpl:92 (4262207888): require route hostnames to cover the publicURL host; omit hostnames for an IP origin
- LOW deploy/helm/mecatl-studio/templates/deployment.yaml:20 (4262207896): label pods with selector and pod labels only
- LOW deploy/helm/mecatl-studio/templates/_helpers.tpl:52 (4262207904): read ports from the URL authority and range-check them
- LOW user-docs/operating/studio.md:400 (4262207964): chart version placeholder, first release, naming rule, and verification
- LOW deploy/helm/mecatl-studio/templates/deployment.yaml:107 (4262207973): correct the preStop rationale

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…ches

Addresses #2291 review comments:
- MEDIUM deploy/helm/mecatl-studio/tests/networking_test.yaml:1 (4262207808): Service and ServiceAccount suites, selector assertions for Service/NetworkPolicy/PDB, the untested validation and override branches, JSON-pointer schema patterns, and an in-cluster CI fixture
- LOW deploy/helm/mecatl-studio/Chart.yaml:7 (4262207951): offline check that the Studio chart's version and appVersion match VERSION
- LOW deploy/helm/mecatl-studio/tests/validation_test.yaml:37 (4262207992): split the namespaced-resource test into its acceptance and rejection cases

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…hecks

Addresses #2291 review comments:
- MEDIUM .github/workflows/k8s-e2e.yml:53 (4262207813): run the Studio chart's offline checks in a new studio-chart workflow instead of the kind suites
- LOW .github/workflows/release.yml:1483 (4262207872): render every fixture before packaging; helm lint cannot fail on fail/required
- LOW .github/workflows/release.yml:1503 (4262207916): drop the redundant helm registry login
- LOW .github/workflows/release.yml:1505 (4262207929): print helm push output when the push fails
- LOW .github/workflows/release.yml:1516 (4262207942): verify the chart's signature and provenance under the release identity and write a step summary
- LOW .claude/skills/cut-release/SKILL.md:84 (4262207959): name the chart jobs and confirm both charts in GHCR
- LOW Taskfile.yml:793 (4262207981): state what the HTTPRoute skip and fixture loops actually cover

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@Nashon-Steffen
Nashon-Steffen merged commit d862cef into main Oct 13, 2026
68 of 69 checks passed
@Nashon-Steffen
Nashon-Steffen deleted the Nashon-Steffen/studio-helm-chart branch October 13, 2026 19:57
@peppescg peppescg mentioned this pull request Oct 14, 2026
10 of 14 tasks
@toolhive-release-app toolhive-release-app Bot mentioned this pull request Oct 20, 2026
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants