<feed xmlns='http://www.w3.org/2005/Atom'>
<title>unit.git/src/wasm-wasi-component, branch 1.34.2-1</title>
<subtitle>Universal Web Application Server</subtitle>
<link rel='alternate' type='text/html' href='https://git.sigsegv.uk/unit.git/'/>
<entry>
<title>wasm-wc: Update crates</title>
<updated>2024-12-18T18:27:08+00:00</updated>
<author>
<name>Andrew Clayton</name>
<email>a.clayton@nginx.com</email>
</author>
<published>2024-12-18T04:13:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sigsegv.uk/unit.git/commit/?id=e812f15fc16a8f3b9dac74e4cef732df129815f3'/>
<id>e812f15fc16a8f3b9dac74e4cef732df129815f3</id>
<content type='text'>
Run 'cargo update' to get the latest version of the required crates in
preparation for the 1.34.0 release.

This resolves a dependabot notification regarding 'idna'.

Link: &lt;https://github.com/nginx/unit/security/dependabot/13&gt;
Signed-off-by: Andrew Clayton &lt;a.clayton@nginx.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Run 'cargo update' to get the latest version of the required crates in
preparation for the 1.34.0 release.

This resolves a dependabot notification regarding 'idna'.

Link: &lt;https://github.com/nginx/unit/security/dependabot/13&gt;
Signed-off-by: Andrew Clayton &lt;a.clayton@nginx.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>wasm-wc: Update to wasmtime 27.0.0</title>
<updated>2024-12-18T03:53:37+00:00</updated>
<author>
<name>Andrew Clayton</name>
<email>a.clayton@nginx.com</email>
</author>
<published>2024-12-12T23:03:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sigsegv.uk/unit.git/commit/?id=f5371e958e5296b95539d0529a6d06cb34944951'/>
<id>f5371e958e5296b95539d0529a6d06cb34944951</id>
<content type='text'>
For no real reason other than to be on the latest release for the next
release of Unit...

Signed-off-by: Andrew Clayton &lt;a.clayton@nginx.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
For no real reason other than to be on the latest release for the next
release of Unit...

Signed-off-by: Andrew Clayton &lt;a.clayton@nginx.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>wasm-wc: Update to wasmtime v26.0.1</title>
<updated>2024-11-07T16:23:37+00:00</updated>
<author>
<name>Andrew Clayton</name>
<email>a.clayton@nginx.com</email>
</author>
<published>2024-11-06T22:04:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sigsegv.uk/unit.git/commit/?id=e6519b9d97c5ad1de91901269cfefc1fc26b8e35'/>
<id>e6519b9d97c5ad1de91901269cfefc1fc26b8e35</id>
<content type='text'>
This fixes an issue we had with wasm-wasi-component failing to load
components with

  2024/11/06 21:08:50 [alert] 107196#107196 failed to create initial state

  Caused by:
      0: failed to compile component
      1: WebAssembly translation error
      2: Invalid input WebAssembly code at offset 15936: zero byte expected

Which was a symptom of
&lt;https://github.com/bytecodealliance/wasmtime/issues/9130&gt;

Closes: https://github.com/nginx/unit/issues/1477
Signed-off-by: Andrew Clayton &lt;a.clayton@nginx.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This fixes an issue we had with wasm-wasi-component failing to load
components with

  2024/11/06 21:08:50 [alert] 107196#107196 failed to create initial state

  Caused by:
      0: failed to compile component
      1: WebAssembly translation error
      2: Invalid input WebAssembly code at offset 15936: zero byte expected

Which was a symptom of
&lt;https://github.com/bytecodealliance/wasmtime/issues/9130&gt;

Closes: https://github.com/nginx/unit/issues/1477
Signed-off-by: Andrew Clayton &lt;a.clayton@nginx.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>wasm-wc: Bump the wasmtime crate from 24.0.0 to 24.0.1</title>
<updated>2024-10-09T21:47:07+00:00</updated>
<author>
<name>dependabot[bot]</name>
<email>49699333+dependabot[bot]@users.noreply.github.com</email>
</author>
<published>2024-10-09T19:14:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sigsegv.uk/unit.git/commit/?id=cc2a1cc3651593fbc5ede99ceab8161c364998f3'/>
<id>cc2a1cc3651593fbc5ede99ceab8161c364998f3</id>
<content type='text'>
Bumps &lt;https://github.com/bytecodealliance/wasmtime&gt; from 24.0.0 to
24.0.1.

