vault/ui/app/helpers/supported-secret-backends.ts
Vault Automation 9538905b86
UI: Build snapshot manage form (#8675) (#8957)
* build mirage handler for snapshot recovery endpoints

* WIP add namespace and mount fields to read/recover form

* change option to engine object

* update badge color according to status and make loaded snapshot reqs within root ns

* wip read reqs and view

* add recovery banner and form validation

* move read view into modal

* tidying

* organize

* tests

* style fixes

* error handling

* tests

* update requests with snapshot params

* style fix

* yarn lock update for latest spec updates

* tests

* add polling for snapshot status

* disable button when not in ready state

* reset errors

* don't poll during tests

* remove todo

* test updates

* fix ns select + test

* remove todo

* styling, tidy, mount options, engine types

* lots of tidying, add manual mount input, slower polling

* make read + recover requests in selected namespace

* link to child ns if recovering there

* test updates

* centralize recovery data values

* type, state and error improvements

---------

Co-authored-by: claire bontempo <cbontempo@hashicorp.com>
Co-authored-by: Lane Wetmore <lane.wetmore@hashicorp.com>
2025-09-03 12:22:30 -06:00

32 lines
663 B
TypeScript

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: BUSL-1.1
*/
import { helper as buildHelper } from '@ember/component/helper';
export enum SupportedSecretBackendsEnum {
AWS = 'aws',
AZURE = 'azure',
CUBBYHOLE = 'cubbyhole',
DATABASE = 'database',
GCP = 'gcp',
GENERIC = 'generic',
KEYMGMT = 'keymgmt',
KMIP = 'kmip',
KUBERNETES = 'kubernetes',
KV = 'kv',
LDAP = 'ldap',
PKI = 'pki',
SSH = 'ssh',
TRANSFORM = 'transform',
TRANSIT = 'transit',
TOTP = 'totp',
}
export function supportedSecretBackends() {
return Object.values(SupportedSecretBackendsEnum);
}
export default buildHelper(supportedSecretBackends);