Skip to content

Unable to import nested JSON secrets via the UI. #5491

@JoshuaSmeda

Description

@JoshuaSmeda

Describe the bug

When importing a .json file containing configuration secrets via drag-and-drop or the import function, only top-level keys are imported successfully. Nested JSON objects are omitted from the import process.
For example, given the following JSON structure:

{
  "dbic_schema": "Example::Controller::Schema",
  "salt": "some salt",
  "environment": "development",
  "hypnotoad": {
    "workers": 2,
    "proxy": 1,
    "listen": ["http://*:8080"],
    "pid_file": "/var/run/example.pid"
  }
}

Only the first three top-level keys (dbic_schema, salt, and environment) are imported. The nested hypnotoad object and its contents are completely omitted.

Expected behavior

All keys and values should be imported from the JSON file, including nested objects and arrays, possibly in dot notation, as long as the JSON structure is valid.

Screenshots

Image

Platform you are having the issue on:

eu.infisical.com, version bd29b3c

Additional context

This issue affects any JSON file containing nested objects or arrays. The import process appears to flatten or truncate the data structure instead of preserving the full hierarchy.

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