pstore icon indicating copy to clipboard operation
pstore copied to clipboard

How to initialize with `permitted_classes` for safe deserialization

Open eflukx opened this issue 7 months ago • 0 comments

store = YAML::Store.new(
  store_file,
  false, # for thread_safe, true or false
  yaml_options: {
    permitted_classes: permitted_classes_list,
    aliases: true # Allow YAML aliases if you use them
  }
)

I expected this to work with a permitted classes list, but it is not and results in a Psych::DisallowedClass: Tried to load unspecified class: error

eflukx avatar May 21 '25 15:05 eflukx