Skip to content

PyKMIP server (wrongly?) not enforcing unique name attr #623

@tomholub

Description

@tomholub

Thanks for your work on PyKMIP.

We tested our software using PyKMIP server as well as SmartKey KMIP server. SmartKey enforces unique object names, so I'll get an error if I try to save second object with the same name:

com.flowcrypt.kmip4j.KmipException: sobject already exists

PyKMIP will however save several objects with the same name.

Here the spec at http://docs.oasis-open.org/kmip/spec/v1.0/os/kmip-spec-1.0-os.html#_Toc262581174 says:

Names SHALL be unique within a given key management domain, but are not REQUIRED to be globally unique.

Which sounds to me that within a namespace (belonging to a particular client), names should be unique.

But I'm not 100% sure I'm reading it correctly, as they don't explicitly say to refuse non-unique ones. But if they say that names SHALL be unique, the only way to do that is to refuse any conflicting records.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions