-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UI: Pki engine (redesign) routing changes #17997
Changes from all commits
8fd1ac3
2f5906f
9a664dd
4f20c2a
ece7ac9
4ab8793
3f24692
7798623
a50ce9d
2106975
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,45 +3,44 @@ import buildRoutes from 'ember-engines/routes'; | |
export default buildRoutes(function () { | ||
this.route('overview'); | ||
this.route('configuration', function () { | ||
this.route('index', { path: '/' }); | ||
this.route('tidy'); | ||
this.route('create', function () { | ||
this.route('index', { path: '/' }); | ||
this.route('import-ca'); | ||
this.route('generate-root'); | ||
this.route('generate-csr'); | ||
}); | ||
this.route('create'); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
this.route('edit'); | ||
this.route('details'); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the config details will instead live at |
||
}); | ||
this.route('roles', function () { | ||
this.route('index', { path: '/' }); | ||
this.route('create'); | ||
this.route('role', { path: '/:id' }, function () { | ||
this.route('role', { path: '/:role' }, function () { | ||
this.route('details'); | ||
this.route('edit'); | ||
this.route('generate'); | ||
this.route('sign'); | ||
}); | ||
}); | ||
this.route('issuers', function () { | ||
this.route('index', { path: '/' }); | ||
this.route('issuer', { path: '/:id' }, function () { | ||
this.route('import'); | ||
this.route('generate-root'); | ||
this.route('generate-intermediate'); | ||
this.route('issuer', { path: '/:issuer_ref' }, function () { | ||
this.route('details'); | ||
this.route('edit'); | ||
this.route('sign'); | ||
this.route('cross-sign'); | ||
}); | ||
}); | ||
this.route('certificates', function () { | ||
this.route('index', { path: '/' }); | ||
this.route('create'); | ||
this.route('certificate', { path: '/:id' }, function () { | ||
this.route('certificate', { path: '/:serial' }, function () { | ||
this.route('details'); | ||
this.route('edit'); | ||
}); | ||
}); | ||
this.route('keys', function () { | ||
this.route('index', { path: '/' }); | ||
this.route('generate'); | ||
this.route('create'); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. opted for |
||
this.route('import'); | ||
this.route('key', { path: '/:id' }, function () { | ||
this.route('key', { path: '/:key_ref' }, function () { | ||
this.route('details'); | ||
this.route('edit'); | ||
}); | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import Route from '@ember/routing/route'; | ||
|
||
export default class PkiCertificateDetailsRoute extends Route {} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import Route from '@ember/routing/route'; | ||
|
||
export default class PkiConfigurationRoute extends Route {} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import Route from '@ember/routing/route'; | ||
|
||
export default class PkiConfigurationCreateRoute extends Route {} |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import Route from '@ember/routing/route'; | ||
|
||
export default class PkiIssuersGenerateIntermediateRoute extends Route {} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import Route from '@ember/routing/route'; | ||
|
||
export default class PkiIssuersGenerateRootRoute extends Route {} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import Route from '@ember/routing/route'; | ||
|
||
export default class PkiIssuersImportRoute extends Route {} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import Route from '@ember/routing/route'; | ||
|
||
export default class PkiIssuerCrossSignRoute extends Route {} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import Route from '@ember/routing/route'; | ||
|
||
export default class PkiIssuerDetailsRoute extends Route {} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import Route from '@ember/routing/route'; | ||
|
||
export default class PkiIssuerEditRoute extends Route {} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import Route from '@ember/routing/route'; | ||
|
||
export default class PkiIssuerSignRoute extends Route {} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import Route from '@ember/routing/route'; | ||
|
||
export default class PkiKeysCreateRoute extends Route {} |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
import Route from '@ember/routing/route'; | ||
|
||
export default class PkiKeysKeyDetailsRoute extends Route {} | ||
export default class PkiKeyDetailsRoute extends Route {} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
import Route from '@ember/routing/route'; | ||
|
||
export default class PkiKeysKeyEditRoute extends Route {} | ||
export default class PkiKeyEditRoute extends Route {} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
import Route from '@ember/routing/route'; | ||
|
||
export default class RolesRoleDetailsRoute extends Route {} | ||
export default class PkiRoleDetailsRoute extends Route {} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
import Route from '@ember/routing/route'; | ||
|
||
export default class RolesRoleEditRoute extends Route {} | ||
export default class PkiRoleEditRoute extends Route {} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import Route from '@ember/routing/route'; | ||
|
||
export default class PkiRoleGenerateRoute extends Route {} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import Route from '@ember/routing/route'; | ||
|
||
export default class PkiRoleSignRoute extends Route {} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
route: certificate.details |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
route: pki.configuration.create |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
route: issuers.generate-intermediate |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
route: issuers.generate-root |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
{{! https://github.com/hashicorp/vault/blob/main/website/content/api-docs/secret/pki.mdx#import-ca-certificates-and-keys }} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ooooh the documentation right in the route stub! I love it! |
||
route: issuers.import POST /pki/issuers/import/bundle POST /pki/issuers/import/cert |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
route: issuers.issuer.cross-sign |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
route: issuers.issuer.details |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
route: issuers.issuer.edit |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
route: issuers.issuer.sign |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
route: roles.role.generate |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hashishaw and I had discussed nesting these components in a
pki/
folder so that there weren't any conflicts with the addon engine. But for some reason the role form had trouble finding<Pki::KeyParameters>
so I opted for prefixing the files withpki-
instead