Fixes:

  a runtime crash when combining tail-calls with host imports that
  capture a stack trace or trap. GHSA-q8hx-mm92-4wvg

  a race condition could lead to WebAssembly control-flow integrity and
  type safety violations. GHSA-7qmx-3fpx-r45m

Link: Release notes &lt;https://github.com/bytecodealliance/wasmtime/releases&gt;
Link: Changelog &lt;https://github.com/bytecodealliance/wasmtime/blob/main/docs/WASI-some-possible-changes.md&gt;
Link: Commits &lt;https://github.com/bytecodealliance/wasmtime/compare/v24.0.0...v24.0.1&gt;
Signed-off-by: dependabot[bot] &lt;support@github.com&gt;
[ Tweaked commit message/subject - Andrew ]
Signed-off-by: Andrew Clayton &lt;a.clayton@nginx.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Bumps &lt;https://github.com/bytecodealliance/wasmtime&gt; from 24.0.0 to
24.0.1.

Fixes:

  a runtime crash when combining tail-calls with host imports that
  capture a stack trace or trap. GHSA-q8hx-mm92-4wvg

  a race condition could lead to WebAssembly control-flow integrity and
  type safety violations. GHSA-7qmx-3fpx-r45m

Link: Release notes &lt;https://github.com/bytecodealliance/wasmtime/releases&gt;
Link: Changelog &lt;https://github.com/bytecodealliance/wasmtime/blob/main/docs/WASI-some-possible-changes.md&gt;
Link: Commits &lt;https://github.com/bytecodealliance/wasmtime/compare/v24.0.0...v24.0.1&gt;
Signed-off-by: dependabot[bot] &lt;support@github.com&gt;
[ Tweaked commit message/subject - Andrew ]
Signed-off-by: Andrew Clayton &lt;a.clayton@nginx.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>wasm-wc: Enable environment inheritance</title>
<updated>2024-09-04T21:50:59+00:00</updated>
<author>
<name>Robbie McKinstry</name>
<email>thesnowmancometh@gmail.com</email>
</author>
<published>2024-08-28T02:00:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sigsegv.uk/unit.git/commit/?id=56c237b347fd0ff3fa182663cbc965e05b158e39'/>
<id>56c237b347fd0ff3fa182663cbc965e05b158e39</id>
<content type='text'>
While the C based wasm language module inherits the process environment
the Rust based wasm-wasi-component language module did not.

One upshot of this is that with wasm-wasi-component you don't get access
to any environment variables specified in the Unit configuration.

wasm-wasi-component was based on wasmtime 17.0.0. This capability wasn't
added to the wasmtime-crate until version 20.0.0.

Now that wasm-wasi-component has been updated to a newer wasmtime-crate
we can enable this functionality.

Closes: https://github.com/nginx/unit/issues/1312
[ Commit message - Andrew ]
Signed-off-by: Andrew Clayton &lt;a.clayton@nginx.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
While the C based wasm language module inherits the process environment
the Rust based wasm-wasi-component language module did not.

One upshot of this is that with wasm-wasi-component you don't get access
to any environment variables specified in the Unit configuration.

wasm-wasi-component was based on wasmtime 17.0.0. This capability wasn't
added to the wasmtime-crate until version 20.0.0.

Now that wasm-wasi-component has been updated to a newer wasmtime-crate
we can enable this functionality.

Closes: https://github.com/nginx/unit/issues/1312
[ Commit message - Andrew ]
Signed-off-by: Andrew Clayton &lt;a.clayton@nginx.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>wasm-wc: bump wasmtime to v24</title>
<updated>2024-09-04T21:50:59+00:00</updated>
<author>
<name>Ava Hahn</name>
<email>a.hahn@f5.com</email>
</author>
<published>2024-08-28T19:50:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sigsegv.uk/unit.git/commit/?id=011071aaa1809f63abdc4287c80843c8d6e7e179'/>
<id>011071aaa1809f63abdc4287c80843c8d6e7e179</id>
<content type='text'>
Signed-off-by: Ava Hahn &lt;a.hahn@f5.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Ava Hahn &lt;a.hahn@f5.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>wasm-wc: Bump the rustls crate from 0.21.10 to 0.21.11</title>
<updated>2024-04-19T21:30:49+00:00</updated>
<author>
<name>dependabot[bot]</name>
<email>49699333+dependabot[bot]@users.noreply.github.com</email>
</author>
<published>2024-04-19T19:54:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sigsegv.uk/unit.git/commit/?id=237a26aafc4f2572668d0063228929f482073691'/>
<id>237a26aafc4f2572668d0063228929f482073691</id>
<content type='text'>
Bumps &lt;https://github.com/rustls/rustls&gt; from 0.21.10 to 0.21.11.

