Repository navigation
feat: parity batch 13 (Logic Apps histories, triggers and certificate auth; API Management policies and entities; Transcribe audio decoding; ECS restore resume) - #2547
Conversation
…ers, certificate authentication, more locales Run operations, request histories and expression traces are recorded from real action executions. Http polling and HttpWebhook triggers fire. The Http action supports ClientCertificate and the OAuth certificate credential. Date functions know 19 cultures. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NVwMjLknMM32Xje6Qik6wY
…s, caching, built-in entities, WebSocket passthrough The gateway evaluates a bounded policy-expression subset and supports choose, set-variable, validate-jwt, quota, cache, send-request and authentication policies with product-scope policies and on-error. Services are created with their built-in groups, products and master subscription. Certificates, diagnostics, schemas, revisions and releases are real resources. WebSocket APIs are passed through. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NVwMjLknMM32Xje6Qik6wY
…ficate thumbprint hashes x5t thumbprints are SHA-1 by specification. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NVwMjLknMM32Xje6Qik6wY
…ry-After and run histories, callback host validation A polling trigger following Location to another origin no longer forwards credentials or the client certificate. Retry-After accepts HTTP dates and is clamped. Webhook callback URLs ignore foreign Host headers. Expression traces mask secure parameters and credential headers. Request histories and traces are bounded per run. Reset drops queued webhook calls. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NVwMjLknMM32Xje6Qik6wY
…ient cache, strict JWT claims, WebSocket header hygiene Quota policies check and charge in one step so parallel requests cannot exceed the limit. Client certificates from expressions are cached by their content. validate-jwt no longer matches a missing claim against an empty configured value, caches failed OpenID fetches and hides parser text. WebSocket upgrades drop hop-by-hop headers. Restored services gain missing built-in groups and the master subscription. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NVwMjLknMM32Xje6Qik6wY
…ministic refused-host tests The callback base comes from the last write to the workflow itself, so one caller's Host header cannot affect another workflow, and container host names keep working. The outbound client is swapped atomically. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NVwMjLknMM32Xje6Qik6wY
…se, applies backend credentials to WebSocket handshakes Close and Reset cancel open WebSocket sessions and in-flight one-way requests. authentication-basic and backend credentials reach the WebSocket backend. Cached responses no longer replay Set-Cookie or hop-by-hop headers. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NVwMjLknMM32Xje6Qik6wY
Media is decoded in bounded chunks to 16 kHz PCM for the speech engine. Corrupt media fails the job. Adds pure-Go decoders for FLAC, MP3 and Vorbis. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NVwMjLknMM32Xje6Qik6wY
Tasks that were PROVISIONING, PENDING or ACTIVATING in a snapshot are relaunched once through the normal launch path, or adopted when their containers exist. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NVwMjLknMM32Xje6Qik6wY
…eholder media without an engine Decoded audio is capped at 64 MiB and decoding stops when the job is deleted. Without a speech engine only certain header faults fail a job, as before. Hostile Vorbis and ID3 headers are rejected before the decoders allocate from them. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NVwMjLknMM32Xje6Qik6wY
…ever launch, adopted tasks keep reported health Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NVwMjLknMM32Xje6Qik6wY
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NVwMjLknMM32Xje6Qik6wY
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NVwMjLknMM32Xje6Qik6wY
|
Important Review skippedToo many files! This PR contains 134 files, which is 34 over the limit of 100. To get a review, reduce the PR to 100 files or fewer by splitting it into smaller PRs or changing its base branch. Upgrade to a paid plan to raise the limit. CodeRabbit couldn't verify your organization's usage billing state, so no usage-priced review was started. Retry after the billing service recovers.
|
There was a problem hiding this comment.
Devin Review found 5 potential issues.
1 flag not posted on this PR by your GitHub settings — view it in Devin Review. (Configure)
| if old, busy := lt.tasks[w.task.TaskArn]; busy { | ||
| if old == w.task { | ||
| b.mu.Unlock() | ||
| cancel() | ||
|
|
||
| return | ||
| } | ||
|
|
||
| lt.cancels[w.task.TaskArn]() | ||
| } |
There was a problem hiding this comment.
🔴 Restore can dismantle replacement ECS tasks
During a second restore, launchAsync starts the replacement before the canceled launch finishes. abortLaunch cleans up by task ARN, so the old launch can remove the replacement’s network or runtime tracking.
Learn more
The backend tracks launch generations by task object, but Docker tracks runtime state by task ARN. RunTaskContext registers the launch and its volumes under that ARN. On cancellation, abortLaunch deletes entries and removes the network under the same ARN. The backend starts the replacement before that cleanup completes, so generation checks in the backend do not protect Docker resources.
Example: Restore task A twice while Docker is starting its containers. Let the replacement register its launch, then let the canceled launch finish rolling back. Rollback can tear down state the replacement now owns.
Recommended fix: Wait for the superseded launch and its runtime cleanup to complete before starting another generation of the same ARN. Keep the wait outside the backend lock and recheck that the replacement is still current.
Was this helpful? React with 👍 or 👎 to provide feedback.
| if ad, ok := b.runner.(taskAdopter); ok && status == statusActivating && ad.AdoptTask(ctx, task, w.td) { | ||
| b.completeLaunch(ctx, w, clusterName, nil) | ||
|
|
||
| return false |
There was a problem hiding this comment.
🔴 ECS restore fails surviving Kubernetes tasks
For an ACTIVATING Kubernetes task with a surviving Pod, prepareRestoredLaunch relaunches instead of adopting. LaunchPod tries the same name, fails on the conflict, and can delete the surviving Pod.
Learn more
Handler.Restore resumes tasks that were mid-launch. Kubernetes does not implement the restore adoption interface. It derives the same Pod name from the task ARN on every launch. LaunchPod creates the Secret first when needed, then the Pod. With no Secret, an existing Pod causes Create to fail and its cleanup deletes that Pod; an existing Secret can instead fail the launch before Pod creation.
Example: Restart after a snapshot captures an ACTIVATING task whose Pod has been created. The restored task becomes STOPPED with TaskFailedToStart instead of continuing from the existing Pod.
Recommended fix: On restore, look up and verify ownership of the deterministic Pod and Secret. Reattach or wait for the existing Pod when usable. If relaunch is necessary, clean up verified leftovers before creating replacements.
Was this helpful? React with 👍 or 👎 to provide feedback.
| if sub := s.activeSubscription(key, api.ID); sub != nil { | ||
| plan.subID = sub.ID |
There was a problem hiding this comment.
🔴 API releases reject existing subscription keys
After a release selects a suffixed revision, checkKey passes that revision ID to scopeCovers. API-scoped keys and product links for the base API no longer match, so subscribers receive 401 unless another scope applies.
Learn more
normRelease marks the revision current. The gateway must select operations on that revision, but the original API and its revision belong to one subscription and product identity. scopeCovers, apiInOpenProduct, and fillContext currently compare against the revision ID.
Example: Link echo to Starter and create a product subscription. Release echo;rev=2. The same subscription key no longer reaches /echo, even though the path and product are unchanged.
Recommended fix: Resolve subscription scope and product membership using the logical API ID, while keeping the selected revision ID for operation, backend, and revision-policy resolution. Add a release test using both an existing API-scoped key and a product-scoped key.
Was this helpful? React with 👍 or 👎 to provide feedback.
| func (g *gwState) execList(nodes []*polNode, section, path string) { | ||
| for _, n := range nodes { | ||
| g.cur, g.section = n, section | ||
|
|
||
| g.execNode(n, section, path) | ||
|
|
||
| if g.evalErr != nil { | ||
| g.cur, g.section = n, section | ||
| g.raiseEval() | ||
| } | ||
|
|
||
| if g.short || g.errored || (g.cacheHit && section == polInbound) { | ||
| return | ||
| } |
There was a problem hiding this comment.
| mix.push(buf, n) | ||
|
|
||
| total += int64(n) | ||
| if total > limit || mix.size() > maxDecodedBytes { | ||
| return decodedAudio{}, errAudioLength |
There was a problem hiding this comment.
🟨 Audio size limit runs after allocation
With recognition enabled and no job sample rate supplied, decodeAudio accepts any positive WAV header rate. It checks the size only after resampling a whole chunk, allowing allocations far beyond the configured limit.
Was this helpful? React with 👍 or 👎 to provide feedback.
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
…k-hash allowlist Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NVwMjLknMM32Xje6Qik6wY
Every application start generated two RSA-2048 keys, about 85% of start-up CPU. Each instance still owns its key; it is created when first needed. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NVwMjLknMM32Xje6Qik6wY
Query jobs are asynchronous, so a test that ran DDL without waiting could read the table before it existed. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NVwMjLknMM32Xje6Qik6wY
…noring it Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NVwMjLknMM32Xje6Qik6wY
Each deleted table left its capacity counter behind until the next usage collection, so table churn grew the heap linearly. The table cleaner now prunes them. The leak test drains deleted tables before each snapshot instead of depending on janitor timing. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NVwMjLknMM32Xje6Qik6wY
The Fargate attachment derived its last two octets from the first two ASCII hex characters of a UUID, so only 256 addresses existed and nothing checked for collisions. Two tasks could share an address, which collapsed RunningTaskIPv4s results and made ELBv2 target and Cloud Map registration clash. Octets now come from random bytes across the whole /16 and skip addresses held by the cluster's non-stopped tasks. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NVwMjLknMM32Xje6Qik6wY
…ret wiring test The test asserted that deleting a just-created instance fails because it is still CREATING, but without an engine that state lasts 500ms of wall clock, so a slow runner saw the delete succeed. The rule is covered deterministically by the gated fake engine case in services/timestreaminfluxdb. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NVwMjLknMM32Xje6Qik6wY
…et test A table-data dump runs under a 20s wall-clock budget. The budget test seeds about 450k rows, so on a slow runner the deadline expired before the second database was read and it was persisted schema-only. The deadline is now a backend field the test can set, and a separate test pins what an exhausted deadline does. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NVwMjLknMM32Xje6Qik6wY
📊 Code Coverage Report
📄 Impacted Files Breakdown
Tip This project maintains a minimum coverage threshold of 85%. Maintain or improve coverage on new code to ensure long-term stability. Last updated: Sat, 21 Nov 2026 16:22:20 GMT |
Summary
Parity work on Azure Logic Apps, Azure API Management, Transcribe and ECS. Each feature commit is followed by the fixes from an independent review pass.
listSwagger. The Http action supportsClientCertificateand the OAuth certificate credential. Date functions know 19 cultures.chooseandset-variable;validate-jwt,quota,quota-by-key, cache policies,send-request,authentication-basicandauthentication-certificate; product-scope policies andon-error. Services are created with built-in groups, products and the master subscription. Certificates, diagnostics, schemas, revisions and releases are real resources. WebSocket APIs are passed through and stop cleanly on close.mewkiz/flac,hajimehoshi/go-mp3,jfreymuth/oggvorbis).Behaviour changes
Known limits
Recorded in each
PARITY.md: Logic Apps SlidingWindow trigger,generateUpgradedDefinition, workflow move and Integration Accounts; API Managementauthentication-managed-identity, expressions beyond the subset andon-errorfor built-in pipeline errors; Transcribe Opus, WebM, AAC and AMR.Test plan
go build ./...,go vet ./...(pluse2eandintegrationtags),go fix -diff ./...emptyparitylint./services/azurearm/...,./services/transcribe/...,./services/ecs/...,./dashboard/...with-race -shuffle on./internal/appwith-race, leak suite, root packagegolangci-linton touched packages,./internal/app/...,./dashboard/...test/terraform/azure, ECS and Transcribe terraform tests🤖 Generated with Claude Code
https://claude.ai/code/session_01NVwMjLknMM32Xje6Qik6wY