Skip to Content
Next Hat
Next Hat / Blog

Introducing Nanocl 0.17

We’re excited to announce the release of Nanocl 0.17! This version focuses on developer productivity and modern networking: new CLI commands and enhancements, distributed coordination in the daemon, and experimental HTTP/3 support in ncproxy. It also brings significant improvements to Statefile authoring with better argument parsing, metadata, and a built-in manual renderer.

Highlights of Nanocl 0.17

  • CLI boosts: multi-target nanocl logs, brand-new nanocl stats, and improved Statefile commands including state man, state render, and smarter args parsing.
  • Platform resilience: nanocld introduces a distributed mutex to prevent duplicated tasks across nodes and securely syncs DB certs via secrets.
  • Modern edge: ncproxy adds HSTS configuration from rules and experimental HTTP/3 support with tunable options.

New: Official Nanocl Registry

We launched the official Nanocl Registry .
It hosts a curated catalog of prebuilt statefiles you can use to quickly deploy common stacks.

Nanocl registry

💡

View manual for any statefile from your terminal: nanocl man -s <statefile-source>


Component Changes

nanocl 0.17.0

  • Added:
    • nanocl stats to get stats of multiple processes by name (thanks n0tank3sh ).
    • nanocl state man to get the manual of the Statefile.
    • nanocl state render to render a Statefile with the current context variables.
    • nanocl logs now accept multiple names.
    • Better Statefile arguments parsing with required, multiple and description fields.
    • Statefile metadata to enhance the manual of a statefile.
    • nanocl secret patch to update a secret without having to remove it.

nanocld 0.17.0

  • Added:
    • Endpoint GET /process/{name}/stats to get process stats by it’s name by n0tank3sh 
    • Save database cert into a secret for multinode exchange and sync.
    • Distributed mutex lock to avoid node to run the same task at the same time.

ncproxy 0.14.0

  • Added:
    • Hsts configuration from the proxy rule by n0tank3sh 
    • Http3 experimental support

HTTP/3 and HSTS

Since nginx now come with HTTP/3 support, we have added experimental support for HTTP/3 in the proxy rule. This includes options to enable HTTP/3 on a per-domain basis. We also added HSTS (HTTP Strict Transport Security) configuration options to enhance security by enforcing HTTPS connections.

Example of a Statefile to deploy a simple cargo with HTTP/3 support:

ApiVersion: v0.17 Secrets: - Name: tls.secret Kind: nanocl.io/tls Data: Certificate: | -----BEGIN CERTIFICATE----- MIIDETCCAfkCFFOJVQs8PxWlcJQD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C7HSJJFCtWx9V Aj7VEOgnAwKBgGAXWdshVvc+9L1RfDKqRHTVv09+jbtGoahdq2c0b8/omKDjRoEg mi3e79gA3vReuW2y9UaT/B9zMihp1FBPREWZGGzhLvwGq7Kqoua1pb/+rskTZ8xQ knv9jxMoLDwACEZWSnSMiLf2bA3ewtV1FidoAus/EZDLMovWXjEFXiGhAoGBAIGb YhGCzia7g3CbTMnVpY+nhwAz5qKdFpJ3IjbYZM0vT1mcsjHX1bXfi5Qj/LG16Nro AgfnKGlNmXhk3EqnZmOMq5sJ7Izis+OAUzJtTNC+VFXSYH2pWOQ+lyKVFIclogvF 74fLrw6CRIZGeYdDEblD/pifRFbQq1MC9/tiJBlxAoGAAo/XDJSTRlcrJuutk5jG CZPG5LBlxvdUbsuu2vZ7XIoWp3BvuK+yM8m9kEQgl3x8F3bqRjoQmMN6cImMYC2W F02Hw2EcWWx4w+liGjDy8/rcb9KfYTht3Q3W9RYYPZwn+hg4pmGVb4+yOqd183QQ Ug0MvH79P7CUpecFPJliDME= -----END PRIVATE KEY----- Resources: - Name: secret-tls.com Kind: ncproxy.io/rule Metadata: Cert: certbot Data: Rules: - Domain: secret-tls.com Network: All Ssl: tls.secret Hsts: Recommended Http3: true Locations: - Path: / Target: Key: secret-tls.global.c Port: 9000 Cargoes: - Name: secret-tls Container: Image: ghcr.io/next-hat/nanocl-get-started:latest Env: - APP=SECRET_TLS

Refer to the proxy rule documentation for all HTTP/3 and HSTS options.


Statefile Manuals

You can now display a manual for your Statefile directly in the terminal. Using the new nanocl state man command, you can display a comprehensive manual that includes metadata, argument descriptions, and usage examples.

Statefile Man

Example of a statefile to display a nice manual using the nanocl state man command:

ApiVersion: v0.17 Metadata: Name: Nginx with Certbot SSL Tags: - cargo - nginx - certbot - ssl - proxy About: Example of an Nginx cargo with Certbot managed SSL certificates. LongAbout: | This example demonstrates how to create an Nginx cargo with SSL certificates managed by Certbot. The cargo is configured to always pull the latest Nginx image and automatically handle SSL certificate issuance and renewal. Args: - Name: name Kind: String Required: true Description: Name of the cargo to create. - Name: testtt Kind: String Description: sample test - Name: multiple Kind: String Multiple: true Description: sample multiple - Name: boolean Kind: Boolean Description: sample boolean Namespace: cargo-example Cargoes: - Name: ${{ Args.name }} ImagePullPolicy: Always Metadata: Certbot: managed Container: Image: nginx:latest

Refer to the Statefile documentation for all available metadata and argument options.


What’s Next?

We’ll continue refining multi-node operations, expanding Statefile tooling, and iterating on HTTP/3 to graduate it from experimental. As always, feedback is welcome - join the discussion on GitHub .

Happy deploying!

Nanocl Team

Last updated on