Repository navigation
fix(infra): repair development OpenAPI schema serialization (#1058) - #1079
Merged
Merged
Conversation
Contributor
terraform plan
dev — 0 to add, 1 to changemodule.eks.data.aws_iam_policy_document.node_trust: Reading...
module.network.data.aws_availability_zones.available: Reading...
module.network.data.aws_region.current: Reading...
data.aws_iam_policy_document.obs_pod_trust: Reading...
data.aws_iam_openid_connect_provider.github: Reading...
data.aws_rds_engine_version.aurora_pg: Reading...
data.aws_region.current: Reading...
data.aws_caller_identity.current: Reading...
data.aws_region.current: Read complete after 0s [id=us-east-2]
module.network.data.aws_region.current: Read complete after 0s [id=us-east-2]
module.eks.data.aws_iam_policy_document.node_trust: Read complete after 0s [id=2851119427]
data.aws_iam_policy_document.obs_pod_trust: Read complete after 0s [id=819195744]
data.aws_iam_policy_document.eso: Reading...
data.aws_iam_policy_document.efs_csi_trust: Reading...
data.aws_iam_policy_document.er_api_pod_trust: Reading...
data.aws_iam_policy_document.eso: Read complete after 0s [id=1725605485]
data.aws_iam_policy_document.efs_csi_trust: Read complete after 0s [id=819195744]
data.aws_iam_policy_document.er_api_pod_trust: Read complete after 0s [id=819195744]
data.aws_iam_policy_document.eso_trust: Reading...
data.aws_iam_policy_document.eso_trust: Read complete after 0s [id=819195744]
module.eks.data.aws_iam_policy_document.cluster_trust: Reading...
module.eks.data.aws_iam_policy_document.cluster_trust: Read complete after 0s [id=1029077455]
data.aws_caller_identity.current: Read complete after 0s [id=797781631727]
data.aws_iam_policy_document.otel_collector: Reading...
data.aws_iam_policy_document.fluent_bit: Reading...
data.aws_iam_policy_document.otel_collector: Read complete after 0s [id=3111493560]
data.aws_iam_policy_document.fluent_bit: Read complete after 0s [id=4006586444]
data.aws_iam_policy_document.bedrock_invoke: Reading...
data.aws_iam_policy_document.bedrock_invoke: Read complete after 0s [id=3601248236]
module.lake.data.aws_iam_policy_document.lake_tls_only: Reading...
module.lake.data.aws_iam_policy_document.lake_tls_only: Read complete after 0s [id=2205495074]
data.aws_iam_policy_document.lake_access: Reading...
data.aws_iam_policy_document.lake_access: Read complete after 0s [id=2921565705]
data.aws_rds_engine_version.aurora_pg: Read complete after 0s [id=17.9]
module.network.data.aws_availability_zones.available: Read complete after 0s [id=us-east-2]
data.aws_iam_policy_document.ci_deploy_dev: Reading...
data.aws_iam_policy_document.ci_deploy_dev: Read complete after 0s [id=1754478413]
data.aws_iam_openid_connect_provider.github: Read complete after 0s [id=arn:aws:iam::797781631727:oidc-provider/token.actions.githubusercontent.com]
data.aws_iam_policy_document.ci_deploy_dev_trust: Reading...
data.aws_iam_policy_document.ci_deploy_dev_trust: Read complete after 0s [id=4060172364]
Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
~ update in-place
Terraform will perform the following actions:
# aws_eks_addon.metrics_server will be updated in-place
~ resource "aws_eks_addon" "metrics_server" {
~ addon_version = "v0.9.0-eksbuild.12" -> "v0.9.0-eksbuild.14"
id = "er-dev:metrics-server"
tags = {}
# (9 unchanged attributes hidden)
# (1 unchanged block hidden)
}
Plan: 0 to add, 1 to change, 0 to destroy.
|
athvin
marked this pull request as ready for review
November 10, 2026 18:50
This was referenced Nov 10, 2026
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.
Closes #1058
What
Pin metrics-server to
v0.9.0-eksbuild.14, upgrading development from build 12 and preserving the build already running in production.Why
Development’s metrics-server emits malformed OpenAPI v2 definitions. JSON retrieval and APIService availability look healthy, but conversion to protobuf fails, so strict kubectl validation stops runner-isolation before Job creation.
Proof
Read-only kubectl v1.37.2 reproduces the dev protobuf 503; prod protobuf and dev JSON/v3 pass. The same OpenAPI parser used upstream fails on the downloaded dev schema and passes on prod. Removing only the malformed definitions from a local copy also makes conversion pass. Local Terraform 1.11.4 format/credential-free validation passed for dev and prod, and
make skills-checkpassed. All PR workflows pass atd1c4f514; infra 42878835494 plans exactly one in-place dev metrics-server upgrade, 0 additions/0 destroys, and no changes in prod/core/state-backend. Live repair and unchanged isolation acceptance are pending.Risk & rollback
Terraform updates the managed dev add-on in place; metrics availability may briefly pause during rollout. Production already runs the pinned build. Strict validation and all permission-denial assertions stay unchanged. If the add-on update fails, inspect EKS health and select a known-good supported build through Terraform; build 12 is known to break schema validation.
Post-merge ledger
Closed by: Codex · session
01a1be1a-66a7-72f3-8e78-32c20c5e0da9onMac-87.lan· 2026-11-10T19:21:56.795028+00:00mainis green with this change on it —2354ff96000f30ea8d5262305c843940e98d9cfb, merged at 18:51:29Z; infra 42879421433, rust 42879421368, frontend 42879421483 and devcontainer 42879421356 succeeded.images— n/a — Terraform and documentation only; no image inputs changed, so no image build is expected.deploy— n/a — no application deployment is triggered. The CI-owned add-on apply and independent runtime proof are recorded below.f2baff25); no runtime acceptance remains deferred.Specific to this change
Completed the 30-minute main watch from 2026-11-10T18:51:29Z through 2026-11-10T19:21:56.795028+00:00: no new main failure; 365 public health probes, zero failures. Final dev add-on readback is v0.9.0-eksbuild.14 ACTIVE with no health issues; the exact protobuf OpenAPI v2 request returned 200 again at 19:20:32Z. Both-environment runner acceptance remains successful (42880252276).
CI-owned Terraform apply — infra 42879421433 succeeded in core/dev/prod. Dev now reports build 14 ACTIVE without health issues; production remains on build 14. Both new dev metrics-server pods are ready with zero restarts; the process emitted
Serving securely on [::]:10251at 18:55:00.999597Z.Dev OpenAPI v2 protobuf and metrics — the exact kubectl v1.37.2
explain job --output=plaintext-openapiv2command returned HTTP 200 at 18:55:59Z, after returning 503 before the upgrade. NodeMetricsList contains both current nodes with usage. Evidence:/tmp/er-1058-dev-openapi-after.logand/tmp/er-1058-node-metrics.json.Unchanged runner-isolation workflow — run 42880252276 passed both fixture tenants in dev and prod: own-prefix put/get/list, cross-prefix put/get/list/delete AccessDenied, and root-list AccessDenied. All eight Jobs and both ConfigMaps were cleaned up. Log evidence:
/tmp/er-1058-acceptance.log.PR feat(infra): isolate runner lake access by tenant (#550) #1027's live S3-boundary item is closed with run 42880252276. Rollout-plan documentation is updated in docs(infra): record verified production rollout milestones (#1080) #1081 (
f2baff25), merged after the live evidence existed.Context — plan, discoveries, measurements, files
Plan
v0.9.0-eksbuild.14; development currently runs build 12. Record the schema diagnostic in the platform reference. Keep the existing strict validation and isolation assertions unchanged.land-pr, wait for the CI-owned apply, prove dev protobuf schemas and metrics are healthy, and dispatch the unchanged runner-isolation workflow on main. Require dev and prod positive/negative controls, close PR feat(infra): isolate runner lake access by tenant (#550) #1027's deferred live-boundary item, and finish the post-merge watch.Discoveries
v1.36.5-eks-577a51e. Dev metrics-server isv0.9.0-eksbuild.12; prod is build 14. AWS lists build 14 as the default compatible version for EKS 1.36.ArbitraryKeys,SchemaProps,SwaggerSchemaProps, including the metrics API types.gnostic-models v0.7.0(the upstream Kubernetes 1.36.5 dependency) rejects those properties. Production conversion passes (3,809,449 bytes); the local dev copy with those definitions removed also passes. The altered copy was never sent to a cluster./tmp/er-1058-{openapi-explain,openapi-v3-explain,prod-openapi-explain,schema-conversion,prod-schema-conversion,sanitized-schema-conversion}.logon Mac-87.lan. No cluster writes were used for diagnosis.Measurements
Files