Internet-Draft HotReload November 2025
Ahrweiler Expires 9 May 2026 [Page]
Workgroup:
Network Working Group
Internet-Draft:
draft-ahrweiler-hotreload-00
Published:
Intended Status:
Experimental
Expires:
Author:
C. Ahrweiler
foxyfy.net

Passive Hot Reload for Web Servers

Abstract

This document defines a passive, file-based mechanism for automatic hot reloading of configuration files and TLS certificates in web servers. Unlike traditional web servers that require explicit reload commands, this design uses file modification time (mtime) to detect changes and reloads in memory automatically.

Status of This Memo

This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.

Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet-Drafts is at https://datatracker.ietf.org/drafts/current/.

Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."

This Internet-Draft will expire on 9 May 2026.

Table of Contents

1. Introduction

Most web servers require manual intervention or explicit signals to reload configuration or TLS certificates. This document presents a passive strategy, based entirely on filesystem modification times, to perform reloads automatically and safely.

2. Mechanism

At startup, the server stores the current mtime of its configuration and TLS certificate files. A periodic timer (e.g. every 10 minutes) checks if those mtimes have changed. If so, the server reloads the updated configuration and certificates in memory without affecting active connections.

3. Security Considerations

Ensure proper file permissions to avoid unauthorized tampering. Always validate config and certificate contents before applying them. Avoid race conditions when reloading.

4. Reference Implementation

The FoxyFy web server implements this mechanism in Go. See [FOXYFY-SPEC] for full source and deployment notes.

5. Informative References

[FOXYFY-SPEC]
foxyfy.net, "FoxyFy Hot Reload (Full Specification)", URL https://foxyfy.net/spec/draft-foxyfy-hotreload-00.txt, .

Author's Address

Chris Ahrweiler
foxyfy.net