This repository was archived by the owner on Nov 30, 2026. It is now read-only.
Repository navigation
Sync environments with the current API spec - #300
Merged
Merged
Conversation
Publish the environment's post-deploy command, HTTP basic auth state and internal networking settings; let environment:update set the post-deploy command and HTTP basic auth; keep a metric interval with no sample as null instead of zero. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01T1Sq4Xyfgr8GKyqxCwmuSc
This was referenced Nov 24, 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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
The Cloud API spec changed. This syncs the environment resource with it.
Findings fixed
UpdateEnvironmentRequest.uses_http_basic_auth,.http_basic_auth_passworduses_http_basic_authistrue, and prohibited otherwise".environment:updatenow has--uses-http-basic-authand--http-basic-auth-password. The password is a#[SensitiveParameter]and is masked in the change report.UpdateEnvironmentRequest.post_deploy_commandstring | null, max 2000 characters.environment:updatenow has--post-deploy-command.EnvironmentResource.attributes.post_deploy_command,uses_http_basic_auth,internal_networkinginternal_networkingis{ enabled, hostname, access_level, environment_ids }.EnvironmentDTO, so--jsonand--fieldscouldn't return them. The DTO now haspostDeployCommand,usesHttpBasicAuthandinternalNetworking, which uses a newEnvironmentInternalNetworkingDTO.GET /environments/{environment}/metrics, thecpu_usageandmemory_usageyvaluesnumber | null. Null means the instance reported no sample for that interval, which is not zero usage.MetricPointcast null to0.0, so a gap showed as 0% in the sparkline and in--json.MetricPoint::$valueis now?float. The sparkline already skips non-numbers. The trend line now starts and ends at the first and last intervals that have a sample, and a series with no samples reads "No data".For review
--uses-http-basic-auth=truewithout a password fails non-interactively with "Provide --http-basic-auth-password…" before anything is sent.--http-basic-auth-passwordon its own changes the password.--jsonfor a missing sample. It now sendsnullwhere it used to send0.Left alone (uncertain)
display_name: it would collide withEnvironment::displayName(), so it needs a naming decision.deploy_hook_url: anyone holding it can trigger a deploy. Whether it should be masked is a decision.pull_request: the spec types it only asnull.environment:create: no basic auth options yet. That's a design question.POST/PATCH/DELETE /environments/{environment}/internal-networking: new endpoints, Private Cloud only. They need new commands, which is a proposal rather than a fix.Tests
LARAVEL_CLOUD_TOKEN, so the auth middleware doesn't stall in a container with no stored token: 820 pass. The one failure was aRepoConfigTestcase that the dummy token breaks; it fails the same way onmainwith that token set, andRepoConfigTestpasses in full (14/14) without it.PromptFallbackTestwas skipped because it hangs in this container. PHPStan and Pint are clean.https://claude.ai/code/session_01T1Sq4Xyfgr8GKyqxCwmuSc
Generated by Claude Code