Skip to content

ENT-14104: Added GETPATCH protocol command for serving leech2 patches#6163

Open
larsewi wants to merge 2 commits into
cfengine:masterfrom
larsewi:leech2-patch-stream
Open

ENT-14104: Added GETPATCH protocol command for serving leech2 patches#6163
larsewi wants to merge 2 commits into
cfengine:masterfrom
larsewi:leech2-patch-stream

Conversation

@larsewi

@larsewi larsewi commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

The hub sends 'GETPATCH ' over the established TLS connection, and the server replies with a leech2 patch using a new patch stream API, which reuses the wire format from the file stream protocol. The patch is created by an enterprise hook; CFEngine Community refuses the request. This introduces protocol version 5 - "leech2".

Ticket: ENT-14104

Together with:

Comment thread cf-serverd/cf-serverd-enterprise-stubs.c Fixed
Comment thread cf-serverd/server_tls.c Dismissed
@larsewi larsewi force-pushed the leech2-patch-stream branch 2 times, most recently from 6ae1b0d to 7023be6 Compare June 5, 2026 14:48
@larsewi

larsewi commented Jun 5, 2026

Copy link
Copy Markdown
Contributor Author

@cf-bottom Jenkins please :)

@larsewi larsewi marked this pull request as ready for review June 5, 2026 15:13
@larsewi larsewi force-pushed the leech2-patch-stream branch from 7023be6 to 55294e4 Compare June 5, 2026 16:01
@cfengine cfengine deleted a comment from cf-bottom Jun 5, 2026
@cf-bottom

Copy link
Copy Markdown

Comment thread cf-testd/cf-testd.c Fixed
@larsewi larsewi force-pushed the leech2-patch-stream branch from 55294e4 to 4054ba7 Compare June 5, 2026 17:03

@olehermanse olehermanse left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good overall. Some comments / suggestions below.

Comment thread cf-serverd/server_tls.c Outdated
Comment thread libcfnet/patch_stream.c
Comment thread cf-serverd/server_tls.c Outdated
Comment thread cf-serverd/server_tls.c Outdated
Comment thread libcfnet/patch_stream.c
Comment thread libcfnet/patch_stream.h Outdated
Comment thread cf-serverd/server_tls.c Outdated
@larsewi larsewi force-pushed the leech2-patch-stream branch from 4054ba7 to c60caf3 Compare June 18, 2026 14:52
Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
@larsewi larsewi force-pushed the leech2-patch-stream branch from c60caf3 to d6ab0ee Compare June 19, 2026 12:31
The hub sends 'GETPATCH <hash>' over the established TLS connection, and
the server replies with a leech2 patch using a new patch stream API,
which reuses the wire format from the file stream protocol. The patch is
created by an enterprise hook; CFEngine Community refuses the request.
This introduces protocol version 5 - "leech2".

Ticket: ENT-14104
Changelog: Title
Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
@larsewi larsewi force-pushed the leech2-patch-stream branch from d6ab0ee to 0e8e37b Compare June 19, 2026 12:33
@larsewi

larsewi commented Jun 19, 2026

Copy link
Copy Markdown
Contributor Author

@cf-bottom Jenkins please :)

@cf-bottom

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants