Automatic Updates #26

Merged
zaprit merged 19 commits from FeTetra/patchwork:updates into main 2026-08-16 20:49:24 +00:00
Owner

This PR implements a simple automatic update system and some configuration changes to add options for changing the update server and enabling/disabling updates (as well as an option to enable/disable patching the XXTEA network key).

The client will send an HTTP header called X-Patchwork-Client-Version which is it's own version number, and expects the server to send an updated SPRX module and a hash of that file in a header called X-Patchwork-Sprx-Hash. It should receive a 200 if the server has an update to send, or a 204 if the client's version is great enough. Any other response is treated as an error.

This PR implements a simple automatic update system and some configuration changes to add options for changing the update server and enabling/disabling updates (as well as an option to enable/disable patching the XXTEA network key). The client will send an HTTP header called X-Patchwork-Client-Version which is it's own version number, and expects the server to send an updated SPRX module and a hash of that file in a header called X-Patchwork-Sprx-Hash. It should receive a 200 if the server has an update to send, or a 204 if the client's version is great enough. Any other response is treated as an error.
Owner

Pipelines as Code CI is skipping this commit.
User FeTetra is not allowed to trigger CI via pull_request in this repo.

Pipelines as Code CI is skipping this commit. User FeTetra is not allowed to trigger CI via pull_request in this repo.
Remove unused variable
Some checks are pending
Pipelines as Code CI Pending approval, waiting for an /ok-to-test
82a261fb27
Owner

Pipelines as Code CI is skipping this commit.
User FeTetra is not allowed to trigger CI via pull_request in this repo.

Pipelines as Code CI is skipping this commit. User FeTetra is not allowed to trigger CI via pull_request in this repo.
Owner

/ok-to-test

/ok-to-test
Merge branch 'main' into updates
Some checks are pending
Pipelines as Code CI Pending approval, waiting for an /ok-to-test
7e507334ca
Owner

Pipelines as Code CI is skipping this commit.
User zaprit is not allowed to trigger CI via pull_request in this repo.

Pipelines as Code CI is skipping this commit. User zaprit is not allowed to trigger CI via pull_request in this repo.
Owner

/ok-to-test

/ok-to-test
Owner

/ok-to-test

/ok-to-test
zaprit closed this pull request 2026-08-16 19:42:30 +00:00
Owner

Pipelines as Code CI is skipping this commit.
User zaprit is not allowed to trigger CI via pull_request_closed in this repo.

Pipelines as Code CI is skipping this commit. User zaprit is not allowed to trigger CI via pull_request_closed in this repo.
zaprit reopened this pull request 2026-08-16 19:42:33 +00:00
Owner

Pipelines as Code CI is skipping this commit.
User zaprit is not allowed to trigger CI via pull_request in this repo.

Pipelines as Code CI is skipping this commit. User zaprit is not allowed to trigger CI via pull_request in this repo.
merge into
Some checks are pending
Pipelines as Code CI Pending approval, waiting for an /ok-to-test
3b59d7195c
Owner

Pipelines as Code CI is skipping this commit.
User FeTetra is not allowed to trigger CI via pull_request in this repo.

Pipelines as Code CI is skipping this commit. User FeTetra is not allowed to trigger CI via pull_request in this repo.
Owner

/ok-to-test

/ok-to-test
Merge branch 'main' into updates
All checks were successful
Pipelines as Code CI / patchwork-pr Success
1a18be2951
Owner

Pipelines as Code CI/patchwork-pr-q9vmd is running.

Starting Pipelinerun patchwork-pr-q9vmd in namespace hugespaceship-ci

You can monitor the execution using the Not configured PipelineRun viewer or through the command line by
using the tkn CLI with the following command:

tkn pr logs -n hugespaceship-ci patchwork-pr-q9vmd -f

Pipelines as Code CI/patchwork-pr-q9vmd is running. Starting Pipelinerun <b>[patchwork-pr-q9vmd](https://dashboard.is.not.configured)</b> in namespace <b>hugespaceship-ci</b> You can monitor the execution using the [Not configured](https://dashboard.is.not.configured) PipelineRun viewer or through the command line by using the [tkn](https://tekton.dev/docs/cli/#installation) CLI with the following command: <code>tkn pr logs -n hugespaceship-ci patchwork-pr-q9vmd -f</code>
Owner

Pipelines as Code CI/patchwork-pr-q9vmd has successfully validated your commit.


Task Statuses:

StatusDurationName
Succeeded 32 seconds

fetch

Succeeded 20 seconds

build

Succeeded 18 seconds

go-build

Succeeded 7 seconds

patch-generate

Succeeded 9 seconds

upload-artifacts

Succeeded 7 seconds

cleanup

Pipelines as Code CI/patchwork-pr-q9vmd has <b>successfully</b> validated your commit. <ul> <li><b>Namespace</b>: <a href="https://dashboard.is.not.configured">hugespaceship-ci</a></li> <li><b>PipelineRun:</b> <a href="https://dashboard.is.not.configured">patchwork-pr-q9vmd</a></li> </ul> <hr> <h4>Task Statuses:</h4> <table> <tr><th>Status</th><th>Duration</th><th>Name</th></tr> <tr> <td>Succeeded</td> <td>32 seconds</td><td> [fetch](https://dashboard.is.not.configured) </td></tr> <tr> <td>Succeeded</td> <td>20 seconds</td><td> [build](https://dashboard.is.not.configured) </td></tr> <tr> <td>Succeeded</td> <td>18 seconds</td><td> [go-build](https://dashboard.is.not.configured) </td></tr> <tr> <td>Succeeded</td> <td>7 seconds</td><td> [patch-generate](https://dashboard.is.not.configured) </td></tr> <tr> <td>Succeeded</td> <td>9 seconds</td><td> [upload-artifacts](https://dashboard.is.not.configured) </td></tr> <tr> <td>Succeeded</td> <td>7 seconds</td><td> [cleanup](https://dashboard.is.not.configured) </td></tr> </table>
zaprit merged commit b0fc40ac5e into main 2026-08-16 20:49:24 +00:00
Sign in to join this conversation.
No description provided.