[Chrony] Add GPS/PPS support and NTS server certificate support

Open
#5,938 0 comments 1 reaction 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
php
Domain
backend

Research direction

Read the Chrony plugin files and its existing GUI configuration flow, then compare them with the NTPd plugin's certificate and reference clock options. The request covers GPS configuration and status, PPS settings, and NTS server certificate selection, so map how each setting reaches Chrony's configuration and how status is displayed. Done means all requested options can be configured through the GUI and work with Chrony.

Written by the indexing model from the issue text.

Description

Important notices
Before you add a new report, we ask you kindly to acknowledge the following:

Is your feature request related to a problem? Please describe.
The current state of Chrony in OPNsense doesn't include NTS client support. And It lack an integrated way to configure GPS with PPS as a reference clock through GUI.

This make it so to have those ability it needed to manually modify Chrony files.

Describe the solution you'd like
The following enhancements to the Chrony plugin:

  • GPS reference clock support.
    Adding GUI config option for GPS receivers:

    • Ability to enable/disable GPS clock.
    • Selecting the serial port.
    • Configuring the baud rate of said serial port.
    • Ability to see GPS receiver status and information.
    • GPS reference id.
  • PPS support for the GPS clock.
    Adding GUI config option for PPS receivers:

    • Enable / disable PPS.
    • Selecting PPS device.
    • Configuring the PPS rising/falling.
    • PPS reference id.
  • NTS server support.
    Adding GUI ability to configure Chrony as a NTS server:

    • Enable/Disable NTS servers functionality.
    • Selecting an existing certificate from the Trust store to use.

Describe alternatives you've considered
Using Ntpd but it a less modern alternative compared to Chrony.
Ntpd (if think?) doesn't provide NTS functionality.
Manually configuring Chrony config file.

Additional context
Possibly this could eventually replace NTPd since nearly (i think) all functionality would be equal, and Chrony provide better faster synchronization and accuracy, and support NTS. Or at the very least make the Chrony plugins on par with NTPd.

Dominant language
PHP
Stars
1.2k
Forks
926
Avg merge
1d 10h
Merged PRs (30d)
25

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from opnsense/plugins

All issues in opnsense/plugins

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.