Skip to content

Simplify the return value of the manager/connector #15

@brichet

Description

@brichet

The secrets connector must currently return an object containing the namespace, the secret ID and the value.

export interface ISecret {
namespace: string;
id: string;
value: string;
}

This seems not necessary, it could only return a string containing the secret value. And it would simplify the implementation.

The real use of this return value seems to be for the list method.
It simplifies querying a namespace, by comparing the return value namespace to the query. We can easily use a regex for that, since the full secret id is built as namespace:id.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions