mirror of
https://github.com/hashicorp/vault.git
synced 2025-09-03 13:01:12 +02:00
* more updates to api-client for sync * updates sync destination-header component to use api service * updates to sync types * updates sync destination route to use api service * updates sync destination mirage factory and handler * refactors sync setup-models test helper and removes store * refactors sync destination details route to function with api service data * refactors sync destination secrets route to function with api service data * adds sync destination edit route
25 lines
843 B
TypeScript
25 lines
843 B
TypeScript
/**
|
|
* Copyright (c) HashiCorp, Inc.
|
|
* SPDX-License-Identifier: BUSL-1.1
|
|
*/
|
|
|
|
import apiPath from 'vault/utils/api-path';
|
|
|
|
export const SUDO_PATHS = [
|
|
'sys/seal',
|
|
'sys/replication/performance/primary/secondary-token',
|
|
'sys/replication/dr/primary/secondary-token',
|
|
'sys/replication/reindex',
|
|
'sys/leases/lookup/',
|
|
];
|
|
|
|
export const SUDO_PATH_PREFIXES = ['sys/leases/revoke-prefix', 'sys/leases/revoke-force'];
|
|
|
|
export const PATH_MAP = {
|
|
customMessages: apiPath`sys/config/ui/custom-messages/${'id'}`,
|
|
syncActivate: apiPath`sys/activation-flags/secrets-sync/activate`,
|
|
syncDestination: apiPath`sys/sync/destinations/${'type'}/${'name'}`,
|
|
syncSetAssociation: apiPath`sys/sync/destinations/${'type'}/${'name'}/associations/set`,
|
|
syncRemoveAssociation: apiPath`sys/sync/destinations/${'type'}/${'name'}/associations/remove`,
|
|
};
|