Skip to content

How to initialize with permitted_classes for safe deserialization #24

@eflukx

Description

@eflukx
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions