[Nut-upsuser] Fwd: [networkupstools/nut] Hide 'Init SSL without certificate database' message for upsc (PR #1662)

Jim Klimov jimklimov at gmail.com
Fri Sep 16 07:42:13 BST 2022


Hello all,

  Here's a PR I want to ask community about: should NUT clients like upsc
report (log!) or hide the infamous 'Init SSL without certificate database'
message?

  On one hand, it is a reminder that the setup is insecure (plaintext
protocol, might be in an externally provided tunnel but we don't know
that). On another, it is fairly annoying and if it does clutter
syslog/journal from cron jobs etc. - is also somewhat toxic (causes I/O,
uses space) if deployment owner is not going to do anything about it anyway
for whatever reason (LAN, VPN, SSH tunnel...).

  That PR proposes to hide the message by default, with debug level 1. One
alternative is to use debug level 0 so it always pops up on stderr like
now, but does not hit the syslog.

  WDYT?

  If nobody vetoes it strongly, I plan to merge it in say a week.

Jim

---------- Forwarded message ---------
From: tofurky <notifications at github.com>
Date: Fri, Sep 16, 2022, 01:07
Subject: [networkupstools/nut] Hide 'Init SSL without certificate database'
message for upsc (PR #1662)
To: networkupstools/nut <nut at noreply.github.com>
Cc: Subscribed <subscribed at noreply.github.com>


This can clutter up logs on things that call 'upsc', such as Munin plugins.
Switch it to upsdebugx() so it's not always output to stderr.
------------------------------
You can view, comment on, or merge this pull request online at:

  https://github.com/networkupstools/nut/pull/1662
Commit Summary

   - 613185d
   <https://github.com/networkupstools/nut/pull/1662/commits/613185d4be1240531f46c60f870a2c219ca435b7>
   Hide 'Init SSL without certificate database' message for upsc

File Changes

(1 file <https://github.com/networkupstools/nut/pull/1662/files>)

   - *M* clients/upsclient.c
   <https://github.com/networkupstools/nut/pull/1662/files#diff-821fd001277fb11e909bb718c7412b6086321d302ced2868a777c28e61442855>
   (4)

Patch Links:

   - https://github.com/networkupstools/nut/pull/1662.patch
   - https://github.com/networkupstools/nut/pull/1662.diff

—
Reply to this email directly, view it on GitHub
<https://github.com/networkupstools/nut/pull/1662>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAMPTFBHVWPFOMGUZFWVB3LV6OT3RANCNFSM6AAAAAAQN2WRTQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: <networkupstools/nut/pull/1662 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/nut-upsuser/attachments/20220916/ffdfb64f/attachment.htm>


More information about the Nut-upsuser mailing list