Skip to content

SecretKeySelector

API reference and demos for SecretKeySelector.

Source

import { SecretKeySelector } from "@flanksource/clicky-ui/components";
Empty · Open in Storybook
With Preview · Open in Storybook
Config Map · Open in Storybook

The props table documents the component-specific surface. Standard DOM attributes inherited from React, such as className, event handlers, and accessibility attributes, may also be accepted when the component’s prop type extends a native element.

Prop Type Default Description
allowLiteral boolean true Shorthand honoured only when `sources` is not supplied: `false` drops the inline "Value" source, leaving Secret/ConfigMap. Ignored when `sources` is given.
className string — —
loadKeyPreview (…) => Promise<KeyPreview[]> — Loads mid-masked previews for the named keyed resource's keys.
loadResources (…) => Promise<SecretResource[]> — Optional catalog of names and keys; without it, references accept custom entry.
loadServiceAccounts (…) => Promise<SecretResource[]> — Loads the service-account names (no keys) for the "serviceaccount" source. When omitted, that source's name field accepts freeform entry only.
onChange* (…) => void — —
onePassword OnePasswordLoaders — Optional metadata for cascading vault, item, and field pickers; otherwise accepts an op:// reference.
sources SecretValueSource[] — The sources offered in the picker, in order. Defaults to `["secret", "configmap", "value"]` (or drops "value" when `allowLiteral` is false). Pass an explicit list to offer helm / serviceaccount / onepassword.
strict boolean false When true, a chosen name absent from the loaded resources, or a key absent from the chosen keyed resource's keys, is flagged invalid (once the load settles). The onepassword and literal sources are never strict-flagged.
value* SecretKeyValue | undefined — —