"This release corrects a denial-of-service condition in
rustls::ConnectionCommon::complete_io(), reachable via network input. If
a close_notify alert is received during a handshake, complete_io() did
not terminate. Callers which do not call complete_io() are not
affected."

The wasm-wasi-component language module is not effected by this as it
doesn't handle client connections, Unit does.

Link: Release notes &lt;https://github.com/rustls/rustls/releases&gt;
Link: Commits &lt;https://github.com/rustls/rustls/compare/v/0.21.10...v/0.21.11&gt;
Signed-off-by: dependabot[bot] &lt;support@github.com&gt;
Reviewed-by: Andrew Clayton &lt;a.clayton@nginx.com&gt;
[ Tweaked commit message/subject - Andrew ]
Signed-off-by: Andrew Clayton &lt;a.clayton@nginx.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Bumps &lt;https://github.com/rustls/rustls&gt; from 0.21.10 to 0.21.11.

"This release corrects a denial-of-service condition in
rustls::ConnectionCommon::complete_io(), reachable via network input. If
a close_notify alert is received during a handshake, complete_io() did
not terminate. Callers which do not call complete_io() are not
affected."

The wasm-wasi-component language module is not effected by this as it
doesn't handle client connections, Unit does.

Link: Release notes &lt;https://github.com/rustls/rustls/releases&gt;
Link: Commits &lt;https://github.com/rustls/rustls/compare/v/0.21.10...v/0.21.11&gt;
Signed-off-by: dependabot[bot] &lt;support@github.com&gt;
Reviewed-by: Andrew Clayton &lt;a.clayton@nginx.com&gt;
[ Tweaked commit message/subject - Andrew ]
Signed-off-by: Andrew Clayton &lt;a.clayton@nginx.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Wasm-wc: Bump the h2 crate from 0.4.2 to 0.4.4</title>
<updated>2024-04-09T02:15:35+00:00</updated>
<author>
<name>dependabot[bot]</name>
<email>49699333+dependabot[bot]@users.noreply.github.com</email>
</author>
<published>2024-04-05T15:08:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sigsegv.uk/unit.git/commit/?id=d494d2ebb71ab45781ec7c8cf8b80e6892ce65a8'/>
<id>d494d2ebb71ab45781ec7c8cf8b80e6892ce65a8</id>
<content type='text'>
Bumps h2 &lt;https://github.com/hyperium/h2&gt; from 0.4.2 to 0.4.4.

Limit number of CONTINUATION frames for misbehaving connections.

Link: Changelog &lt;https://github.com/hyperium/h2/blob/master/CHANGELOG.md&gt;
Link: Commits &lt;https://github.com/hyperium/h2/compare/v0.4.2...v0.4.4&gt;
Signed-off-by: dependabot[bot] &lt;support@github.com&gt;
Reviewed-by: Andrew Clayton &lt;a.clayton@nginx.com&gt;
[ Tweaked commit message/subject - Andrew ]
Signed-off-by: Andrew Clayton &lt;a.clayton@nginx.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Bumps h2 &lt;https://github.com/hyperium/h2&gt; from 0.4.2 to 0.4.4.

Limit number of CONTINUATION frames for misbehaving connections.

Link: Changelog &lt;https://github.com/hyperium/h2/blob/master/CHANGELOG.md&gt;
Link: Commits &lt;https://github.com/hyperium/h2/compare/v0.4.2...v0.4.4&gt;
Signed-off-by: dependabot[bot] &lt;support@github.com&gt;
Reviewed-by: Andrew Clayton &lt;a.clayton@nginx.com&gt;
[ Tweaked commit message/subject - Andrew ]
Signed-off-by: Andrew Clayton &lt;a.clayton@nginx.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Wasm-wc: Fix application restarts</title>
<updated>2024-03-14T16:09:31+00:00</updated>
<author>
<name>Andrew Clayton</name>
<email>a.clayton@nginx.com</email>
</author>
<published>2024-03-07T16:16:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sigsegv.uk/unit.git/commit/?id=e75f8d5db200c77707478b558c3ce5e1586ab3e1'/>
<id>e75f8d5db200c77707478b558c3ce5e1586ab3e1</id>
<content type='text'>
Liam reported a problem when trying to restart wasm-wasi-component based
applications using the /control/applications/APPLICATION_NAME/restart
endpoint.

