mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-19 13:41:10 +02:00
* Revert "UI: Remove custom service (#19925)" This reverts commit b04751d22437b06947a84148c499c4728602b5e1. * replace stickyInfo with options info * revert replacing custom stickyInfo * change flash message name to be consistent throughout application * make service imports consistent for k8 engine * replace stickyInfo with options info * Revert "change flash message name to be consistent throughout application" This reverts commit 17de49894de3976ed708fcf15f19f6f1eb1012a5. * add comment --------- Co-authored-by: Chelsea Shaw <cshaw@hashicorp.com>
80 lines
2.1 KiB
JavaScript
80 lines
2.1 KiB
JavaScript
/**
|
|
* Copyright (c) HashiCorp, Inc.
|
|
* SPDX-License-Identifier: MPL-2.0
|
|
*/
|
|
|
|
import Application from '@ember/application';
|
|
import Resolver from 'ember-resolver';
|
|
import loadInitializers from 'ember-load-initializers';
|
|
import config from 'vault/config/environment';
|
|
|
|
export default class App extends Application {
|
|
modulePrefix = config.modulePrefix;
|
|
podModulePrefix = config.podModulePrefix;
|
|
Resolver = Resolver;
|
|
engines = {
|
|
openApiExplorer: {
|
|
dependencies: {
|
|
services: ['auth', 'flash-messages', 'namespace', 'router', 'version'],
|
|
},
|
|
},
|
|
replication: {
|
|
dependencies: {
|
|
services: ['auth', 'flash-messages', 'namespace', 'replication-mode', 'router', 'store', 'version'],
|
|
externalRoutes: {
|
|
replication: 'vault.cluster.replication.index',
|
|
},
|
|
},
|
|
},
|
|
kmip: {
|
|
dependencies: {
|
|
services: [
|
|
'auth',
|
|
'download',
|
|
'flash-messages',
|
|
'namespace',
|
|
'path-help',
|
|
'router',
|
|
'store',
|
|
'version',
|
|
'secret-mount-path',
|
|
],
|
|
externalRoutes: {
|
|
secrets: 'vault.cluster.secrets.backends',
|
|
},
|
|
},
|
|
},
|
|
kubernetes: {
|
|
dependencies: {
|
|
services: ['router', 'store', 'secret-mount-path', 'flash-messages'],
|
|
externalRoutes: {
|
|
secrets: 'vault.cluster.secrets.backends',
|
|
},
|
|
},
|
|
},
|
|
pki: {
|
|
dependencies: {
|
|
services: [
|
|
'auth',
|
|
'download',
|
|
'flash-messages',
|
|
'namespace',
|
|
'path-help',
|
|
'router',
|
|
'secret-mount-path',
|
|
'store',
|
|
'version',
|
|
],
|
|
externalRoutes: {
|
|
secrets: 'vault.cluster.secrets.backends',
|
|
externalMountIssuer: 'vault.cluster.secrets.backend.pki.issuers.issuer.details',
|
|
secretsListRoot: 'vault.cluster.secrets.backend.list-root',
|
|
secretsListRootConfiguration: 'vault.cluster.secrets.backend.configuration',
|
|
},
|
|
},
|
|
},
|
|
};
|
|
}
|
|
|
|
loadInitializers(App, config.modulePrefix);
|