Skip to content

Sync upstream vitodeploy/vito 4.x (v4.1.1) - #5

Merged
fatihalp merged 11 commits into
4.xfrom
sync/upstream-4.1.1
Oct 3, 2026
Merged

fatihalp merged 11 commits into
4.xfrom
sync/upstream-4.1.1

Conversation

@fatihalp

Copy link
Copy Markdown
Owner

Merges the 10 new upstream commits (v4.1.0 → v4.1.1):

Conflict resolution (fork changes prioritised)

  • Kept fork's deletions: tests, API provider/source-control controllers, CONTRIBUTING/SECURITY, public/build (still gitignored).
  • composer.lock: kept fork's version (upstream dependency bump skipped).
  • RunBackupCommand: kept fork's start() scheduling logic, added upstream's per-backup try/catch + failed count.
  • SourceControlPolicy: kept fork's isAdmin() bypass, added upstream token project scope check.
  • SourceControlController: kept fork's single EditSourceControl call (it routes GitHub Apps internally), now passing $projectId.
  • Replaced fork's BelongsToProjectOrGlobal trait with upstream's HasProjectScopedQueries (superset, same getByProjectId).
  • Action signatures take upstream's ?int $projectId argument.

🤖 Generated with Claude Code

RichardAnderson and others added 11 commits August 17, 2026 23:51
…oy#1233)

* fix: resolve issue vitodeploy#1231

Co-authored-by: 9Insomnie <111763835+9Insomnie@users.noreply.github.com>

* fix: pre-commit checks

* fix: coderabbit findings

---------

Co-authored-by: 9Insomnie <111763835+9Insomnie@users.noreply.github.com>
…d run (vitodeploy#1234)

* fix: resolve backup problem where a server has been deleted

* fix: code rabbit review
Updated security support table to reflect changes in versions.
…er (vitodeploy#1249)

The wait loop used `continue` while the instance was not running yet, skipping
both `Sleep::sleep(10)` and the `$maxWait` decrement. An instance that never
became active kept the job in a tight loop, hammering the provider API forever.

Poll inside the bounded loop instead, and throw `SSHConnectionError` when the
server is still unreachable after the timeout, so the job fails and reports
installation-failed rather than hanging. The last connection error is carried
as the previous exception so a permanent auth or host-key failure is not hidden
behind the generic reachability message.
)

* [Fix] WebSocket handshake broken by guzzlehttp/psr7 3.x

`ServerNegotiator::handshake()` sets the `Sec-WebSocket-Version` header from
`getVersionNumber(): int`. guzzlehttp/psr7 3.x rejects non-string header
values, so every handshake aborted and no client could connect.

Introduce `HandshakeResponse`, a PSR-7 response that stringifies scalar header
values, plus a `HandshakeResponseFactory` for the negotiator to use instead of
Guzzle's `HttpFactory`.

* Cover withAddedHeader and migrate the database for the handshake tests

The tests inherit `TestCase` through the `Unit/*/` rule in `tests/Pest.php`,
and `TestCase::setUp()` creates a user, so the database has to be migrated.
Without `RefreshDatabase` the suite only passed against a database left over
from an earlier run; on CI, which starts from an empty file, both tests failed
in `setUp()`.

Split the scalar-stringification assertion in two so each override is named and
covered on its own. `withAddedHeader()` was untested, and it is what Ratchet
uses to append `Sec-WebSocket-Extensions` when permessage-deflate is
negotiated.
Conflicts resolved in favour of fork changes; upstream project-scope
security fix, backup failure isolation and install wait fix adopted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@fatihalp
fatihalp merged commit 8d0d432 into 4.x Oct 3, 2026
@fatihalp
fatihalp deleted the sync/upstream-4.1.1 branch October 28, 2026 11:01
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.

4 participants