The application would become unresponsive.

What was happening was the old application process(es) weren't
exit(3)ing and so while we were starting new application processes, the
old ones were still hanging around in a non-functioning state.

When we are terminating an application it must call exit(3).

So that's what we do. We use the return value of nxt_unit_run() as the
exit status.

Due to exit(3)ing we also need to now explicitly handle the return on
error case.

Reported-by: Liam Crilly &lt;liam@nginx.com&gt;
Fixes: 20ada4b5c ("Wasm-wc: Core of initial Wasm component model language module support")
Closes: https://github.com/nginx/unit/issues/1179
Tested-by: Liam Crilly &lt;liam@nginx.com&gt;
Tested-by: Danielle De Leo &lt;d.deleo@f5.com&gt;
Co-developed-by: Dan Callahan &lt;d.callahan@f5.com&gt;
Signed-off-by: Dan Callahan &lt;d.callahan@f5.com&gt;
Signed-off-by: Andrew Clayton &lt;a.clayton@nginx.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Liam reported a problem when trying to restart wasm-wasi-component based
applications using the /control/applications/APPLICATION_NAME/restart
endpoint.

The application would become unresponsive.

What was happening was the old application process(es) weren't
exit(3)ing and so while we were starting new application processes, the
old ones were still hanging around in a non-functioning state.

When we are terminating an application it must call exit(3).

So that's what we do. We use the return value of nxt_unit_run() as the
exit status.

Due to exit(3)ing we also need to now explicitly handle the return on
error case.

Reported-by: Liam Crilly &lt;liam@nginx.com&gt;
Fixes: 20ada4b5c ("Wasm-wc: Core of initial Wasm component model language module support")
Closes: https://github.com/nginx/unit/issues/1179
Tested-by: Liam Crilly &lt;liam@nginx.com&gt;
Tested-by: Danielle De Leo &lt;d.deleo@f5.com&gt;
Co-developed-by: Dan Callahan &lt;d.callahan@f5.com&gt;
Signed-off-by: Dan Callahan &lt;d.callahan@f5.com&gt;
Signed-off-by: Andrew Clayton &lt;a.clayton@nginx.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Wasm-wc: Bump the mio crate from 0.8.10 to 0.8.11</title>
<updated>2024-03-11T12:09:55+00:00</updated>
<author>
<name>dependabot[bot]</name>
<email>49699333+dependabot[bot]@users.noreply.github.com</email>
</author>
<published>2024-03-04T21:34:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sigsegv.uk/unit.git/commit/?id=6b13857142782167a544c55e67e292e5e30230fa'/>
<id>6b13857142782167a544c55e67e292e5e30230fa</id>
<content type='text'>
Bumps mio &lt;https://github.com/tokio-rs/mio&gt; from 0.8.10 to 0.8.11.

Fixes receiving IOCP events after deregistering a Windows named pipe.

Not that that effects Unit...

Link: &lt;https://github.com/nginx/unit/security/dependabot/1&gt;
Link: Changelog &lt;https://github.com/tokio-rs/mio/blob/master/CHANGELOG.md&gt;
Link: Commits &lt;https://github.com/tokio-rs/mio/compare/v0.8.10...v0.8.11&gt;
Signed-off-by: dependabot[bot] &lt;support@github.com&gt;
Reviewed-by: Andrew Clayton &lt;a.clayton@nginx.com&gt;
[ Tweaked commit message/subject - Andrew ]
Signed-off-by: Andrew Clayton &lt;a.clayton@nginx.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Bumps mio &lt;https://github.com/tokio-rs/mio&gt; from 0.8.10 to 0.8.11.

Fixes receiving IOCP events after deregistering a Windows named pipe.

Not that that effects Unit...

Link: &lt;https://github.com/nginx/unit/security/dependabot/1&gt;
Link: Changelog &lt;https://github.com/tokio-rs/mio/blob/master/CHANGELOG.md&gt;
Link: Commits &lt;https://github.com/tokio-rs/mio/compare/v0.8.10...v0.8.11&gt;
Signed-off-by: dependabot[bot] &lt;support@github.com&gt;
Reviewed-by: Andrew Clayton &lt;a.clayton@nginx.com&gt;
[ Tweaked commit message/subject - Andrew ]
Signed-off-by: Andrew Clayton &lt;a.clayton@nginx.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
