Jira (PUP-10928) Add a setting to prevent falling back to non-rich data

31 views
Skip to first unread message

Josh Cooper (Jira)

unread,
Mar 23, 2023, 6:49:01 PM3/23/23
to puppe...@googlegroups.com
Josh Cooper updated an issue
 
Puppet / Bug PUP-10928
Add a setting to prevent falling back to non-rich data
Change By: Josh Cooper
Summary: Puppet falls Add a setting to prevent falling back to non-rich data if there is binary data in the catalog
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.20.11#820011-sha1:0629dd8)
Atlassian logo

Josh Cooper (Jira)

unread,
Mar 23, 2023, 7:30:02 PM3/23/23
to puppe...@googlegroups.com
Josh Cooper updated an issue
If a catalog contains binary data, such as kerberos keytab files, then puppetserver will fallback to PSON. However, if the catalog also contains Sensitive/Binary/Deferred etc data types, then they will not work properly since rich data can't be serialized via PSON currently . Falling back also makes troubleshooting more difficult, because the failure occurs on the agent when applying the catalog, when storing the cached catalog or updating the persistence store. Failing compilation makes it easier to debug what's going on and more quickly identify the resource that caused serialization to fail.

PUP-11787 will add a warning when fallback occurs. In this ticket, we'll add a setting to prevent fallback.

Josh Cooper (Jira)

unread,
Apr 2, 2023, 9:06:01 PM4/2/23
to puppe...@googlegroups.com

Josh Cooper (Jira)

unread,
Apr 6, 2023, 11:56:03 AM4/6/23
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Fix Version/s: PUP 7.25.0

Josh Cooper (Jira)

unread,
Apr 6, 2023, 1:44:01 PM4/6/23
to puppe...@googlegroups.com

Aria Li (Jira)

unread,
Apr 10, 2023, 4:49:02 PM4/10/23
to puppe...@googlegroups.com
Aria Li assigned an issue to Aria Li
Change By: Aria Li
Assignee: Aria Li

Aria Li (Jira)

unread,
Apr 10, 2023, 5:33:03 PM4/10/23
to puppe...@googlegroups.com
Aria Li updated an issue
Change By: Aria Li
Sprint: Phoenix 2023-04-12

Josh Cooper (Jira)

unread,
Apr 12, 2023, 1:05:12 PM4/12/23
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Sprint: Phoenix 2023-04-12 , Phoenix 2023-04-26

Aria Li (Jira)

unread,
Apr 17, 2023, 5:06:01 PM4/17/23
to puppe...@googlegroups.com
Aria Li updated an issue
Change By: Aria Li
Release Notes Summary: The setting, allow_pson_serialization, was first introduced in Puppet 7.x. This setting allows users to turn PSON serialization on or off using a boolean. allow_pson_serialization defaults to true in Puppet 7.x and defaults to false in Puppet 8. When set to false, a warning will be raised when falling back to PSON and when set to true, an error will be raised instead. This option affects both puppetserver's configuration management
service responses and when the agent saves its cached catalog.

Aria Li (Jira)

unread,
Apr 17, 2023, 5:09:01 PM4/17/23
to puppe...@googlegroups.com
Aria Li updated an issue
Change By: Aria Li
Release Notes Summary: The Before, Puppet fell back to PSON when unable to serialize to JSON however this causes issues because rich data types cannot be serialized vis PSON. Due to this, the setting, allow_pson_serialization, was first introduced in Puppet 7.x. This setting allows users to turn PSON serialization on or off using a boolean.

allow_pson_serialization defaults to true in Puppet 7.x and defaults to false in Puppet 8. When set to false, a warning will be raised when falling back to PSON and when set to true, an error will be raised instead. This option affects both puppetserver's configuration management
service responses and when the agent saves its cached catalog.

Aria Li (Jira)

unread,
Apr 17, 2023, 5:10:02 PM4/17/23
to puppe...@googlegroups.com
Aria Li updated an issue
Change By: Aria Li
Release Notes Summary: Before, Puppet fell back to PSON when unable to serialize to JSON however this causes issues because rich data types cannot be serialized vis PSON. Due to this, the setting, allow_pson_serialization, was introduced in Puppet 7.x. This setting allows users to turn PSON serialization on or off using a boolean.


allow_pson_serialization defaults to true in Puppet 7.x and defaults to false in Puppet 8. When set to false, a warning will be raised when falling back to PSON and when set to true, an error will be raised instead. This option affects both puppetserver's configuration management service responses and when the agent saves its cached catalog.

Aria Li (Jira)

unread,
Apr 17, 2023, 5:32:01 PM4/17/23
to puppe...@googlegroups.com
Aria Li updated an issue
Change By: Aria Li
Release Notes: New Feature

Aria Li (Jira)

unread,
Apr 17, 2023, 5:36:02 PM4/17/23
to puppe...@googlegroups.com
Aria Li updated an issue
Change By: Aria Li
Release Notes Summary: Puppet 7.25.0 introduces the allow_pson_serialization setting. By default, this setting is set to true for Puppet 7.25.0 but PSON will eventually be deprecated and removed in future releases. When set to true, a warning will be raised when falling back to PSON and when set to false, an error will be raised instead. This setting affects both puppetserver's configuration management service responses and when the agent saves its cached catalog.

Aria Li (Jira)

unread,
Apr 19, 2023, 12:06:03 PM4/19/23
to puppe...@googlegroups.com
Aria Li updated an issue
Change By: Aria Li
Fix Version/s: PUP 8.0.0

Aria Li (Jira)

unread,
Apr 19, 2023, 1:06:02 PM4/19/23
to puppe...@googlegroups.com
Aria Li updated an issue
Change By: Aria Li
Release Notes Summary: Puppet 7.25.0 and 8.0.0 introduces the allow_pson_serialization setting. By default, this setting is set to true for Puppet 7 .25.0 but PSON will eventually be deprecated and removed in future releases false for Puppet 8 . When set to true, a warning will be raised when falling back to PSON and when set to false, an error will be raised instead. This setting affects both puppetserver's configuration management service responses and when the agent saves its cached catalog.

Aria Li (Jira)

unread,
Apr 19, 2023, 1:08:02 PM4/19/23
to puppe...@googlegroups.com
Aria Li updated an issue
Change By: Aria Li
Release Notes Summary: Before, Puppet 7 fell back to PSON when unable to serialize to JSON however this causes issues because rich data types cannot be serialized vis PSON . 25 Due to this, the setting, allow_pson_serialization, was added in Puppet 8 .0 and 8 .0 and 7 . 25. 0 introduces the allow_pson_serialization setting . By default, this This setting is set allows users to turn PSON serialization on or off using a boolean.

allow_pson_serialization defaults to
true for in Puppet 7 .x and defaults to false for in Puppet 8. When set to true false , a warning will be raised when falling back to PSON and when set to false true , an error will be raised instead. This setting option affects both puppetserver's configuration management service responses and when the agent saves its cached catalog .

Parker Leach (Jira)

unread,
Jun 12, 2023, 6:13:03 PM6/12/23
to puppe...@googlegroups.com
Parker Leach updated an issue
Change By: Parker Leach
Labels: docs_reviewed
This message was sent by Atlassian Jira (v8.20.21#820021-sha1:38274c8)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages