Skip to content

Add support for importing stringified JSON#1968

Merged
sk-keeper merged 3 commits intoKeeper-Security:releasefrom
lthievenaz-keeper:import-json-strings
Apr 24, 2026
Merged

Add support for importing stringified JSON#1968
sk-keeper merged 3 commits intoKeeper-Security:releasefrom
lthievenaz-keeper:import-json-strings

Conversation

@lthievenaz-keeper
Copy link
Copy Markdown
Contributor

@lthievenaz-keeper lthievenaz-keeper commented Apr 20, 2026

The JSON import command requires a physical file holding sensitive data:

  • JSON
  • ZIP

Added support for passing stringified JSON as the filename, which will import the data without needing to store it in a file. This improves security, SDK use-cases, integrations with ephemeral storage.

Example command syntax:

CLI

import --format json "[{\"title\":\"JSON record title\",\"login\":\"example_login\"}]"

SDK

from keepercommander.importer.imp_exp import _import

data = json.dumps(list_records)
_import(params, 'json', data)

Support for strings added to:
import command (JSON format only)
apply-membership command

BaseFileImporter is a process of the import command which only supports a file.
Added support for stringified JSON.
The JSON import supports:
- JSON filename
- ZIP filename
Added support for stringified JSON
Removed path validation from ApplyMembershipCommand.

This is required for the ApplyMembershipCommand to support stringified JSON data instead of a physical JSON file.

This validation is redundant as it is done inside do_import. It is not performed in other similar commands in this file.
@sk-keeper sk-keeper force-pushed the release branch 2 times, most recently from ccaf00a to 22d8a2d Compare April 24, 2026 18:34
@sk-keeper sk-keeper merged commit a5e0bef into Keeper-Security:release Apr 24, 2026
4 checks passed
sk-keeper pushed a commit that referenced this pull request Apr 24, 2026
* Add native JSON validation for BaseFileImporter

BaseFileImporter is a process of the import command which only supports a file.
Added support for stringified JSON.

* Added support for stringified JSON import

The JSON import supports:
- JSON filename
- ZIP filename
Added support for stringified JSON

* Remove redundant path validation in ApplyMembershipCommand

Removed path validation from ApplyMembershipCommand.

This is required for the ApplyMembershipCommand to support stringified JSON data instead of a physical JSON file.

This validation is redundant as it is done inside do_import. It is not performed in other similar commands in this file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants