Repository navigation
feat(placement): add the sie_placement planner, tuner and cluster appliers - #914
Conversation
Add sie-placement, a standard-library workspace package with strict, versioned documents for a measured-only placement planner: - service levels per served identity (comeAliveP95S, warmP99Ms or the ttftP99Ms and itlP99Ms pair for generation, queueWaitP99Ms), with optional named tiers that identities inherit and override - receipt v1, keyed by machine profile and realized GPU product, with container shape, concurrency, request shape, throughput, latency percentiles and a source reference - boot evidence v1 for cold boots, snapshot restores and resident loads - price list v1 with per-profile accelerator, core and memory rates and a region multiplier per placement - hourly demand per identity and operation over a UTC window - the plan: lanes with cell, shape, concurrency, ceiling and envelope (floorMin, floorMax and optional buffer and scale-down window ranges), and each identity's lane and warmth Every type parses from JSON-compatible dicts with path-qualified errors and serializes back without loss. The package joins the workspace, pytest, lint, typecheck and coverage lists. It stays out of the PyPI distribution list and the release contract.
An integer beyond the float range in a number field raised OverflowError from math.isfinite instead of a path-qualified SchemaError. Report it as a non-finite number at its JSON path. UTC hours matched any Unicode digit, so an hour written in non-ASCII digits parsed and then serialized differently. Match ASCII digits only, and format the hour explicitly so a year below 1000 keeps four digits on every platform's strftime.
The plan lane's `pool` field was ambiguous: in the sie-cluster chart a pool is a worker group (`workers.pools.<key>`), while a lane is named by its queuePool, machineProfile and bundle tokens. Rename the wire key to `queuePool`, the chart's lane token, and document the three tokens and how they differ from the worker group key and an SDK logical pool.
Receipts and demand name the work primitive a lane runs, while gateway telemetry labels requests by route. Document the fold an adapter applies: `embeddings` is rewritten into an encode request and counts as `encode`, `moderations` answers 501 without serving a model and carries no demand, and `other` names no primitive. Also describe the service level fields without a fixed count, since a generation identity declares four.
Add sie_placement.tuner, a pure standard-library step function that an online lane tuner calls once per tick: - step(envelope, observation, current) returns one action (scale_up, scale_down, hold, hold_at_cap or raise_to_floor) and the floor, buffer and scale-down window to apply - every returned setting lies inside the plan's envelope; a floor below floorMin is raised with raise_to_floor, and a floor above floorMax is lowered to it with hold_at_cap - the floor moves one container per tick, falls only when nothing waits, nothing is in flight and the service level is not breached, and rises again only once the lane runs its current floor, so a slow boot does not ratchet it - the buffer and window are tuned only when the envelope bounds them and the caller supplies them, so an applier that moves only the floor gets the same floor decisions - an unmeasured attainment steers on the queue alone The tests run the step over a grid of envelopes, current settings and observations that covers every comparison the step makes, and check the cap and minimum edges, idle-only scale-down, a slow boot and re-convergence after a reset to the envelope minimum.
An Observation built from JSON, a database row or metric labels carries the attainment as a plain string. The step compared it by identity with Attainment.BREACHED, so a breach given as "breached" was never seen as pressure. Observation now converts the attainment to the enum, and an unknown value raises ValueError as a negative count does.
- current is the settings in force on the lane, read from the platform each tick or recorded again after a deploy resets them, never the previous Step.settings carried across a reset - an applier applies Step.settings whenever they differ from current, whatever the action, and records the action as the audit label - the action table now says that raise_to_floor, hold_at_cap and hold bring a buffer or window outside its range inside it, and that scale_up and scale_down stop at the edge of each range
Add sie_placement.planner.plan, a pure function from service levels, receipts, boot evidence, a price list, demand, the current plan and planner parameters to a plan and a report: - refuse receipts and boot evidence whose realized GPU product differs from the product their machine profile requests or whose profile has no price, and receipts whose latency cannot answer the identity's service level - block cells that miss the warm bounds; offer pinned, and cold-with-bound or snapshot-cold where boot evidence exists, with the slowest successful boot standing for the come-alive percentile, the environment's own evidence replacing borrowed evidence, and a comeAliveP95S of 0 admitting pinned only - price at list times the region multiplier: one warm container plus the above-floor hours demand needs, or the work plus a burst tail held at the active floor for the cooldown; the fallback floor, cooldown, ceiling and buffer are parameters - set the envelope floorMax to floorMin plus the declared buffer while queue wait is unmeasured, at realizable floors and capped by the reviewed ceiling - report per identity the chosen cell, warmth, monthly cost and come-alive basis, and the nearest cheaper blocked option with the bounds that block it; per lane the floor and envelope-maximum cost; measurement requests ranked by their price-bounded saving; come-alive levers priced under the identity's bound and at the bound their measured come-alive permits; unattained queue-wait bounds; refusals; and the changes against the current plan Boot evidence gains an optional borrowed flag. The rendered plan and report are byte-stable under input reordering, and replanning over the plan the planner wrote reports no change. Each identity gets its own lane; co-packing is not part of this change.
An identity whose choice is its current placement now stays on its current lane under its current name, beside whoever else that lane hosts. The current placement also has to match the queue pool and the bundle the parameters give the identity. Before this, the planner renamed an unchanged lane and split a shared current lane into new pinned floors, so an unchanged input could still produce a diff. Only lanes for new or moved placements get minted names, and a minted name widens its digest when a kept lane already holds it. Kept lanes stay within the reviewed ceiling. Costs are now per lane: each lane pays its floor once, plus its residents' demand above the floor. A kept identity's demand is priced at its slowest receipt for its lane's cell, shape and concurrency, under that lane's ceiling. The totals cover every lane. totals.unpricedLanes lists each lane whose cell has no price (with an unpricedReason) or that has a resident whose demand no receipt can price. Each identity reports its monthly cost on its lane. A kept identity's blockedBy names the bounds its kept placement is known to miss. The report also lists sharedChartLanes: every chart lane, by queue pool, machine profile and bundle, that more than one plan lane names. Boot seconds normalize to float, so an int and a float record of the same boot render the same bytes in either order. New tests cover demand summed over operations, saturated cold hours, the cheapest receipt for levers and boot requests under shuffled input, the concurrency match of the current placement, and snapshot restores, which are never requested.
helm_values turns a placement plan into a values overlay for the sie-cluster chart: one worker group per machine profile, whose bundle lanes carry minReplicas (the envelope's floorMin) and maxReplicas (maxContainers), and one static queue pool per named queue pool, which carries the lanes' floor as minimumWorkerCount and their pinned identities as pinnedModels. Lane tuples are canonicalized as the chart's lane-token helper does. It refuses a plan the chart and the gateway would not realize as planned: a zero-floor lane whose floorMax falls below the chart's fallback floor, more lanes than the chart's release limit (192, or 96 when the release installs KEDA or Prometheus), plan lanes on one chart lane or worker group that disagree on what it carries, pins on the default queue pool, which has no static queue pool, and lanes on one static queue pool that need different floors, pins or bundles. A golden test pins the emitted overlay, and chart render tests render it with helm template to check the lanes, the ScaledObject bounds, the unchanged six-trigger list, the static queue pool environment and the lane limits.
Add a `sie-placement tune` command that keeps each plan lane's warm
floor inside its envelope on a KEDA-scaled sie-cluster deployment:
- every tick it reads four lane series from Prometheus (lane queue
depth, pending demand, warm floor and ready workers), reads the lane's
floor-carrier pool with SIEClient.get_pool, and calls the tuner step
with that pool's floor as current
- shadow mode is the default and writes nothing; with --apply it upserts
one floor-carrier logical pool per lane through SIEClient.create_pool
on every tick, which also renews the pool's lease
- a carrier is named placement-floor-<queuePool>-<machineProfile>-<bundle>
and has gpus {<machineProfile>: 0}, the lane's queue pool and bundle,
no pins, no caps and the gateway's default lease; a pool with that name
and any other spec is reported and never written
- the applier writes only its carriers, so it never lowers another
pool's floor, and each audit row reports a lane whose warm floor
exceeds floorMax
- a lane missing a series is held and only brought inside its envelope
- the plan is refused before any call when an envelope's floorMax is
above the gateway's per-pool floor limit, when it has more lanes than
the gateway's API pool limit, or when its lane tokens cannot name a
carrier
Pool reads use a gateway client token and pool writes the gateway admin
token, each read from a file or an environment variable. The admin
token is read only with --apply, is sent only on pool writes, and is
never printed or logged. The README documents the permission each call
needs.
The SIE SDK and httpx come from a new keda extra; the schema, tuner and
applier core keep to the standard library. Tests drive the applier with
a fake Prometheus and fake pools, and drive the command through the real
SDK against fake HTTP Prometheus and gateway servers.
The overlay merged onto worker groups that the chart's own values already define, so enabling a group also enabled its stock bundles: a release could run a lane the plan never placed, and the lane-limit check undercounted. ChartParameters now takes base_pools, the workers.pools beneath the overlay (the chart's own worker groups by default, chart_pools()). Every bundle it enables under an emitted group and the plan does not place is set to enabled: false, and the enabled lanes of the groups the overlay leaves out count toward the chart's lane limit. Two plan lanes that canonicalize to one chart lane are refused, as the chart refuses two entries on one canonical lane. Merging them realized one floor, ceiling and pinned set for lanes the plan prices separately. A container of more than one GPU is one device group or one worker per GPU, which the plan does not say. device_groups names it per machine profile, the overlay emits gpu.deviceGroup, and a multi-GPU lane on an unnamed profile is refused. The golden plan now has several bundles on one worker group, several machine profiles on one static queue pool and a device group. It renders over the chart's stock values without a masking base, and an accepted plan at the lane limit renders. The order test compares the rendered bytes. The README states that the overlay does not constrain node selection and which planner plans these rules let through.
- refuse a token file, SIE_ADMIN_TOKEN or SIE_API_KEY that is not one run of printable ASCII without spaces, naming its source and never its value, and report a gateway transport failure by its exception type only, so no error text carries an Authorization header value - map malformed Prometheus replies (a bad status line, a truncated body) to a failed series, so the tick holds its lanes and the loop keeps running, and refuse a Prometheus URL with an invalid port at startup - join each gateway series to producers whose snapshot is at most 20 seconds old, as the chart's KEDA triggers do: the lane's queue snapshot for queue depth, the capacity snapshot for pending demand and warm floor, so a stale producer's last point reads as missing - write each carrier through its own SDK client and close it after the write, so the SDK's background lease renewal never runs and a carrier whose reads fail or whose name another pool holds lapses after its last write - report a malformed pool reply from the gateway as a failed lane instead of ending the loop - document that pending demand is a 0 or 1 flag that a publish in flight also sets, so steady traffic can read as pressure, and that the worker series has no freshness timestamp
A come-alive lever's savings are now the fall in the plan total found by planning again from the plan the run wrote: savingAtPermittedBound with the identity's come-alive bound loosened to permittedBoundS, and savingUnderBound with the warmth's boot measured at the identity's bound. A lever is listed only when loosening its bound lowers the plan total. An identity that stays beside another resident of its current lane no longer claims the lane's floor as a saving: leaving the lane leaves that floor paid by the other residents, so loosening its bound raises the plan total and the planner offers no lever for it.
A worker lane may declare envelope.floorMin and envelope.floorMax, the warm-floor range a floor carrier may hold it at. The render fails unless floorMin equals minReplicas, floorMax lies between floorMin and maxReplicas, and, on an autoscaled lane with minReplicas 0, floorMax is 0 or at least the lane's fallback floor. An envelope renders nothing by itself. placementApplier.enabled renders one Deployment that runs `sie-placement tune` against the placement plan given in placementApplier.plan. It runs in shadow mode unless placementApplier.apply is true. Every plan lane must name an enabled worker lane whose envelope equals the plan lane's, so the plan cannot move a floor outside the range the chart values bound. The ScaledObject triggers are unchanged. With apply, the pod mounts the gateway admin token as a read-only file from the Secret named by gateway.auth.adminTokenSecretName; the chart never creates the token or renders its value. Pool reads use a client token from placementApplier.clientToken, which joins the token separation check. The pod has its own ServiceAccount with no token mounted and no RBAC, runs non-root with a read-only root filesystem, no privilege escalation, every capability dropped and the RuntimeDefault seccomp profile, and uses the Recreate strategy so one applier writes at a time. Literal gateway pool limits in gateway.extraEnv are passed to the applier. The applier is disabled by default and the default renders are unchanged.
nextCheaper.saving is now the fall in the plan total found by planning again from the plan the run wrote, with each bound that blocks the option loosened to what the option measured, rounded up and never below 1. It is 0 when the total would not fall. The loosened bounds may admit a cheaper option still, and the saving counts it, as savingAtPermittedBound does for a come-alive lever. An identity that stays beside another resident of its current lane no longer claims the lane's floor as a nextCheaper saving: leaving the lane leaves that floor paid by the other residents. Levers and nextCheaper share one cached replan per loosened bound set.
The applier presents its client token file whole, so a gateway token Secret that lists several comma-separated tokens fails every pool read. The render error now suggests the gateway token Secret only when the chart generates it, which holds one token, and states that the key must hold one token. The chart README states that the applier reads both token files at start and needs a restart after a gateway client or admin token rotation, names the applier's client token in the gateway token rotation steps, and states that the Helm values emitted from a plan carry no lane envelopes, so they are copied from the plan. New render tests cover a gateway auth mode known only at run time, apply mode without gateway auth, the bundled Prometheus address, and the --max-pools flag.
…esidents A first plan over a running deployment should change nothing it has no measured reason to change. Four selection rules make that hold: - An identity whose current placement no option matches, because its lane has no receipt at its cell, container shape and concurrency, a cold lane has no successful boot, or a lazy resident has no load, keeps that placement unless it is known to miss a bound. It leaves only for an unblocked option at least a cent cheaper than the placement, priced at the lane's fastest receipt or, without one, at its floor alone. What the placement lacks is a measurement request at its lane, with the lane's name and concurrency. An identity that stays keeps its lane as it is, envelope included, capped by the reviewed ceiling. - An identity that declares no warm bound has no bound to choose a class by: cells outside its current class are blocked by the undeclared bound, which the report lists, and an identity without a current lane is not placed. - lazy-resident is selectable on a warm lane of the current plan, on the identity's queue pool and bundle, that a never-cold identity pins, when the identity has a receipt at that lane and a load onto its cell and container shape. Its come-alive is the load and its cost the demand above the host's floor. A missing load is a measurement request on that lane. - A warmth's come-alive is the 95th percentile by nearest rank of its successful boots from 20 boots, and their slowest below that. Kept identities now report the nearest cheaper option and price their measurement requests against the current placement, and come-alive levers include lazy-resident.
A lazy resident's option was hosted by any lane of the current plan on which a never-cold identity was pinned, even when that identity moved in the same run. The resident then sat alone on a warm-floor lane while its option claimed to cost nothing beyond a floor nobody else paid. Identities whose comeAliveP95S is 0 are now placed first, since no cold or lazy option can meet that bound, and a lane hosts lazy residents only when one of them stays pinned on it in this run. A resident's own lazy lane without such a neighbour stays an option, priced at the lane's floor as well. A boot or load at the current lane that did not succeed now blocks the current placement instead of holding it as unmeasured, and a current placement kept on a lane the price list cannot price reports current-unpriced rather than current-unmeasured.
Adversarial review run 4 (agent-generated, independent of the authoring session)
Agent-generated adversarial security review (independent reviewer). Reviewed head: d37c1ba What I read: the whole diff. In full: How the probes ran: in a throwaway partial clone and separate temporary probe directories, using Probe environment: macOS, non-root user. Python 3.12.12 (OpenSSL 3.5.4), 3.13.7 and 3.14.5 (OpenSSL 3.6.2). httpx 0.28.1, certifi 2026.4.22. Helm 3.16.4 (Go 1.22.7; the binary links Earlier findings this PR claims to fix#913 review run 21. The unquoted-scalar check missed forms: resolved.
2. The scalar tests never reached the check: resolved.
3. The TLS context was looser than httpx's on Python 3.13+: resolved. See
4. The CA directory check and the default-bundle message: resolved.
5. The allowlist was undocumented and refused whitespace: resolved.
6. NOTES evaluated the template in the wrong context: resolved. See
This PR, run 11. A CA directory was refused depending on entry order: resolved.
2. The refusal printed the template's expansion: resolved.
3. NOTES evaluated
4. Three helpers still wrote values with PyYAML: resolved. Every writer uses This PR, run 21. 2. A valid execute-only CA directory was refused at start: resolved.
3. 4. YAML 1.2 post-renderers (declined, then deferred): justified.
This PR, run 31.
Accepted and deferred items (#903 comment 6697495550)
Abuse cases consideredOracle against the applier's reader
Short-circuiting
Structure injection into
Grafana allowlist end to end: 58 forms
NOTES
TLS against servers on 127.0.0.1: 555 cases
Error messages
Test evidence
Findings1. Non-blocking (pre-existing, fails closed): a CA directory the applier can list but not search passes start-up. Where: Cause:
Failure scenario:
Impact: diagnosis only. This is the listable counterpart of run 3's unsearchable-location finding. Verification is not weakened, and no token can reach another host. The README sentence "a directory whose files it cannot use fails each gateway call" already covers the behaviour. Suggested fix: refuse any location that fails VerdictNo blocking findings |
Author's dispositions of adversarial review run 4Run 4 reported no blocking findings (report) and confirmed that every earlier finding is resolved or justifiably declined or deferred. Its one finding is non-blocking and pre-existing, and it is accepted and deferred. Nothing changes in this PR, so it stays at the reviewed head,
Review record for this PR
Between runs 3 and 4, CodeRabbit raised one finding on 50d702a: check search permission with the effective IDs. It was fixed in d37c1ba, and the thread is resolved. CodeRabbit approved d37c1ba before run 4 started. Its only remaining note is the advisory docstring-coverage pre-merge check, declined because the touched private helpers and test helpers follow the modules' no-docstring style. Deferred items, all non-blocking and fail-closed, are listed on #903: #903 (comment), with item 4 added in a follow-up comment there. |
The base branch was changed.
|
@coderabbitai approve |
Action performed
|
|
The only commit since the approved head d37c1ba is 40e7757, a merge of |
|
@coderabbitai approve |
Action performed
|
Landing note
This branch contains every commit of the placement stack: #905 (planner), #906 (tuner), #907 (availability), #908 (packing), #909 (Helm values), #910 (KEDA applier), #911 (chart applier) and #913 (applier hardening), on top of #904, which has merged. The merge queue squashes each pull request, and these stacked branches conflict with their predecessors' squash commits, so the stack lands as one squash commit through this pull request. Each of those pull requests was reviewed on its own, and they close with a link here once this one merges. The merge of
main(40e7757) keeps this branch's version of thesie_placementfiles, which are supersets of #904's, and regeneratesuv.lockfrommain's lock.Summary
This follow-up closes the six non-blocking findings of the second independent review of #913 (report, list), so #913 stays at its reviewed head. It is stacked on #913.
Unquoted subchart references checked with Helm's YAML reader (7d6ae1a). Closes finding 1.
sie-cluster.secretKeyRefwithunquotedno longer matches a regex of YAML scalars. After the character-set checks, it parsesk: <value>withfromYaml, which usessigs.k8s.io/yaml, the reader Helm and kubectl use for manifests. It refuses the value unless the result has noErrorkey andkis a string equal to the value.0b-1and0b-10, and keys such as1e_3,-_1and0_x1. YAML reads all of these as numbers, so Grafana's Deployment would have failed at apply. The key-, which made the rendered manifest unparseable, is now refused by the check.yEs,tRueand.1_and the names0b12and0bb..htpasswd,1-grafandnullablestill render.Render test values written as JSON (7d6ae1a). Closes finding 2.
render_chartintools/ci/tests/test_helm_render.pynow writes its values file as JSON instead of with PyYAML. PyYAML left1e3,-.5and+.5e3unquoted, so Helm read them as numbers before the chart saw them. The scalar tests now reach the check with the intended strings. They assert the check's own message and no longer accept Grafana's "wrong type for value" error.+.5e3is dropped from the key cases because+already fails the data-key character set..5e-3replaces it.TLS strictness kept equal to httpx's default (b32000b). Closes finding 3.
ssl.create_default_context(), whichhttpx.create_ssl_context()calls, setsVERIFY_X509_STRICTandVERIFY_X509_PARTIAL_CHAIN._verificationbuildsssl.SSLContext(PROTOCOL_TLS_CLIENT)directly, soSSLKEYLOGFILEis never read. It now sets those two flags on Python 3.13 and later.verify_flags,optionsandsecurity_levelwithhttpx.create_ssl_context(). It still compares the verify mode, host-name check and minimum version.sys.version_infoto 3.13 and checks that both flags are set.requires-python = ">=3.12,<3.13", so the new branch is not reached today.CA directories need a file, and the default-bundle error names the bundle (b32000b). Closes finding 4.
_holds_entriesis now_holds_files, and it counts an entry only whenentry.is_file()is true. A hash link to a certificate file counts.SSL_CERT_DIRwhose directories hold only subdirectories or dangling links is now refused at start. Before, such a directory passed start-up and then failed every call withCERTIFICATE_VERIFY_FAILED. The package README already describes this check ("none of whose directories holds a file").the default CA bundle <path> cannot be loaded. It used to nameSSL_CERT_DIR.Grafana admin Secret template allowlist documented, with whitespace accepted (a20396e). Closes finding 5.
kube-prometheus-stack.grafanacomment invalues.yamlnow state the allowlist. A value that holds{{may hold only lowercase letters, digits,-,., whitespace and actions that name a field path of.Release,.Values(Grafana's values) or.Chart. Any other action fails the render.{{\t.Release.Name }}-grafand a YAML block value that ends in a newline.secretKeyReftrims the ends as YAML does.printfand other function calls stay refused.NOTES names the Secret Grafana reads (a20396e). Closes finding 6.
sie-cluster.kubePrometheusStack.grafanaAdminSecretName, whichNOTES.txtuses, now evaluatesadmin.existingSecretin the Grafana subchart context, aswiredSecretKeysdoes:.Templateis merged intoindex .Subcharts "grafana". With noexistingSecretit falls back tografana.fullname, and it trims the result.{{ .Values.admin.userKey }}-adminfailed the whole render in NOTES with a nil pointer, and{{ .Chart.Name }}-adminnamedsie-cluster-adminrather than thegrafana-adminSecret that Grafana reads.grafanaFullnameno longer says it mirrors the admin Secret rules.Fixes from adversarial review run 1 (df7ac8f, 6a8ba70; report, dispositions).
_holds_fileskeeps scanning past an entry whoseis_file()raises, such as a link loop or a link into an unreadable directory.{{ .Values.YAML }}was all of Grafana's values.Fixes from adversarial review run 2 (b46e6af, 18e5688; report, dispositions).
values_jsonescapes the characters that YAML folds or refuses, and a probe-chart test checks that Helm reads values back exactly.ruff formatis applied, which CI'stools/cicheck requires.Fix from adversarial review run 3 (50d702a; report, dispositions).
CodeRabbit finding on the run 3 fix (d37c1ba): the search check for a CA directory that cannot be listed now uses the effective uid and gid, as OpenSSL does, where the platform supports it.
Review status at d37c1ba.
This changes the chart's credential separation checks and the TLS verification of the applier's gateway client. It therefore gets an independent adversarial review after the CodeRabbit review.
Refs #903
Verification
mise run lintandmise run typecheck: pass.mise run test -- packages/sie_placement/tests: 1601 passed at d37c1ba (1596 at b32000b). New and changed tests:httpx.create_ssl_context().sys.version_infois 3.13.SSL_CERT_DIRholding only a subdirectory or only a dangling link is refused.pools.py, the strict-flag test, both default-bundle cases and both new directory cases fail.ssl.create_default_context(). On Python 3.12.12 with OpenSSL 3.5.4, and on 3.13.7 and 3.14.5 with OpenSSL 3.6.2, the two contexts are equal in verify mode, host-name check, minimum and maximum version, verify flags, options and security level. The verify flags are 32768 on 3.12 and 557088 on 3.13 and 3.14.mise run helm -- lint: pass.tools/ci/tests/test_helm_render.py: 708 passed at 18e5688 (702 at b32000b). New and changed tests:null,true,no,123,1e3,0x1f,12.5,0b-1,0b-10..5,-.5,.5e-3,1.5,true,y,1e_3,-_1,0_x1,-.key:line:.htpasswd,.5x,admin-user,v1.5,yEs,tRue,.1_.name:line:1-graf,graf-1.2.3,nullable,one,0b12,0bb.{{\t.Release.Name\t}}-graf,{{\n.Release.Name\n}}-grafand{{ .Release.Name }}-graf\n.{{\t.Release.Name }}-graf\ncollides with an applier client token insie-graf/admin-password.printf.graf,{{ .Values.admin.userKey }}-admin,{{ .Chart.Name }}-adminand{{ .Release.Name }}-graf\n, NOTES names the Secret that Grafana's Deployment reads forGF_SECURITY_ADMIN_PASSWORD._helpers.tpl, 31 of these cases fail. The refused-scalar cases that the old regex also caught fail there only on the new message. The ones that are new are0b-1,0b-10,1e_3,-_1,0_x1and-, together with the accepted strings, the whitespace forms and the three NOTES template cases.render_chartchanges no other test. An AST scan of the test module's string constants finds that only the scalar tests hold strings that PyYAML writes unquoted and Go YAML reads as something else (1e3,0b-1,0b-10,-.5,y). Under PyYAML,ywould have reached Helm as a boolean.fromYaml. These forms all make Grafana readsie-graf, the name the check uses:\r,\n \nor\n\n{{\r.Release.Name\r}}helm templatefails.helm templateagainst the fix(placement): keep the applier's tokens off proxies and harden plan parsing and subchart Secret checks #913 head 6b5b71a, in 15 value sets:values-aws.yaml,values-gke.yamlandvalues-ha.yaml.ReleasetemplateSIE_ADMIN_TOKEN,SIE_CONFIG_READ_TOKEN, the NATSpassword). The documents compare equal with Secret data masked.{{ .Values.admin.userKey }}-adminfails at base in NOTES.txt and renders at head.Summary by CodeRabbit