Skip to content

Commit f07f208

Browse files
authored
Merge 34ddb93 into db633d1
2 parents db633d1 + 34ddb93 commit f07f208

58 files changed

Lines changed: 3679 additions & 213 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

NEWS.adoc

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,31 @@ https://github.com/networkupstools/nut/milestone/13
110110
allows to pass the `certfile` argument needed for OpenSSL builds. [#3331]
111111
* The `libupsclient` (C) and `libnutclient` (C++) API were updated to
112112
report the ability to check `CERTIDENT` information. [#3331]
113+
* Introduced support for "authconf" files to store and convey NUT client
114+
authentication details. [issue #3329]
115+
116+
- `upsc`, `upscmd`, `upsrw` command-line client updates:
117+
* Enabled support for `nutauth.conf` files to provide credentials and/or
118+
SSL settings in the client which previously only did best-effort attempts
119+
at secure communications without an individual certificate, and only
120+
anonymously for reading. The new `-A filename` option defaults to trying
121+
to use a `nutauth.conf` file (if found in one of the default locations)
122+
but not failing if one is not usable; specific values can require use of
123+
such a file (`default`) or to not even try reading one (`none`).
124+
[issues #3329, #3411]
125+
126+
- `upslog` client/tool updates:
127+
* Added support for best-effort use of `nutauth.conf` files from default
128+
locations or via `-A` option, as described above. Since this client
129+
can establish multiple connections, keep in mind that currently it
130+
can only identify itself with some one (first seen) client certificate,
131+
if `CERTIDENT` settings are used. Multiple `CERTHOST` directives for
132+
specially trusted servers can be used. [#3329]
133+
134+
- `upsstats`, `upsset`, `upsimage` CGI client updates:
135+
* Added support for best-effort use of `nutauth.conf` files from default
136+
locations described above (no way to choose the location, other than
137+
by web-server environment variables for CGI calls). [#3329]
113138

114139
- `upsmon` client updates:
115140
* Introduced support for `CERTFILE` option, so the client can identify
@@ -134,6 +159,9 @@ https://github.com/networkupstools/nut/milestone/13
134159
much later (tell the sysadmin to increase `ulimit` or set up a more
135160
conservative `MAXCONN`). If there is a separate soft and hard limit,
136161
and `MAXCONN` exceeds the soft limit, try to raise the bar. [issue #3365]
162+
* If SSL configuration was provided, but the server failed to apply some
163+
aspect of that, it should now abort with an explanation (and not proceed
164+
with insecure start-up like it could do before). [issue #3331, PR #3435]
137165

138166
- Recipes, CI and helper script updates not classified above:
139167
* Introduced `ci_build.sh` settings and respective CI workflow settings

UPGRADING.adoc

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,22 @@ Changes from 2.8.5 to 2.8.6
4646
if the requested value is larger than what is allowed (minus some reserve
4747
for configuration files and other use-cases). [issue #3365]
4848
49+
- `upsd` data server updates:
50+
* If SSL configuration was provided, but the server failed to apply some
51+
aspect of that, it should now abort with an explanation (and not proceed
52+
with insecure start-up like it could do before). [issue #3331, PR #3435]
53+
54+
- Enabled support for `nutauth.conf` files to provide credentials and/or
55+
SSL settings in clients which previously only did best-effort attempts at
56+
secure communications without an individual certificate, and only anonymously
57+
for reading like `upsc`.
58+
+
59+
The new `-A filename` option defaults to trying to use a `nutauth.conf` file
60+
(if found in one of the default locations) but not failing if one is not
61+
usable; specific values can require use of such a file or to not even try
62+
reading one ('none' as the legacy default). See the updated manual pages
63+
for more details. [issues #3329, #3411]
64+
4965
5066
Changes from 2.8.4 to 2.8.5
5167
---------------------------

clients/Makefile.am

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ endif HAVE_CXX11
110110

111111
# Optionally deliverable as part of NUT public API:
112112
if WITH_DEV
113-
include_HEADERS = upsclient.h
113+
include_HEADERS = upsclient.h authconf.h
114114
if HAVE_CXX11
115115
include_HEADERS += nutclient.h nutclientmem.h
116116
else !HAVE_CXX11
@@ -170,7 +170,7 @@ upsstats_cgi_LDADD = $(LDADD_CLIENT) $(top_builddir)/common/libcommonstrjson.la
170170
# but it needs nut_version.h made before the rest of build,
171171
# to include it into upsclient.c (without an explicit link,
172172
# this target is sometimes missed in parallel builds):
173-
libupsclient_la_SOURCES = upsclient.c upsclient.h
173+
libupsclient_la_SOURCES = upsclient.c upsclient.h authconf.c authconf.h
174174

175175
# See comments for similar trick in common/Makefile.am for common-nut_version.c
176176
if BUILDING_IN_TREE

0 commit comments

Comments
 (0)