You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(PUP-10238) Change default value of strict_hostname_checking to true
Previously our default value of strict_hostname_checking was false which
allowed matching dotted segments of a nodes certname (its CN in its
certificate) as well as the segments of its fqdn fact, or hostname +
domain fact.
This was for compatibility when fact based classification within a
site.pp was a more common pattern and node declarations were much less
powerful than they are now.
With the ability to use regular expressions in a node declaration the
auto segmenting is no longer needed and with the ability to use facts
directly, to use fact interpetation in hiera lookups, or create a custom
external node classifier the injecting of facts into the nodes "name" is
unneeded.
The desire is to remove the setting completely in Puppet 7, while
leaving it in 6 so those that depend on this behavior have time to
re-write their site.pps to the newer styles.
strict_hostname_checking setting is not marked deprecated completely
because it will cause deprecation notices on setting access, which
happens as part of normal compilation for now. However it does mark
"node_name" setting as deprecated completely because it is now only
referenced in code that by default will not run (and will only run if
users change strict_hostname_checking back to false).
:desc=>"Where the fileserver configuration is stored.",
1433
1443
},
1434
1444
:strict_hostname_checking=>{
1435
-
:default=>false,
1445
+
:default=>true,
1446
+
:type=>:boolean,
1436
1447
:desc=>"Whether to only search for the complete
1437
-
hostname as it is in the certificate when searching for node information
1438
-
in the catalogs.",
1448
+
hostname as it is in the certificate when searching for node information
1449
+
in the catalogs or to match dot delimited segments of the cert's certname
1450
+
and the hostname, fqdn, and/or domain facts.
1451
+
1452
+
This setting is deprecated and will be removed in a future release.",
1453
+
:hook=>proc{ |val|
1454
+
ifval != true
1455
+
Puppet.deprecation_warning("Setting strict_hostname_checking to false is deprecated and will be removed in a future release. Please use regular expressions in your node declarations or explicit fact matching for classification (though be warned that fact based classification may be considered insecure).")
0 commit comments