Skip to content

Cryptokeys import doesn't directly accept exported data #16403

@sdomi

Description

@sdomi
  • Program: Authoritative
  • Issue type: Feature request

Short description

When exporting cryptokey data through GET /servers/{server_id}/zones/{zone_id}/cryptokeys/{cryptokey_id}, the resulting JSON object cannot be directly POSTed to /servers/{server_id}/zones/{zone_id}/cryptokeys. It errors out with the following message:

{"error": "Either you submit just the 'privatekey' field or you leave 'privatekey' empty and submit the other fields."}

This message is somewhat misleading too, as sending just privatekey results in...

{"error": "Key 'keytype' not present or not a String"}

I also haven't seen documentation on which fields are exactly required (this page doesn't seem to mention it?) but keytype and privatekey seem to be enough.

Usecase

Easier importing / migrations between servers. Habbie mentioned on IRC that this may be something desirable :)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions