Skip to content

Support better secrets display #2980

@yurikiselev

Description

@yurikiselev

Starting with YDB version 25-3, new secret-type schema objects were introduced. They need to be supported in the viewer.

  1. Create a new favicon for secrets instead of the default directory-type.
  2. In the Navigation tab, next to the ellipsis next to the secret,
  • leave only the Copy path... option.
  • add the "Drop secret..." option, which will open a query like
DROP SECRET `<secret name>`;
  • add the "Alter secret..." option, which will open a query like
ALTER SECRET `<secret name>` WITH (value = '<cursor here>');
Image
  1. Hide the following tabs in the Diagnostics tab: Top shards, Nodes, and Info.
  2. Improve queries suggest according to secrets syntax:
CREATE SECRET `name` WITH (VALUE = ''[, INHERIT_PERMISSIONS = TRUE]);
ALTER SECRET `name` WITH (VALUE = '');
DROP SECRET `name`;

VALUE and INHERIT_PERMISSIONS are parameters, hence should be processed in UI like parameters in CREATE ASYNC REPLICATION for example.

Image

VALUE parameter is the only mandatory parameter, has bool type.
INHERIT_PERMISSIONS parameter is an optional parameter, has String type.

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