mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-15 19:17:02 +02:00
* adds ldap ember engine (#20786) * adds ldap as mountable and supported secrets engine (#20793) * removes active directory as mountable secrets engine (#20798) * LDAP Config Ember Data Setup (#20863) * adds secret-engine-path adapter * adds model, adapater and serializer for ldap config * adds test for ldap config adapter * addresses PR feedback * updates remaining instances of getURL in secrets-engine-path adapter * adds underscore to getURL method in kubernetes/config adapter * adds check config vars test for kubernetes/config adapter * adds comment regarding primaryKey in secrets-engine-path adapter * adds tab-page-header component for ldap secrets engine (#20941) * LDAP Config Route (#21059) * converts secret-mount-path service to ts and moves kubernetes fetch-config decorator to core addon and converts to ts * adds ldap config route * fixes withConfig import path in kubernetes roles route * updates types in ldap config route * adds unit tests for fetch-secret-config decorator * updates comments in fetch-secret-config decorator * renames fetch-secret-config decorator * LDAP Configure Page Component (#21384) * adds ldap page configure component * removes pauseTest and updates radio card selector in ldap config test * LDAP Configuration (#21430) * adds ldap configuration route * adds secrets-engine-mount-config component to core addon * adds ldap config-cta component * adds display fields to ldap configuration page and test * fixes ldap config-cta test * adds yield to secrets-engine-mount-config component * fixes tests * LDAP Overview Route and Page Component (#21579) * adds ldap overview route and page component * changes toolbar link action type for create role on overview page * LDAP Role Model, Adapter and Serializer (#21655) * adds model, adapter and serializer for ldap roles * addresses review feedback * changes ldap role type from tracked prop to attr and sets in adapter for query methods * adds assertions to verify that frontend only props are returned from query methods in ldap role adapter * LDAP Library Model, Adapter and Serializer (#21728) * adds model, adapter and serializer for ldap library * updates capitalization and punction for ldap role and library form fields * LDAP Roles Create and Edit (#21818) * moves stringify and jsonify helpers to core addon * adds validation error for ttl picker in form field component * adds ldap roles create and edit routes and page component * adds ldap mirage handler and factory for roles * adds example workflow to json editor component * adds tests for ldap page create and edit component * addresses feedback * LDAP Role Details (#22036) * adds ldap role route to pass down model to child routes * adds ldap role details route and page component * updates ldap role model capabilities checks * adds periods to error messages * removes modelFor from ldap roles edit and details routes * adds flash message on ldap role delete success * LDAP Roles (#22070) * adds ldap roles route and page component * update ldap role adapter tests and adds adapter options to query for partialErrorInfo * updates ldap role adapter based on PR feedback * adds filter-input component to core addon * updates ldap roles page to use filter-input component * updates ldap role adapter tests * LDAP Role Credentials (#22142) * adds ldap roles route and page component * update ldap role adapter tests and adds adapter options to query for partialErrorInfo * adds credentials actions to ldap roles list menu and fixes rotate action in details view * adds ldap role credentials route and page component * adds tests for ldap role credentials * LDAP Library Create and Edit (#22171) * adds ldap library create/edit routes and page component * adds ldap library create-and-edit tests and library mirage factory * updates form-field component to display validation errors and warnings for all fields * updates ldap library edit route class name * updates ldap library model interface name * adds missing period in flash message * LDAP Libraries (#22184) * updates interface and class names in ldap roles route * adds ldap libraries route and page component * fixes lint error * LDAP Library Details (#22200) * updates interface and class names in ldap roles route * adds ldap libraries route and page component * fixes lint error * adds ldap library details route and page component * LDAP Library Details Configuration (#22201) * updates interface and class names in ldap roles route * adds ldap libraries route and page component * fixes lint error * adds ldap library details route and page component * adds ldap library details configuration route and page component * updates ldap library check-in enforcement value mapping * fixes issue in code mirror modifier after merging upgrade * fixes failing database secrets test * LDAP Library Account Details (#22287) * adds route and page component for ldap library accounts * adds ldap component for checked out accounts * updates ldap library adapter tests * LDAP Library Check-out (#22289) * adds route and page component for ldap library accounts * adds ldap component for checked out accounts * adds route and page component for ldap library checkout * addresses PR feedback * LDAP Overview Cards (#22325) * adds overview cards to ldap overview route * adds create library toolbar action to ldap overview route * adds acceptance tests for ldap workflows (#22375) * Fetch Secrets Engine Config Decorator Docs (#22416) * removes uneccesary asyncs from ldap route model hooks * updates ldap overview route class name * adds documentation for fetch-secrets-engine-config decorator * add changelog * adding back external links, missed due to merge. * changelog * fix test after merging in dashboard work * Update 20790.txt --------- Co-authored-by: Angel Garbarino <angel@hashicorp.com> Co-authored-by: Angel Garbarino <Monkeychip@users.noreply.github.com>
220 lines
8.5 KiB
JavaScript
220 lines
8.5 KiB
JavaScript
/**
|
|
* Copyright (c) HashiCorp, Inc.
|
|
* SPDX-License-Identifier: BUSL-1.1
|
|
*/
|
|
|
|
import EmberRouter from '@ember/routing/router';
|
|
import config from 'vault/config/environment';
|
|
|
|
export default class Router extends EmberRouter {
|
|
location = config.locationType;
|
|
rootURL = config.rootURL;
|
|
}
|
|
|
|
Router.map(function () {
|
|
this.route('vault', { path: '/' }, function () {
|
|
this.route('cluster', { path: '/:cluster_name' }, function () {
|
|
this.route('dashboard');
|
|
this.route('oidc-provider-ns', { path: '/*namespace/identity/oidc/provider/:provider_name/authorize' });
|
|
this.route('oidc-provider', { path: '/identity/oidc/provider/:provider_name/authorize' });
|
|
this.route('oidc-callback', { path: '/auth/*auth_path/oidc/callback' });
|
|
this.route('auth');
|
|
this.route('redirect');
|
|
this.route('init');
|
|
this.route('logout');
|
|
this.route('license');
|
|
this.route('mfa-setup');
|
|
this.route('clients', function () {
|
|
this.route('dashboard');
|
|
this.route('config');
|
|
this.route('edit');
|
|
});
|
|
this.route('storage', { path: '/storage/raft' });
|
|
this.route('storage-restore', { path: '/storage/raft/restore' });
|
|
this.route('settings', function () {
|
|
this.route('index', { path: '/' });
|
|
this.route('seal');
|
|
this.route('auth', function () {
|
|
this.route('index', { path: '/' });
|
|
this.route('enable');
|
|
this.route('configure', { path: '/configure/:method' }, function () {
|
|
this.route('index', { path: '/' });
|
|
this.route('section', { path: '/:section_name' });
|
|
});
|
|
});
|
|
this.route('mount-secret-backend');
|
|
this.route('configure-secret-backend', { path: '/secrets/configure/:backend' }, function () {
|
|
this.route('index', { path: '/' });
|
|
this.route('section', { path: '/:section_name' });
|
|
});
|
|
});
|
|
this.route('unseal');
|
|
this.route('tools', function () {
|
|
this.route('tool', { path: '/:selected_action' });
|
|
this.mount('open-api-explorer', { path: '/api-explorer' });
|
|
});
|
|
this.route('access', function () {
|
|
this.route('methods', { path: '/' });
|
|
this.route('method', { path: '/:path' }, function () {
|
|
this.route('index', { path: '/' });
|
|
this.route('item', { path: '/item/:item_type' }, function () {
|
|
this.route('list', { path: '/' });
|
|
this.route('create');
|
|
this.route('edit', { path: '/edit/:item_id' });
|
|
this.route('show', { path: '/show/:item_id' });
|
|
});
|
|
this.route('section', { path: '/:section_name' });
|
|
});
|
|
this.route('mfa', function () {
|
|
this.route('index', { path: '/' });
|
|
this.route('methods', function () {
|
|
this.route('index', { path: '/' });
|
|
this.route('create');
|
|
this.route('method', { path: '/:id' }, function () {
|
|
this.route('edit');
|
|
this.route('enforcements');
|
|
});
|
|
});
|
|
this.route('enforcements', function () {
|
|
this.route('index', { path: '/' });
|
|
this.route('create');
|
|
this.route('enforcement', { path: '/:name' }, function () {
|
|
this.route('edit');
|
|
});
|
|
});
|
|
});
|
|
this.route('leases', function () {
|
|
// lookup
|
|
this.route('index', { path: '/' });
|
|
// lookup prefix
|
|
// revoke prefix + revoke force
|
|
this.route('list-root', { path: '/list/' });
|
|
this.route('list', { path: '/list/*prefix' });
|
|
//renew + revoke
|
|
this.route('show', { path: '/show/*lease_id' });
|
|
});
|
|
// the outer identity route handles group and entity items
|
|
this.route('identity', { path: '/identity/:item_type' }, function () {
|
|
this.route('index', { path: '/' });
|
|
this.route('create');
|
|
this.route('merge');
|
|
this.route('edit', { path: '/edit/:item_id' });
|
|
this.route('show', { path: '/:item_id/:section' });
|
|
this.route('aliases', function () {
|
|
this.route('index', { path: '/' });
|
|
this.route('add', { path: '/add/:item_id' });
|
|
this.route('edit', { path: '/edit/:item_alias_id' });
|
|
this.route('show', { path: '/:item_alias_id/:section' });
|
|
});
|
|
});
|
|
this.route('control-groups');
|
|
this.route('control-groups-configure', { path: '/control-groups/configure' });
|
|
this.route('control-group-accessor', { path: '/control-groups/:accessor' });
|
|
this.route('namespaces', function () {
|
|
this.route('index', { path: '/' });
|
|
this.route('create');
|
|
});
|
|
this.route('oidc', function () {
|
|
this.route('clients', function () {
|
|
this.route('create');
|
|
this.route('client', { path: '/:name' }, function () {
|
|
this.route('details');
|
|
this.route('providers');
|
|
this.route('edit');
|
|
});
|
|
});
|
|
this.route('keys', function () {
|
|
this.route('create');
|
|
this.route('key', { path: '/:name' }, function () {
|
|
this.route('details');
|
|
this.route('clients');
|
|
this.route('edit');
|
|
});
|
|
});
|
|
this.route('assignments', function () {
|
|
this.route('create');
|
|
this.route('assignment', { path: '/:name' }, function () {
|
|
this.route('details');
|
|
this.route('edit');
|
|
});
|
|
});
|
|
this.route('providers', function () {
|
|
this.route('create');
|
|
this.route('provider', { path: '/:name' }, function () {
|
|
this.route('details');
|
|
this.route('clients');
|
|
this.route('edit');
|
|
});
|
|
});
|
|
this.route('scopes', function () {
|
|
this.route('create');
|
|
this.route('scope', { path: '/:name' }, function () {
|
|
this.route('details');
|
|
this.route('edit');
|
|
});
|
|
});
|
|
});
|
|
});
|
|
this.route('secrets', function () {
|
|
this.route('backends', { path: '/' });
|
|
this.route('backend', { path: '/:backend' }, function () {
|
|
this.mount('kmip');
|
|
this.mount('kubernetes');
|
|
this.mount('kv');
|
|
this.mount('ldap');
|
|
this.mount('pki');
|
|
this.route('index', { path: '/' });
|
|
this.route('configuration');
|
|
// because globs / params can't be empty,
|
|
// we have to special-case ids of '' with their own routes
|
|
this.route('list-root', { path: '/list/' });
|
|
this.route('create-root', { path: '/create/' });
|
|
this.route('show-root', { path: '/show/' });
|
|
this.route('edit-root', { path: '/edit/' });
|
|
|
|
this.route('list', { path: '/list/*secret' });
|
|
this.route('show', { path: '/show/*secret' });
|
|
this.route('diff', { path: '/diff/*id' });
|
|
this.route('metadata', { path: '/metadata/*secret' });
|
|
this.route('edit-metadata', { path: '/edit-metadata/*secret' });
|
|
this.route('create', { path: '/create/*secret' });
|
|
this.route('edit', { path: '/edit/*secret' });
|
|
|
|
this.route('credentials-root', { path: '/credentials/' });
|
|
this.route('credentials', { path: '/credentials/*secret' });
|
|
|
|
// kv v2 versions
|
|
this.route('versions-root', { path: '/versions/' });
|
|
this.route('versions', { path: '/versions/*secret' });
|
|
|
|
// ssh sign
|
|
this.route('sign-root', { path: '/sign/' });
|
|
this.route('sign', { path: '/sign/*secret' });
|
|
// transit-specific routes
|
|
this.route('actions-root', { path: '/actions/' });
|
|
this.route('actions', { path: '/actions/*secret' });
|
|
// database specific route
|
|
this.route('overview');
|
|
});
|
|
});
|
|
this.route('policies', { path: '/policies/:type' }, function () {
|
|
this.route('index', { path: '/' });
|
|
this.route('create');
|
|
});
|
|
this.route('policy', { path: '/policy/:type' }, function () {
|
|
this.route('show', { path: '/:policy_name' });
|
|
this.route('edit', { path: '/:policy_name/edit' });
|
|
});
|
|
this.route('replication-dr-promote', function () {
|
|
this.route('details');
|
|
});
|
|
if (config.addRootMounts) {
|
|
config.addRootMounts.call(this);
|
|
}
|
|
|
|
this.route('not-found', { path: '/*path' });
|
|
});
|
|
this.route('not-found', { path: '/*path' });
|
|
});
|
|
});
|