2018-10-12 18:49:06 +00:00
|
|
|
import TutorialMachineConfig from 'vault/machines/tutorial-machine';
|
|
|
|
import SecretsMachineConfig from 'vault/machines/secrets-machine';
|
|
|
|
import PoliciesMachineConfig from 'vault/machines/policies-machine';
|
|
|
|
import ReplicationMachineConfig from 'vault/machines/replication-machine';
|
|
|
|
import ToolsMachineConfig from 'vault/machines/tools-machine';
|
|
|
|
import AuthMachineConfig from 'vault/machines/auth-machine';
|
|
|
|
|
|
|
|
export const STORAGE_KEYS = {
|
|
|
|
TUTORIAL_STATE: 'vault:ui-tutorial-state',
|
|
|
|
FEATURE_LIST: 'vault:ui-feature-list',
|
|
|
|
FEATURE_STATE: 'vault:ui-feature-state',
|
2018-10-18 19:19:50 +00:00
|
|
|
FEATURE_STATE_HISTORY: 'vault:ui-feature-state-history',
|
2018-10-12 18:49:06 +00:00
|
|
|
COMPLETED_FEATURES: 'vault:ui-completed-list',
|
|
|
|
COMPONENT_STATE: 'vault:ui-component-state',
|
|
|
|
RESUME_URL: 'vault:ui-tutorial-resume-url',
|
|
|
|
RESUME_ROUTE: 'vault:ui-tutorial-resume-route',
|
|
|
|
};
|
|
|
|
|
|
|
|
export const MACHINES = {
|
|
|
|
tutorial: TutorialMachineConfig,
|
|
|
|
secrets: SecretsMachineConfig,
|
|
|
|
policies: PoliciesMachineConfig,
|
|
|
|
replication: ReplicationMachineConfig,
|
|
|
|
tools: ToolsMachineConfig,
|
|
|
|
authentication: AuthMachineConfig,
|
|
|
|
};
|
|
|
|
|
|
|
|
export const DEFAULTS = {
|
|
|
|
currentState: null,
|
|
|
|
featureList: null,
|
|
|
|
featureState: null,
|
|
|
|
currentMachine: null,
|
|
|
|
tutorialComponent: null,
|
|
|
|
featureComponent: null,
|
|
|
|
stepComponent: null,
|
|
|
|
detailsComponent: null,
|
|
|
|
componentState: null,
|
|
|
|
nextFeature: null,
|
|
|
|
nextStep: null,
|
2018-10-18 19:19:50 +00:00
|
|
|
featureMachineHistory: null,
|
|
|
|
};
|
|
|
|
|
|
|
|
export const FEATURE_MACHINE_STEPS = {
|
|
|
|
secrets: {
|
|
|
|
encryption: 5,
|
|
|
|
secret: {
|
|
|
|
list: 4,
|
|
|
|
secret: 5,
|
|
|
|
},
|
|
|
|
role: 7,
|
2022-04-26 19:17:42 +00:00
|
|
|
provider: 8,
|
2018-10-18 19:19:50 +00:00
|
|
|
},
|
|
|
|
policies: 5,
|
|
|
|
replication: 2,
|
|
|
|
tools: 8,
|
|
|
|
authentication: 4,
|
|
|
|
};
|
|
|
|
|
|
|
|
export const INIT_STEPS = ['setup', 'save', 'unseal', 'login'];
|
|
|
|
|
|
|
|
export const FEATURE_MACHINE_TIME = {
|
|
|
|
secrets: 7,
|
|
|
|
policies: 5,
|
|
|
|
replication: 5,
|
|
|
|
tools: 8,
|
|
|
|
authentication: 5,
|
2018-10-12 18:49:06 +00:00
|
|
|
};
|