mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-22 15:11:07 +02:00
* updates auth method list and config views to use api service * adds capabilities checks to auth methods route * fixes auth method config tests * updates SecretsEngine type to Mount * updates listingVisibility value in config test * adds missing copyright header
30 lines
1.1 KiB
TypeScript
30 lines
1.1 KiB
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 = {
|
|
customLogin: apiPath`sys/config/ui/login/default-auth/${'id'}`,
|
|
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`,
|
|
kvConfig: apiPath`${'path'}/config`,
|
|
authMethodConfig: apiPath`auth/${'path'}/config`,
|
|
authMethodConfigAws: apiPath`auth/${'path'}/config/client`,
|
|
authMethodDelete: apiPath`sys/auth/${'path'}`,
|
|
};
|