-
Notifications
You must be signed in to change notification settings - Fork 185
/
ChangeLog
3388 lines (3226 loc) · 166 KB
/
ChangeLog
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
3.24.0:
- Added a sanity check to policy parser that checks for and warns
in case of promise declarations with no actions. The motivation
for this check is to aid policy writers in detecting semantic
errors early. (ENT-11137)
- Added sys.os_name_human for Alpine, postmarketOS, OpenBSD and NetBSD
- Added warning log message when OS is not recognized (CFE-4342)
- Adjusted locale settings in masterfiles stage common script to
handle more cases (ENT-11885)
- Adjusted package module inventory to include quotes around
fields when needed (CFE-4341)
- Added 'sys.os_name_human' and 'sys.os_version_major' variables
for Amazon. Additionally changed value of 'sys.flavor' from
'AmazonLinux' to 'amazon_linux_2', so that it is similar to other
supported Linux distros. This change was necessary, due to the
fact that the 'sys.os_version_major' variable is derived from
it. However, the 'AmazonLinux' class previously derived from
'sys.flavor' is still defined for backwards compatibility.
(ENT-10817)
- CFEngine now uses PCRE2 for regular expressions (ENT-10629)
- CFEngine processes no longer suffer from the "Invalid argument"
issues when working with LMDB (ENT-11543)
- Changed cf-apache systemd unit to reload configuration gracefully
(ENT-11526)
- Changed cf-execd's sleep behavior so it attempts to wake up at
the beginning of every minute (ENT-11765)
- File copying now uses more efficient implementation on Linux
platforms (CFE-4380)
- Fixed bug in double expansion of foreign list variables with namespaces
(ENT-11923)
- Fixed bug related to failing backwards directory traversial when
using forward slashes in path argument of the findfiles_up()
policy function on Windows.
- Fixed bug where 'default:sys.fqhost' contained many spaces when domain is
set in body common control (CFE-4053)
- Fixed cf-support call to cf-promises to collect all classes and vars
(CFE-4300)
- Fixed package promises with only promisers and no other attributes
(CFE-4315, CFE-4398, CFE-4408)
- Modified package promise default. If platform_default is present
use that package module. (CFE-4315)
- Ownership of symlinks is now handled properly (ENT-11235)
- SELinux no longer breaks exporting large reports as PDF (ENT-11154)
- The 'arglist' attribute in the 'commands' promises now preserves
whitespaces in the arguments. Whitespaces are currently not preserved on
Windows, or if the 'useshell' attribute is set to anything other than
'"noshell"'. (CFE-2724, CFE-4294)
- Trailing newline on insert_tree promisers no longer removes
ending tag for select_xpath (CFE-3806)
- cf-agent has two new options --no-augments and
--no-host-specific-data to skip loading augments
(def.json or def_preferred.json) and host-specific
data (host_specific.json), respectively (ENT-10792)
- cf-agent now has a new option --skip-bootstrap-service-start to
skip starting CFEngine services during the bootstrap process
(ENT-11932)
- cf-runalerts.service no longer exists, alerts are now
periodically run by cf-reactor (ENT-11538)
- depth_search acting on a non-directory promiser now handles such
file as if the promise didn't use depth_search. A warning is issued in this case.
(ENT-8996)
- masterfiles-stage.sh now supports a new --check-only option
(ENT-9386)
- Added new policy variable 'sys.cfengine_roles'. This
variable is a string list, containing "Reporting hub" if cf-hub
exists (hub package installed), "Policy server" if the host is
bootstrapped to itself ('policy_server' class defined), and just
"Client" if none of the other options are true.
- Added 2 new classes correlating to the values in 'sys.cfengine_roles':
'cfengine_reporting_hub' and 'cfengine_client'.
3.23.0:
- Added selinux policy to allow cf-hub to initiate scheduled reports
(ENT-10696, ENT-9825)
- Added version_compare() policy function (CFE-3991)
- Bodies can now inherit attributes containing global variables
(CFE-4254)
- Cached policy function results now take into account number of arguments
and function name (CFE-4244)
- Fixed infinite loop on error bug while reading interface exception file
- Fixed inventoried policy release id when masterfiles-stage.sh deploys with cfbs
(ENT-10832)
- Improved locale override in masterfiles stage scripts (ENT-10753)
- Improved syntax description for validjson() (ENT-9759)
- Made cf-support use coredumpctl for core analysis only when configured in kerenl.core_pattern
(ENT-9985)
- Modified classesmatching() function to search parent bundles with inherit => true
(ENT-5850)
- Moved expected location of ignore_interfaces.rx from $(sys.inputdir) to
$(sys.workdir). If the file is found in $(sys.inputdir) but not in
$(sys.workdir), we will still process it for backwards compatability,
but issue a warning prompting the user to move it to the appropriate
location. (ENT-9402)
- Only CFEngine processes are now killed as expired lock owners
(CFE-3982)
- SELinux no longer blocks CFEngine deamons in reading security parameters from /proc/sys/kernel
(ENT-9684)
- cf-hub is now allowed to use the TLS kernel module on
SELinux-enabled systems (ENT-9727)
- cf_lock.lmdb is no longer restored from backup on
every boot (CFE-3982)
- packagesmatching() and packageupdatesmatching() now look for the software
inventory databases in the state directory and use them if found. This
change enables the usage of these functions in standalone policy files
without the demand for specifying the default package inventory attribute
in body common control. However, you still need the default package
inventory attribute specified in the policy framework for the software
inventory databases to exist in the first place and to be maintained.
(ENT-9083)
- CFEngine locks are now purged dynamically based on the local locks DB
usage/size ranging from no purging (<=25% usage) (ENT-8201, CFE-2136, ENT-5898)
- `cf-check repair` now rotates DB files with high usage (>95%) (CFE-3374)
- Full LMDB files are now handled gracefully by moving them aside and using new
empty LMDB files (ENT-8201)
- `cf-check repair` now supports the `--test-write` option to check if DBs can
be written to as part of identifying DBs that need repairing (CFE-3375)
- `cf-check diagnose` now shows DB usage and a hint if rotation is required
- /usr/bin/getent is now attempted to be used if /bin/getent doesn't exist (CFE-4256)
3.22.0:
- Added --help option to cf-support and aligned output with other
components (ENT-9740)
- Added classes and vars to cf-support (CFE-4160)
- Added condition to runalerts service to require stamp directory
(ENT-9711)
- Added mctp_socket class to selinux policy (ENT-10206)
- Added native core dump handling in cf-support for Solaris (ENT-9786)
- Added needed SELinux class lockdown for latest RHEL 9 hosts (ENT-9685)
- Adjusted cf-support for exotic/legacy POSIX systems (ENT-9340)
- Adjusted cf-support for hpux mktemp command (ENT-9786)
- Directories are now created with correct perms (CFE-4114)
- Variables & classes modules automatically tagged (ENT-7725)
- Changed bootstrap policy to preserve log level for debug, verbose,
and info (CFE-4121)
- Created new policy function isreadable (ENT-9380)
- Enabled expireafter attribute for custom promise types (CFE-4083)
- Enabled install-time SELinux policy compiling (ENT-9685)
- Expired agents now terminate custom promise modules (CFE-4083)
- Fixed debug module expand logging for scalars (CFE-4122)
- Fixed syntax description of validjson() (ENT-9759)
- Prevented cf-support from searching more than 1 level for core files
(ENT-9981)
- Started checking status of all cf- prefixed systemd services in
cf-support (ENT-9804)
- validjson() no longer accepts trailing bogus data (CFE-4080)
3.21.0:
- Added cf-support utility for generating support information
(ENT-9037)
- Adjusted cf-check and package module code for empty updates list
(ENT-9050)
- '$(this.promiser)' can now be used in 'files' promise
attributes 'if', 'ifvarclass' and 'unless'
(CFE-2262, ENT-7008)
- Fixed storage promise for nfs on MacOS (CFE-4093)
- Fixed definition of _low_ldt class from cf-monitord (CFE-4022)
- Insertion of contents of a file with blank lines into
another file with blank lines no longer results in
mixed content (ENT-8788)
- Added suggestion to use a negative lookahead when non-convergent edits
are attempted
(CFE-192)
- Unresolved function calls that return scalar values
are now considered OK for constraints expecting
strings during syntax check (CFE-4094)
- cf-monitord now honors monitorfacility in body monitor control
(ENT-4492)
- cf-serverd now periodically reloads its policy if it
contains unresolved variables (e.g. $(sys.policy_hub)
in 'allowconnect'). (ENT-8456)
- cf-serverd now starts in the network-online.target on
systemd-based systems (ENT-8456)
- edit_line bundles can now use the new
$(edit.empty_before_use) variable mirroring the value of
edit_defaults=>empty_before_use of the related files promise
(ENT-5866)
- Package modules with unresolved variables in their
names are now skipped in package queries (ENT-9377)
- Removed unsupported name_connect capability for udp_socket class
(ENT-8824)
- 'meta' attribute can now be used in custom promises (CFE-3440)
- Custom promise modules can now support the 'action_policy'
feature allowing promises of their custom types to be used
in dry-run and simulation modes and in combination with
'action_policy => "warn"'. (CFE-3433)
- Use of custom promise modules that don't fully specify
protocol now results in warning (CFE-3433)
- Warnings are logged if levels of log messages from
custom promise modules don't match results of their
related promises (CFE-3433)
- Adjusted SELinux policy for RHEL 9 (ENT-8824)
- Fixed SELinux policy to allow hub to send emails (ENT-9557, ENT-9473)
- SELinux no longer breaks SQL queries with large result
sets on RHEL 8 hubs (ENT-9496)
- Added SELinux LDAP port access for Mission Portal (ENT-9694)
- Allowed ciphers are now properly split into TLS 1.3
cipher suites and ciphers used for TLS 1.2 and older
(ENT-9018)
- Fixed git_cfbs_deploy_refspec in masterfiles_stage leaving temp dir
(ENT-9039)
3.20.0:
- 'rxdirs' now defaults to "false". This means that the read permission
bit no longer implies execute bit for directories, by default.
Permission bits will be exactly as specified. To restore the old behavior
you can still enable 'rxdirs' explicitly. (CFE-951)
- 'N' or 'Ns' signal specs can now be used to sleep
between signals sent by 'processes' promises
(CFE-2207, ENT-5899)
- Directories named .no-distrib are no longer copied from policy server
(in bootstrap/failsafe) (ENT-8079)
- Files promises using content attribute or template method now create
files by default unless `create => "false"` is specified. (CFE-3955,
CFE-3916)
- template_method mustache and inline_mustache now create file in promiser,
if template rendering was successfull and file does not exist. (ENT-4792)
- Added support for use of custom bodies in custom promise types
(CFE-3574)
- Custom promise modules now never get promise data with unresolved variables
(CFE-3434)
- Custom promises now use standard promise locking and support ifelapsed
(CFE-3434)
- Enable comment-attribute for custom promise types (CFE-3432)
- cf-secret encrypt now encrypts for localhost if no key or host is
specified (CFE-3874)
- CFEngine now builds with OpenSSL 3 (ENT-8355)
- CFEngine now requires OpenSSL 1.0.0 or newer (ENT-8355)
- Moved Skipping loading of duplicate policy file messages from VERBOSE to DEBUG
(CFE-3934)
- CFEngine processes now try to use getent if the builtin user/group
info lookup fails (CFE-3937)
- No longer possible to undefine reserved hard classes (ENT-7718)
- Unspecified 'rxdirs' now produces a warning (CFE-951)
- Fixed wrong use of log level in users promises log messages (CFE-3906)
- Fixed default for ignore_missing_bundles and ignore_missing_inputs
The issue here was that these attributes should default to false,
but when they are assigned with an unresolved variable, they
would default to true. (ENT-8430)
- Added protocol 3 (cookie) to syntax description (ENT-8560)
- Moved errors from data_sysctlvalues from inform to verbose (CFE-3818)
- Fixed inconsistencies with methods promises and missing bundles
Previously, methods promises acted differently depending on if
you specify the bundle with usebundle or in the promiser string.
This change removes the inconsistent checking which was only
happening on promises with usebundle. It also ensures that
the agent will abort if trying to use an undefined bundle,
regardless of whether it was using promiser string or usebundle.
This change, combined with the fix for ignore_missing_bundles
and ignore_missing_inputs, allow you to use inputs and bundles
conditionally (like we do for the enterprise federation policy)
and still have the agent abort in the correct situations
(when a bundle is actually missing and you haven't enabled
ignore_missing_bundles). The downside is that there are some
potential situations where undefined bundles would be detected
earlier previously (both correctly and incorrectly). (ENT-8430)
3.19.0:
- -N/--negate now prevents persistent classes from being defined
(ENT-5886)
- 'null' JSON value is now handled as empty data in augments/host-specific data
(ENT-7434)
- Added a new common control attribute 'system_log_level'
For specifying the minimum log level required for log messages to
go to the system log. (ENT-7594)
- Added support for cfbs managed policy set to masterfiles staging script (ENT-7709)
- Trailing commas can now be used in policy argument lists (CFE-3734)
- Changed cf-key option --print-digest to take an optional argument.
cf-key now defaults to the public key file in workdir, if no argument
is specified or an empty string is given as the argument. (CFE-3682)
- Cached functions are now always called inside promises with 'iflapsed => "0"'
(CFE-3754)
- Enabled 'handle' attribute for custom promise types (CFE-3439)
- Enabled 'depends_on' attribute for custom promise types (CFE-3438)
- Enabled 'with' attribute for custom promise types (CFE-3441)
- Don't fail on new file creation when backups are enabled
(CFE-3640)
- Extended 'hostsseen()' policy function to return host keys (CFE-2546)
- Moved httpd.pid to root of httpd workdir (ENT-7966)
- Only real changes in files now produce info messages (CFE-3708)
- Reports with unexpanded variable references are now
attempted to be held off until the reference expands
(CFE-3776)
- Set apache umask to 0177 (ENT-7948)
- The --skip-bootstrap-policy-run option now skips the update policy
(ENT-7500, ENT-7511)
- Added measurement names in cf-check dump (ENT-7452)
- Value of '$(with)' is now expanded even if it contains unresolved variable references
(CFE-3776)
- cf-serverd now binds to both IPV6 and IPV4 if bindtointerface is unspecified
(ENT-7362)
- cf-serverd now reports if fails to bind to all possible addresses/interfaces
(ENT-7362)
- Fixed dbm_quick.c DBPrivRead() argument type (CFE-3737)
- Fixed dbm_tokyocab.c DBPrivRead() argument type (CFE-3737)
- Fixed crashes (Segfaults) in VariableIsSecret() (ENT-7678)
- Fixed crashes (Segfaults) in VariablesMatching() (ENT-7678)
3.18.0:
- "No action for file" warning is no longer triggered when only
'content => "something"' is used (CFE-3507)
- "source=promise_iteration" variables are no longer created in
foreign bundles (ENT-7029)
- 'cf-remote install' now supports the '--trust-keys' option for
pre-establishing trust before bootstrap (CFE-3485)
- 'cf-remote spawn' now supports adding new VMs to an existing group
(CFE-3502)
- 'rename => newname()' now supports relative paths (CFE-3537)
- 'variables' and 'classes' in CMDB and augments data now support
'comment' fields (CFE-3638)
- Included custom promise type libraries in src tarball
(CFE-3575, CFE-3576)
- --ignore-preferred-augments now sets a hard class; ignore_preferred_augments
This class makes it easy for cf-agent / cf-execd policy to
propagate the option to other binaries (CFE-3656)
- Added 'classes' body support for custom promises (CFE-3437)
- Added a new --simulate=manifest-full mode
New simulation mode that manifests all changed files as well as
all other files evaluated by the agent run which were not skipped
(by file selection rules) (CFE-3506)
- Added a new runagent_socket_allow_users body executor control attribute
A new attribute that tells cf-execd to grant access to the
runagent.socket to the specified users (ENT-6735)
- Added checks to return value from getpwuid & getgrgid (CFE-3521)
- Added int() policy function (CFE-3616)
- Added new command line option: --ignore-preferred-augments
This option causes the agent to ignore def_preferred.json
always reading def.json (old behavior) (CFE-3656)
- Added policy function type()
- Added policy function findfiles_up (CFE-3577)
- Added policy variable sys.os_name_human (CFE-3569)
- Added policy variable sys.os_version_major (CFE-3569)
- Added shell library for custom promise types with cp example
(CFE-3516)
- Added string() policy function (CFE-3476)
- Augments data now supports meta information for classes
and a new 'variables' object for variables with meta information
(CFE-3633)
- Fixed case where malformed input could trigger buffer overflow
in policy function format (CFE-3525)
- Ability to report some number of lines from the END of a file by
specifying number_of_lines as a negative number using printfile
(CFE-3558)
- CFEngine binaries now load host specific data
($(sys.workdir)/data/host_specific.json) before Augments relative
to policy entry (def.json) (ENT-6789)
- CFEngine processes are now properly identified in syslog on
non-GNU/Linux systems (ENT-7100)
- CMDB data now supports meta information for classes
and a new 'variables' object for variables with meta information
(CFE-3633)
- Changed custom promise type interpreter attribute to be optional
(CFE-3562)
- Changed files promise repaired log level to verbose (CFE-3631)
- Changed log message about whitespace in class expressions to be error
(CFE-3560)
- Changed sys var attribute names:
"OS type" was changed to "Kernel", "OS kernel" was changed to "Kernel Release"
(ENT-6551)
- Clarified error log message about untrusted state directory not being private
(CFE-3599)
- Classes from augments are now defined as soft classes
within the 'namespace' context instead of being hard
classes. Policies using classes from augments in policy files
using namespaces need to be updated to refer to the augments
classes with the 'default:' prefix (CFE-3632)
- Custom promise modules using JSON protocol now support data attributes
(CFE-3654)
- Custom promise modules using JSON protocol now support slist attributes
(CFE-3444)
- Custom promise types can now be declared in separate files (CFE-3510)
- Custom promise types can now report back result classes (CFE-3515)
- Custom promises now support the 'log_level' attribute (CFE-3436)
- Each custom promise module is now only spawned once
and handles all promises of its matching type(s) (CFE-3572)
- Early failing custom promises now properly set result classes
(CFE-3645)
- Exit code from remote agent run is now sent to cf-runagent (CFE-3594)
- Fixed crash when attempting to put methods promises in bundles
which are not agent bundles (CFE-3672)
- Fixed memory leak in package module code (ENT-5752)
- Fixed memory leak in simulate mode (CFE-3498)
- Fixed some more sign-compare warnings (CFE-3415)
- Improved error handling / logging of data received from promise module
- Improved log messages for commands promise outcomes and return codes
(CFE-3604)
- Made errors about failed validation of custom promises less noisy
- Namespace and bundle can now be specified in augments and CMDB data
(CFE-3633)
- New observations of root owned SETUID programs moved from WARN to NOTICE
(ENT-6519)
- Policy function format() no longer truncates strings lager than 4KiB
(CFE-2686)
- Policy function storejson() no longer truncates strings lager
than 4096 bytes (CFE-2507)
- Promise type is now sent to custom promise modules (CFE-3563)
- Reduced the noise caused by packages promises being skipped in
evaluation passes 2 and 3 (ENT-6553)
- Set Filedescriptor Limit to a more practial Size (CFE-3625)
- Stopped emitting warning and recording result when observing new
SETGID files (ENT-6750)
- Stopped updating files promise result with WARN (notkept) when
setuid files are encountered (ENT-6519)
- Unspecified 'files' constraints no longer cause '_kept' classes
to be defined (CFE-3578)
- Updated contrib/masterfiles-stage scripts and instructions to be
accurate (ENT-6165)
- Fixed using a custom promise module with two different
interpreters results in an error (CFE-3572) - Value of the
'files_single_copy' body control attribute is now logged in
verbose logging mode (CFE-3622)
- Variables and classes defined in cmdb cannot be re-defined in
augments (ENT-7079)
- Verbose log now contains comments associated with 'vars' and
'classes' promises (CFE-2442, CFE-2443)
- cf-agent now checks that promise module logs expected errors
- cf-agent now sends correct information to promise module in header
- cf-execd now executes cf-agent for "localhost" requests via the
runagent.socket (ENT-7090)
- cf-execd now handles requests to run cf-runagent on given hosts
(ENT-6182)
- cf-execd now runs cf-agent from a child process instead of a
thread on POSIX systems (ENT-6182)
- cf-runagent now exits with a code reflecting remote agent run
status(es) (CFE-3594)
- cf-serverd now supports systemd-based socket activation
- def_preferred.json is now used instead of def.json if it exists
Old clients will ignore it, allowing you to have 2
versions of the augments file, 1 for compatibility
with old clients, and 1 for utilizing the new feautres.
(CFE-3656)
- files_single_copy body agent control attribute can now be an
empty list (CFE-3622)
- files_single_copy no longer treats paths of copied files as
regular expressions (CFE-3621)
- log_level is properly sent to promise modules in both validate
and evaluate requests (CFE-3564)
- unless can now be used with custom promise types (CFE-3431)
- CFEngine processes now reuse log facility from previous run for
early logging before policy is loaded (ENT-6955)
3.17.0:
- cf-agent can now simulate the changes done to files in a chroot, printing
diff or manifest information about what it would do in a normal evaluation.
Use the new command line option: `--simulate=diff` or `--simulate=manifest`.
Please note that only files and packages promises are simulated currently.
- Custom promise types can now be added using promise modules (CFE-3273)
- cf-monitord now uses /proc/net/* files to get network information if
possible (CFE-2945)
- Added new policy function execresult_as_data() (CFE-3315)
- Added optional argument to execresult for choosing between stdout and
stderr (CFE-3108)
- Outcome classes are now always defined for promiser in files promises
(CFE-3369)
- and(), or(), not() now return boolean and cannot be used directly in
slist vars. They can now be used in other places where a boolean is
expected. (Most notably and / or promise attributes). The return values
can be converted to strings using concat(), if necessary (CFE-3470)
- Backgrounded commands are now correctly executed in the child process
(CFE-3379)
- CFEngine policy bodies can now be completely empty
- Directory listings in files changes monitoring are now only updated
when there is a change (CFE-3382)
- Promises with 'action => bg()' no longer break reporting data (ENT-6042)
- Spaces inside square brackets (slist/data index) are now allowed in
class expressions (CFE-3320)
- Variables specifying data/list names in @() references are now expanded
(CFE-2434)
- Added warnings when trying to use {{.}} to expand containers in mustache
templates (CFE-3457, CFE-3489)
- Limited unqualified host and domain name to 511 characters (CFE-3409)
- AVCs are no longer produced for CFEngine processes accessing /proc/net
(CFE-3240)
- Fixed how we check for `--cols` argument to `ps` (ENT-6098)
- Fixed a memory leak in users promises
- Fixed a small memory leak in cf-promises (CFE-3461)
- Fixed expansion of variables in data/list references (CFE-3299)
3.16.0:
- Added 'cf-secret' binary for host-specific encryption (CFE-2613)
- 'cf-check diagnose --test-write' can now be used to test writing
into LMDB files (ENT-4484)
- 'if' constraint now works in combination with class contexts
(CFE-2615)
- Added $(sys.cf_version_release) variable (ENT-5348)
- Added new macros to parser: else, maximum_version, between_versions,
before_version, at_version and after_version. Version macros now
accept single digits (CFE-3198)
- Added cf-postgres requirement to cf-apache and cf-hub systemd units
(ENT-5125)
- Added files promise content attribute (CFE-3276)
- Added string_trim() policy function (CFE-3074)
- Added warning if CSV parser parses nothing from non-empty file
(CFE-3256)
- All changes made by 'files' promises are now reported. Also,
directory and file creations are now properly reported as 'info'
messages. And failures in edit_xml result in promises marked as
failed not interrupted. Purged dirs and files are reported as
repaired (ENT-5291, CFE-3260)
- Bootstrap to loopback interface is now allowed, with a warning
(CFE-3304)
- Client initiated reporting was fixed on RHEL 8.1 (ENT-5415)
- Fixed rare crashing bug when parsing zombie entries in ps output. The
problem was only ever observed on AIX, but could theoretically happen
on any platform depending on exact libc behavior. (ENT-5329)
- Fixed an issue causing duplicate entries in sys.interfaces, and
sys.hardware. (CFE-3046)
- Fixed ifelse() to return fallback in case of unresolved variables
(ENT-4653)
- Fixed locking of promises using log_repaired / log_string with
timestamps (CFE-3376)
- Fixed memory leak in handling of inline JSON in policy evaluation
- Fixed memory leak in readlist functions (CFE-3263)
- Fixed race condition when multiple agents are acquiring critical
section locks simultaneously (CFE-3361)
- Fixed selection of standard_services when used from non-default
namespace (ENT-5406)
- Fixed service status cfengine3 on systemd managed hosts (ENT-5528)
- Fixed some memory leaks and crashes in policy evaluation (CFE-3263)
- Improved error message for invalid body attribute names (CFE-3273)
- Improved management of secondary groups to avoid intermediary state
failures (ENT-3710)
- LMDB files are now created with correct permissions (ENT-5986)
- Log messages about broken Mustache templates are now errors (CFE-3263)
- Made classfiltercsv() fail properly on invalid class expression index
- Measurements promises with no match no longer produce errors
(ENT-5171)
- Moved error reading file in countlinesmatching() from verbose to error
(CFE-3234)
- Added new data validation policy functions validdata() and validjson()
(CFE-2898)
- New version checking convenience policy functions (CFE-3197)
Added the following policy functions to check against local CFEngine version:
- cf_version_maximum()
- cf_version_minimum()
- cf_version_after()
- cf_version_before()
- cf_version_at()
- cf_version_between()
- Removed (USE AT YOUR OWN RISK) from cf-key help menu for -x (ENT-5090)
- Rewrote helloworld.cf to use files promises content attribute
(CFE-3276)
- The outcome classes are now defined for the top-level directory when
'include_basedir' is 'false' (ENT-5291)
- Variable references with nested parentheses no longer cause errors
(CFE-3242)
- cf-check: Added a more user friendly message when trying to print
unknown binary data (ENT-5234)
- cf-check: Added data validation for cf_lastseen.lmdb (CFE-2988)
- cf-check: Added nice printing for nova_agent_executions.lmdb
(ENT-5234)
- cf-check: Added validation for timestamps in cf_lock.lmdb (CFE-2988)
- cf-check: Added validation for timestamps in lastseen.lmdb (CFE-2988)
- cf-check: Fixed issue causing repair to target the wrong database file
(ENT-5309)
- cf-check: Symlinked LMDB databases are now preserved in repair
Performs diagnosis and repair on symlink target instead of symlink.
Repaired files / copies are placed alongside symlink target.
In some cases, the symlink target is deleted to repair a corrupt
database, and the symlink is left as a broken symlink. This is
handled gracefully by the agent, it will be recreated. Broken
symlinks are now detected as an acceptable condition in diagnose,
it won't try to repair them or delete them. (ENT-5162)
- storage promises managing nfs mounts should now correctly mount
after editing fstab entries
3.15.0:
- New policy function basename() added (CFE-3196)
- Added read_module_protocol() policy function
This function reads module protocol from a file, and can be used
for caching the results of commands modules. (CFE-2973)
- The @ character is now allowed in the key of classic arrays defined
by the module protocol (CFE-3099)
- nth() policy function now supports negative indices (CFE-3194)
- Fixed .xy floating point numbers parsing in eval() (CFE-2762)
- Added inform constraint to commands promises, to allow suppression of
INFO log messages (CFE-2973)
- Changed unless constraint to be more consistent with if
For any situation where if would NOT skip a promise, unless
will cause the promise to be skipped. When there are
unresolved variables / function calls, if will skip, unless
will NOT skip. (CFE-3160)
- Default minimum allowed TLS version is now 1.1 (ENT-4616)
- Network protocol version 2 is now called "tls"
"tls" or "2" can be used in places where you specify network
protocol. Log messages were altered, to show "tls" instead of
"latest". (ENT-4406)
- Introduced protocol version 3 - "cookie"
This protocol is identical to version 2 ("tls"),
except it allows the enterprise reporting hub to send
the COOKIE command to enterprise hosts. This command is used for
detecting hosts using duplicate identities. Protocol version "latest"
now points to version 3. For community installations, it should not
make a difference, policy servers will not send this command. The only
visible difference is the new version number (in logs and policy).
(ENT-4406)
- Package modules now hit network when package cache is first initialized
(CFE-3094)
- Fixed promise skipping bug in unless (CFE-2689)
- Fixed error message for unexpanded variables in function calls in unless
(CFE-2689)
- Prevented buffer overflow when policy variable names are longer than
1024 bytes
- Zero bytes in class guards no longer cause crashes (CFE-3028)
- Fixed bug in ps parsing on OpenBSD / NetBSD causing bootstrap to fail
- Fixed crash in policy/JSON parsing of numbers with too many decimal
points (CFE-3138)
- copy_from without preserve now respects destination mode (ENT-4016)
- Removed stime_range and ttime_range constraints from promise hash
(ENT-4921)
- Fixed promise result when using process_stop in processes type promises
(ENT-4988)
- cf-execd now sends SIGKILL to the agent process in case of
agent_expireafter, after attempting SIGINT and SIGTERM (CFE-2664)
- cf-serverd now tries to accept connection multiple times (CFE-3066)
- Fixed multiple measurements tracking growth of same file (ENT-4814)
- Set create permissions of monitord files in state directory to 0600
0600 matches the permissions enforced by policy.
Affected files:
* state/cf_incoming.*
* state/cf_outgoing.*
* state/cf_users
* state/env_data
(ENT-4863)
- Clarified descriptions of io_writtendata and io_readdata (ENT-5127)
- Clarified log message about process_count and restart_class being used
concurrently (CFE-208)
- Agent runs that hit abortclasses now record results (ENT-2471)
- An ID of rhel in os-release file will now define both rhel and redhat
classes (CFE-3140)
- Version specific distro classes are now collected by default in
Enterprise (ENT-4752)
- redhat_8 and redhat_8_0 are now defined on RHEL 8 (CFE-3140)
- Added derived-from-file tag to hard classes based on /etc/redhat-release
(CFE-3140)
- Added sys.bootstrap_id policy variable containing the ID from
/var/cfengine/bootstrap_id.dat, if present (CFE-2977)
- sys.interfaces now contains interfaces even when they only have
IPv6 addresses (ENT-4858)
- IPv6-only interfaces added to sys.hardware_(addresses,mac) (CFE-3164)
- IPv6 addresses are now added to policy variable sys.ip_addresses
(CFE-682)
- IPv6 addresses now respect ignored_interfaces.rx (CFE-3156)
- Hostname now allowed in bindtoaddress (CFE-3190)
- Fixed issue when removing comments from files in various policy functions
This also fixes many erroneous occurences of the error message
mentioning:
[...] because it legally matches nothing
(A warning can still appear if a comment regex actually matches nothing).
Also made this comment removing logic faster.
Affected functions include:
* readstringlist()
* readintlist()
* readreallist()
* peers()
* peerleader()
* peerleaders()
* data_readstringarray()
* data_readstringarrayidx()
* data_expand()
* readstringarray()
* readstringarrayidx()
* readintarray()
* readrealarray()
* parsestringarray()
* parsestringarrayidx()
* parseintarray()
* parserealarray()
(CFE-3188, ENT-5019)
- Fixed memory leak in JSON / env file parsing (CFE-3210)
- Fixed memory leak in handling of nfs / fstab (CFE-3210)
- Fixed memory leak in string_replace() and regex_replace() (CFE-3210)
- Fixed memory leak when using with constraint (CFE-3210)
- Fixed minor memory leak in policy evaluation (CFE-3210)
- Fixed small memory leak in SQL database promises (CFE-3210)
- Received SIGBUS now triggers a repair of local DBs (CFE-3127)
- Corrupted LMDB files are now automatically repaired (CFE-3127)
- Keys in the lock database, cf_lock.lmdb, are now human-readable
(CFE-2596)
- Local databases now use synchronous access on AIX and Solaris (ENT-4002)
- Report corrupted local database with a critical log message (CFE-2469)
- Local DB errors are now logged with the particular DB file path (CFE-2469)
- cf-check: repair now preserves readable data in corrupted LMDB files
(CFE-3127)
- cf-check: --dump option was added to the backup command
- cf-check: Added --no-fork to diagnose command (CFE-3145)
- cf-check: Added -M manpage option and other common options (CFE-3082)
- cf-check: No DB files in state dir now causes errors
- cf-check: dump command now dumps DB contents to JSON5 (CFE-3126)
- cf-check: help command can now take a topic as argument
3.14.0:
- A bootstrap_id.dat file is now generated on every bootstrap
(CFE-2977)
- Added options to cf-net to set minimum TLS version and ciphers
(ENT-4617)
- Added --no-truncate option to cf-key
This option, when used with --show-hosts changes the formatting
of the output. Instead of padding and truncating each of the
fields, they are printed, in full, with no padding, and separated
by a single tab character. The output is not as pretty, but should
be more useful for parsing by other scripts / tooling. (CFE-3036)
- Added a new option --skip-db-check to agent and execd
This option allows you to enable/disable database (LMDB) consistency
checks. Initially it is disabled by default, but this will likely
change. (CFE-2893)
- Added a new utility to contrib: cf-remote
cf-remote is a python + fabric tool to log in to remote hosts
you have ssh access to. It can be used to download, transfer,
and install CFEngine packages as well as bootstrapping etc.
At this point, cf-remote is not packaged with CFEngine, but can be
installed separately from:
https://github.com/cfengine/cf-remote
(CFE-2889)
- Added derived-from-file tags to hard classes based on /etc/debian_version and /etc/issue
- Added a function to filter CSV-files by classes (CFE-2768)
- Forward slash is now an allowed character in module protocol commands
(CFE-2478)
- Augments files can now handle class expressions by appending '::'
A condition in an augments file is treated as a class expression
if it ends in ::. Otherwise it is treated as a regular
expression. (CFE-2954)
- Internal ps command can now handle longer usernames (CFE-2951)
- Made copylink_pattern honor '/../' in copy source (CFE-2960)
- CSV parser now supports CRLF inside double quotes (ENT-4504)
- Added an error when a function defining a variables still fails at
pass 3 (CFE-2983)
- Documented cf-execd and cf-serverd response to SIGHUP in manpage
(CFE-2853)
- Stopped trimming leading zeroes in ubuntu minor version class
The old version detection logic (using /etc/debian_version) was
converting the minor version part to an integer, defining
ubuntu_18_4 instead of ubuntu_18_04. The new platform detection
(based on /etc/os-release) defines ubuntu_18_04. Since both old
and new methods are running to maximize compatibility, both
ubuntu_18_04 and ubuntu_18_4 were defined.
This commit ensures that the old detection logic treats the
minor version (the 04 part) as a string, not an integer. The
change is specific to Ubuntu, and should affect Ubuntu 18.04,
16.04, 14.04, etc. (CFE-2882)
- SUID log permissions are now properly enforced (CFE-2919)
- Agent log file names are now always lowercase
- Extended module with file protocol for data (CFE-3050)
- Fixed a segfault in 'cf-promises -p json-full' (CFE-3019)
- Added cf-key help output to indicate ability to delete by key digest
(CFE-2997)
- Fixed disabling TLS 1.0 (CFE-3068)
- Fixed growing memory footprint of daemons (CFE-3032)
- Fixed the log message about setting collect_window (ENT-4238)
- Fixed the log message when parsing TIME in 'ps' output fails
- Fixed parsing of YAML values starting with numbers (CFE-2033)
- Fixed sys.flavor on AIX (ENT-3970)
- Fixed 6 cases where promises could get the wrong outcome
All cases were related to error handling and detected using
static code analysis (LGTM). They were limited to cf-monitord
and cf-agent (guest_environments and files promise types). Due
to a programming mistake, promise results would sometimes be
overwritten with 'skipped' outcome. Keeping the previous
value or making the promises 'not kept' is expected behavior.
Added a query to our CI (LGTM) to make sure we catch this error
on new contributions.
- Fixed an issue while parsing ps output on AIX (ENT-4295)
- Fixed a memory leak in filesexist function (ENT-4313)
- Fixed a memory leak in mustache rendering (ENT-4313)
- Fixed a memory leak in: differences(), intersection(), unique()
(ENT-4586)
- Fixed a segfault in policy parser (ENT-4022)
- Connection cache is now global (CFE-2678)
- Increased verbosity of AcquireLock permission error (ENT-4395)
- Message about invalid class characters from module protocol moved to VERBOSE
(CFE-2887, CFE-3008)
- Prevented buffer overflows in cf-monitord data parsing
- Private keys generated by cf-key are no longer encrypted
Private key files encrypted with a broken cipher and default
hard coded passphrase provide no real security, and is only an
inconvenience. Maybe it was intended to add a password prompt
later, but it's been 10 years now, and the cipher and passphrase
remain untouched. The function which reads keys still supports
both encrypted and unencrypted keys, it will decrypt if necessary.
- Reduce SSL/TLS shutdowns on bad networks (CFE-3023)
- Removed programming error in handling of process_count body
Previously, having a failing function call inside in_range_define
or out_of_range_define would cause a programming error when
trying to define that as a class. Fixed it by detecting the
case, printing a normal error, and skipping defining the class. (CFE-2067)
- Set policy->release_id to "failsafe"/"bootstrap" when running failsafe.cf
(CFE-3031)
- Switched permissions of various temporary files in state to 0600
These files were created with 0644 permissions, and then
repaired in policy. However, since they are deleted / recreated
periodically, it causes INFO noise. Safer and better user
experience to create them with restricted permissions to
begin with.
Affected files:
* $(sys.statedir)/cf_procs
* $(sys.statedir)/cf_rootprocs
* $(sys.statedir)/cf_otherprocs
(ENT-4601)
- string_split segments are now truncated to 1024 bytes instead of
crashing (CFE-3047)
- Unresolved function calls in process_select body are now skipped
Function calls which always fail, like getuid("nosuchuser"), are
never resolved. Previously this would cause a programming error,
since the body is expected to have a list of strings, not
unresolved function calls.
The function calls are silently skipped (with a verbose message)
as this matches the behavior of calling the functions in a vars
promise, and using that as a body parameter.
(CFE-1968)
- cf-check directories can now be controlled from ENV vars (CFE-2994)
- cf-check: Added backup command
This command copies lmdb files to a timestamped backup directory.
(ENT-4064)
- cf-check: diagnose and backup now use state directory by default
(ENT-4064)
3.13.0:
- Add support for TLS 1.3 and its ciphersuites
- Add 'feature' hard classes for supported TLS versions
Different versions of TLS are supported depending on what version
of OpenSSL CFEngine was compiled and linked with. Newly added
feature hard classes bring that information to the
policy. Classes like these are now defined (for supported
versions of TLS):
feature_tls source=agent,hardclass
feature_tls_1 source=agent,hardclass
feature_tls_1_0 source=agent,hardclass
feature_tls_1_1 source=agent,hardclass
feature_tls_1_2 source=agent,hardclass
feature_tls_1_3 source=agent,hardclass
- Add a new variable $(sys.default_policy_path)
A new sys variable that provides the path of the default policy
file evaluated when no file is specified with the '-f' option.
- Add an option to skip the initial policy run on bootstrap
In some cases it may not be desired to run the policy as the last
step of the bootstrap. This can be done with the new
'--skip-bootstrap-policy-run' option for cf-agent. (CFE-2826)
- Trigger promises.cf as the last step of bootstrap (CFE-2826)
- Add support for overriding the package module's path (CFE-2103)
- Add support for setting package module interpreter (CFE-2880)
- Added --log-level option to all components
This allows you to specify any log level (info, verbose, debug etc.).
It is also less strict, allowing different spelling. As an example,
--log-level i, --log-level INFO, --log-level inform are all the same.
- Added a new binary: cf-check
Corrupt local databases (LMDB) continues to be a problem.
cf-check will be used to diagnose and remediate problems
with corrupt databases. It is a standalone binary, which
doesn't evaluate policy or use the local databases, thus
it can be used in situations where the other binaries
like cf-agent would hang.
cf-check replaces our lmdb database dumper, lmdump.
cf-check lmdump or symlinking / renaming it to lmdump
will make cf-check have the exact same behavior as lmdump.
cf-check will include much more functionality in the future
and some of the code will be added to other binaries,
for example to do health checks of databases on startup.
Ticket: (ENT-4064)
- Added function string_replace. (CFE-2850)
- Allow dots in variable identifiers with no such bundle
As described and discussed in CFE-1915, defining remote variables
(injecting variables into remote bundles) is dangerous and must
be blocked. However, using a dot-separated common prefix for
variables raises no security concerns and can be considered
valid. (CFE-1915)
- Allow requiring TLS 1.3 as the minimum version
- Apply augments after vars, classes and inputs in def.json
(CFE-2741, CFE-2844)
- Bundle name is now part of the log message when aborting a bundle
(CFE-2793)
- Class names set by module protocol are automatically canonified
(CFE-2877, CFE-2887)
- Classes failsafe_fallback and bootstrap_mode are now reported by default
- Correct log level for data_readstringarray* (CFE-2922)
- Do not iterate over JSON objects' properties in mustache (CFE-2125)
- Do not render templates when passed invalid data (CFE-2194)
- Eliminated error messages caused by attempting to kill expired processes
(CFE-2824)
- Fix cf-runalerts systemd unit conditions so the service will run
(ENT-3929)
- Fix the off-by-one error in cf-runagent background process spawning
(CFE-2873)
- Fixed OOB read / heap buffer overflow in evaluator (ENT-4136)
- Fixed a memory leak which occured when reloading RSA keys from disk
(CFE-2857)
- Fixed a memory leak which occured while loading augments files
(CFE-2913)
- Fixed an issue with splay time in cf-execd (CFE-2931)
- Fixed error handling and memory leak in cf-key (CFE-2918)
- Fixed memory leak in JSON to policy conversion (ENT-4136)
- Fixed memory leak in lmdb cleanup (CFE-2918)
- Fixed memory leaks in cf-agent during bootstrap (CFE-2918)
- Fixed memory leaks in variablesmatching() and findfiles() (CFE-2918)
- Fixed missing class with mustache templates in warn_only mode
(CFE-2600)
- Fixed small memory leak in cf-serverd (CFE-2918)
- Fixed small memory leak in cf-upgrade (ENT-4136)
- Fixed small memory leaks of environment variable strings (CFE-2918)
- LMDB database dumper, lmdump, no longer creates empty databases
(ENT-4064)
- Made variablesmatching functions treat args regexes more correctly
variablesmatching() and variablesmatching_as_data() no longer
use string comparison to find matches. The documentation is clear;
arguments should be regexes (so you have to escape special
characters).
bundle agent main
{
vars:
"myvar"
string => "example",
meta => {"os[linux]"};
"matches"
slist => variablesmatching(".*", "os\[linux\]");
reports:
"Match: $(matches)";
}
The above example is correct. If you don't escape the brackets
like above, it will no longer work. (You probably shouldn't use
brackets in tags anyway).
- Prevent the init script from managing processes inside containers
(ENT-3800)
- Read mustache-rendered files in text mode when comparing digest
(ENT-2526)
- Reload persistent classes on config reload in cf-execd and cf-serverd
(CFE-2857)
- Fixed issue with @if macro failing when it is on the first line.
(CFE-2817)
- Fixed issue with cf-agent intermittently hanging on windows
sometimes (ENT-3756)
- Change GIT_BRANCH to GIT_REFSPEC and remove Design Center vars
(ENT-4023)
- os-release file is now used for hard classes and sys.flavor on all linuxes
This will improve platform detection on newer operating systems where
/etc/os-release (or /usr/lib/os-release) is present.
A hard class will be set for the value of the ID key (canonified with
underscores), if it exists. If both ID and VERSION_ID exist, multiple
hard classes will be set for all parts of the version number. The
special variable sys.flavor will also be set by determining major
version from VERSION_ID.
Example os-release file:
ID=coreos
VERSION_ID=1185.3.0
For the example above, sys.flavor will be coreos_1185 and 4 hard
classes will be set; coreos_1185_3_0, coreos_1185_3, coreos_1185,
and coreos.
For backwards compatibility, older distribution specific logic is still
executed and may overwrite sys.flavor and define hard classes as before.
- Refactor use of atexit to use custom cleanup function instead. On Windows
atexit() unloads DLLs before and/or during atexit functions being called
which causes bad behavior. (ENT-3756)
3.12.0b1:
New Features:
- Add a --key-type option to specify RSA key size to cf-key
- New hash_to_int policy function (CFE-2733)
- Issue a warning on ignored locking attributes (CFE-2748)
- Add IPv6 hard classes with the "ipv6_" prefix (CFE-2310)
- Introduce "missing_ok" attribute in body copy_from
This allows to ignore missing sources in file copy operations (CFE-2365)
- Enable Xen hypervisor detection on all x86 platforms (CFE-2203)
- Add sys.policy_entry variables (CFE-2572)
- Added inline_mustache template method (CFE-1846)
- New component cf-net (cf-net is a CLI for the CFEngine network protocol,
useful for debugging, testing etc) and accompanying policy variable
sys.cf_net containing path to cf-net binary
Changes:
- Load augments at the end of context discovery
This means that classes defined as part of the context discovery
(e.g. 'am_policy_hub' and 'policy_server') can be used in the
augments (CFE-2482)
- Open measurements promise type from enterprise cf-monitord
- Transform filesexist() into a collecting function (CFE-2744)
- Load process table when actually needed for a processes promise (ENT-2536)
- Ignore commented out entries in fstab when edit_fstab is true (CFE-2198)
- Do not move obstructions in warn policy mode (CFE-2740)
- Made the max bytes parameter to file reading functions optional (CFE-2656)
- Do not tag large volatile variables for inventory
sys.interfaces_data, sys.inet and sys.inet6 are commonly larger than the
maximum data size allowed to be collected by cf-hub. Data larger than 1k
is truncated. Instead of reporting truncated data this change stops
tagging the variable so that it will not be collected to the Enterprise
hub and will not be available in Mission Portal. (ENT-3483)
- cf-execd now re-parses augments on policy reload (CFE-2406)
- Improve misleading verbose message
For constraints if/ifvarclass/unless, we now print the whole rval of the constraint.
Previously the message was just "skipping variable because ifvarclass is not defined" while the variable itself was defined.
Old message example:
verbose: Skipping promise 'mailto' because 'if'/'ifvarclass' is not defined
Changed to:
verbose: Skipping promise 'mailto' because 'ifvarclass => not(isvariable("mailto"))' is not defined
(CFE-2697)
- Promise comments for file changes moved to verbose (ENT-3414)
- Suppress output from systemctl based restart of services in
bootstrap/failsafe (CFE-1459)
- Parser can now handle larger inbut buffers (CFE-1886)
- Improve logging of ACL errors (ENT-3455)
- cf-execd systemd service now only kills cf-execd itself (ENT-3395)