Commit Graph

292 Commits

Author SHA1 Message Date
Noelle Daley
20deed3a3d
Add Policy-based Navigation (#5967)
* add permissions service

* start template helper

* match prefixed paths

* gate sidebar links

* land on first page user has access to

* show nav when user first logs in

* clear paths when user logs out

* add tests

* implement feedback

* show all nav items if no policy is found

* update onboarding wizard

* fix some unrelated tests

* add support for namespaces

* gate wizard

* unstage package and lockfile
2019-01-18 14:04:40 -08:00
Riley Lahd
b436df67e9 Consider whole response in UI console when missing auth, data and wrap_info for non writes/deletes (#6073) 2019-01-18 14:02:11 -06:00
Riley Lahd
6b854b5f37 Format array, number and boolean outputs in ui console (Fixes #6054) (#6062)
* format array, number and boolean outputs in ui console

* Remove extra description from console output tests
2019-01-18 10:15:37 -06:00
Noelle Daley
181fe4414b
always show copy token button (#6064) 2019-01-17 14:36:54 -08:00
Noelle Daley
df51f3b7f2
add link to copy current token from user status bar (#6063) 2019-01-17 11:24:49 -08:00
Matthew Irish
118ce23f12
UI - only look for data.keys if it's not a queryRecord request on secrets (#6023) 2019-01-10 11:18:29 -06:00
Matthew Irish
8da2e1e9b0
UI - kv save error (#6022)
* don't prevent model save when the model is in the error state on secrets creation

* add test
2019-01-10 10:37:25 -06:00
Matthew Irish
96f103535e
Bug fix - ui context menu (#6018)
* add dot-to-dash helper

* fix context menu on policy page and add test for deletion

* use dot-to-dash where we use confirm component

* fix acceptance test
2019-01-09 12:30:19 -06:00
Matthew Irish
dc30fa9cf3
UI secret navigation improvements (#5976)
* don't pass id when using createRecord

* add find nearest ancestor mixin

* re-throw the error if we've deleted something and encounter a 404

* use the with-nav-to-nearest-ancestor mixin

* add some comments

* add acceptance test to verify new behavior

* yield final transition in ec task
2018-12-20 13:46:37 -06:00
Noelle Daley
7cf6b245fb
fix policies sidebar title (#5980) 2018-12-20 09:34:03 -08:00
Matthew Irish
fb3511922a
UI - fix perf standby feature display (#5971)
* add performanceStandbyCount to license model

* use count to determine if perf standby is an active feature

* rename test file and add tests for new perf standby behavior

* Update ui/app/templates/components/license-info.hbs

* update display language
2018-12-18 11:01:12 -06:00
Matthew Irish
1354d43056
add an auth-config adapter for jwt so that configs can be saved properly (#5936)
* add an auth-config adapter for jwt so that configs can be saved properly

* unskip some tests and add a test for jwt config

* linting
2018-12-12 16:53:45 -06:00
Noelle Daley
f075ed5d40
return correct format of random data generator (#5945) 2018-12-12 11:05:37 -08:00
madalynrose
b4edf515be
Search select (#5851) 2018-12-10 11:44:37 -05:00
Noelle Daley
eef531445b
mask password on ldap auth form (#5898) 2018-12-07 13:23:42 -08:00
Matthew Irish
6414fc32bf
UI - web cli layout (#5909)
* move console/ui-panel into nav-header component

* notch-specific CSS

* add layout test in the application for the console
2018-12-07 14:00:52 -06:00
Chris Dituri
5400817560 ui/app/adapters/pki.js: fix typo in assert() message (#5882)
Update the assertion to indicate, in order to override the PKI adapter
url() method, one should extend the PKI adapter; not the SSH adapter.
2018-12-03 16:14:59 -06:00
Matthew Irish
7cab74ca01
UI - kv v2 graceful degrade (#5879)
* turns out sourcemaps are useful

* add test for restricted policy in kv v2

* only include version param on fetch if it's encoded in the id

* rename some vars for clarity and use model.id when persisting a secret

* fix delete attributes on the models

* allow data edit when there's metadata access is disallowed

* add tests for edit with restricted policy

* hide metadata fields if you can't edit them
2018-12-03 08:22:13 -06:00
Matthew Irish
8dd46cf04e
UI - fix policy pagination bug (#5866)
* centralize page size setting, and default to page size of 5 in dev

* remove size arg when using lazyPaginatedQuery so that the app uses the config default size

* move list-pagination component out of the loop

* update store tests
2018-11-28 17:14:42 -06:00
Matthew Irish
9ac285c542
UI - fix bug in policy creation from files (#5864)
* fix bug in trim-right util where the last ending wasn't trimming from the end of the string

* simplify based on feedback
2018-11-28 10:35:55 -06:00
Matthew Irish
9da4c73026
UI - Correct the DR token command (#5857)
* fix dr-token generation token command

* inject version service in the status menu so we can hide the license link in the status menu
2018-11-27 17:05:34 -06:00
Noelle Daley
c2fd8b408b
style replication management warnings (#5852) 2018-11-27 14:40:33 -08:00
Joshua Ogle
7265debd8e UI: Fix popup menu active color and license link 2018-11-26 22:42:42 -07:00
Noelle Daley
bb9a6ff2a5 remove scrollbars from auth form 2018-11-26 11:13:07 -08:00
Matthew Irish
8f481125f7
UI - build optimize (#5784)
* remove ember-cli-favicon

* link to png favicon in public folder

* skip some things in the build depending on the env

* update to ember-cli 3.5.0 for broccoli 2, and ember-fetch because it was incompatible with broccoli 2

* update some things the new sass module wasn't happy about

* turn off more things in dev to make the build faster

* bump to the latest ember-cli and move back to node-sass

* remove sass since we're using node-sass

* include polyfill in test as well
2018-11-26 12:47:56 -06:00
Noelle Daley
10cd6bb8b9 replace moment.js with date-fns 2018-11-20 15:15:52 -08:00
Matthew Irish
47eb3f76bc
return backend on the PKI model so that capabilities fetches work (#5824) 2018-11-19 15:48:24 -06:00
Matthew Irish
cd1eaf3864
if the secret doesn't exist, set cas to 0 (#5823) 2018-11-19 15:47:58 -06:00
Matthew Irish
767f35e10e
UI secondary dr recovery token fix (#5818)
* use the OTP that the server provides instead of generating one in the JS client

* fix button styling

* differentiate between OTP and encoded token and encrypted token in the template
2018-11-19 15:14:24 -06:00
Matthew Irish
1036b29890 pass emptyActions through list view component and render into EmptyState 2018-11-15 16:48:28 -06:00
Matthew Irish
868eca5c99 use EmptyState on secrets list 2018-11-15 16:48:25 -06:00
Matthew Irish
08bbfd6686 make sure tabs show up on identity show pages 2018-11-15 16:48:22 -06:00
Matthew Irish
5197a531f0 don't show disable button for groups 2018-11-15 16:48:19 -06:00
Matthew Irish
2d864cb141 don't use bulma classes for empty-state 2018-11-15 16:48:16 -06:00
Matthew Irish
98ccba4acf lint 2018-11-15 16:48:13 -06:00
Matthew Irish
a80b649dbe move Add -> Create, add emptyTitle for leases list 2018-11-15 16:48:09 -06:00
Matthew Irish
4d8e6fa1cc use anchors and LearnLink component 2018-11-15 16:48:04 -06:00
Matthew Irish
5f71ee9940 use outer-html component as a base for empty state 2018-11-15 16:48:00 -06:00
Matthew Irish
c4c987ee19 add learn link component 2018-11-15 16:47:57 -06:00
Joshua Ogle
1bf4886cb4 Fix prettier style on List View test 2018-11-15 16:47:53 -06:00
Joshua Ogle
4767923a8f Better empty state copy 2018-11-15 16:47:50 -06:00
Joshua Ogle
ab00bc8d96 Replaced more old empty states 2018-11-15 16:47:47 -06:00
Joshua Ogle
f6924209c3 Remove old BlockEmpty component 2018-11-15 16:47:44 -06:00
Joshua Ogle
865d10e3d3 Add Empty State component 2018-11-15 16:47:41 -06:00
Matthew Irish
2858fc13e3
UI husky (#5752)
* add husky and lint-staged as optional deps

* make sure make-driven builds don't install husky, and update the ui/README
2018-11-14 12:57:03 -06:00
madalynrose
5fcd87a07f
Add Response Wrapping For Secrets (#5664) 2018-11-12 11:27:06 -05:00
Noelle Daley
a08996004b remove quotes from button disabled 2018-11-09 14:52:07 -08:00
Noelle Daley
7e0837ef63 add disable secrets engine button 2018-11-09 14:52:06 -08:00
Matthew Irish
95983c4540
UI json edit test (#5705)
* add new codemirror helpers

* adding json helpers to the secret pages

* mark the edit button / link as the edit element instead of the json toggle

* add acceptance tests for JSON editing
2018-11-09 14:00:53 -06:00
Noelle Daley
59b9476314 specify node version 2018-11-08 15:49:39 -08:00
madalynrose
c6b497a6f6
Add new token_type filed to auth method mount-config (#5723) 2018-11-07 14:34:33 -05:00
Matthew Irish
aec63a7e85
UI - add babel polyfill (#5714)
* include babel polyfill in the build

* submit not sumbit
2018-11-06 20:19:12 -06:00
Matthew Irish
62c981c54b
UI: change backends template so that the icon shows in a namespace (#5692)
* change backends template so that the icon shows in a namespace

* icons for secret-list and method list in a namespace
2018-11-05 17:12:51 -06:00
Matthew Irish
be33d6580b
UI - new token renew banner (#5662)
* move warning banner out of token-expire-warning and into user menu
* check renewal status every 5s, and resume auto-renew if a user becomes active again
* use a link in the token-expire-warning
* add test for new expiration functionality
* fix license test
* use features helper in license test
* fix import
* use yarn 1.12.1
* remove mirage
* skip some tests for now
* use eslintignore
* logout after auth tests
* use new alert-banner for auth info warning
* add data-test selector back
* move identity back to a button, and style button.link
* make the warning message the right color
* fix shamir test
* review feedback
2018-11-05 10:56:59 -06:00
Joshua Ogle
a4c693014b
Merge pull request #5672 from hashicorp/ui-alerts-update
UI: Update banner and popup alerts
2018-11-02 14:14:30 -06:00
Joshua Ogle
b642b6a78c Add Inline Alert component 2018-11-02 11:21:15 -06:00
Matthew Irish
730063b656
ui kv routing fix (#5650)
* fix passing initialKey to the top level secret create page

* add service that uses the private routing service because of various bugs

* make custom router service more like the bundled router service

* clear the store cache when the model changes
2018-11-02 12:03:46 -05:00
Joshua Ogle
e768e6a596 Style popup alerts 2018-11-02 09:37:31 -06:00
Joshua Ogle
c5a250f1d5 Style Alert Banners 2018-11-02 09:22:22 -06:00
Noelle Daley
b45404ba92 docs: add note about husky and lint-staged 2018-11-01 14:45:25 -07:00
Noelle Daley
a1be7db077 upgrade husky 2018-11-01 14:45:24 -07:00
Noelle Daley
3f5bf70752 ui: use prettier with eslint 2018-11-01 14:45:23 -07:00
Chris Hoffman
8ad28998bc
removing no longer valid features (#5656) 2018-11-01 09:17:47 -04:00
madalynrose
bd55a623a1
fix bug where json editing doesn't save properly for secrets (#5660) 2018-10-31 18:37:23 -04:00
madalynrose
7eb7de3d59
mask init keys (#5657) 2018-10-31 17:41:21 -04:00
madalynrose
abd6eb88c2
add copy button to kv secrets masked input (#5627) 2018-10-31 13:13:57 -04:00
madalynrose
6576251de1
update capabilities logic for sudo prefixes (#5647)
update capabilities logic to determine need for sudo based on sudo prefix paths
2018-10-31 11:24:36 -04:00
Noelle Daley
d46fa5bd58 enable gcpkms 2018-10-30 13:35:32 -07:00
Noelle Daley
0559f5165b enable alicloud in the ui 2018-10-30 13:25:59 -07:00
Matthew Irish
7e339b117c
UI - New navbar and mount icons everywhere (#778)
New look for the navbar and new functionality on mobile. Also includes new look for the mounts list and headers in secret engines.
2018-10-21 14:19:34 -05:00
Matthew Irish
a58745b6b6
UI - kv v2 versions page (#5563)
* add versions routes

* move commands and permissions check to stand-alone menu component

* add versions template

* make list-item component more flexible and use hasMenu to optionally render the menu

* move current check next to the version

* fix linting

* remove is-wide from secret list popup
2018-10-19 17:24:57 -05:00
madalynrose
d069e90e4d
add masked input to sensitive parts of credentials (#5551) 2018-10-19 15:16:43 -04:00
Matthew Irish
e01d050528 isPending not isLoading 2018-10-18 15:11:26 -05:00
Matthew Irish
0d91d85860 more 'not allowed' messaging 2018-10-18 14:55:52 -05:00
Matthew Irish
24b0e2df7b check capabilities for version actions 2018-10-18 14:55:52 -05:00
Matthew Irish
fff6639935 also send reload in case we're on the root already 2018-10-18 14:55:51 -05:00
Matthew Irish
d827f26a64 redirect to list-root after deleting a secret from the list page 2018-10-18 14:55:51 -05:00
Matthew Irish
d02fcd0d27 add necessary computed macros and template for contextual menus for v1 and v2 secrets 2018-10-18 14:55:51 -05:00
Matthew Irish
69c5df84cb use backend / secretId in models created on list responses for secrets v1 and v2 2018-10-18 14:55:51 -05:00
Matthew Irish
59eb61698b use maybeQueryRecord in lazyCapabilities macro and only continue if passed attributes are non-null 2018-10-18 14:55:51 -05:00
Matthew Irish
3ffaf5350f add warning if you're creating a new version with old versions data 2018-10-18 14:55:51 -05:00
Matthew Irish
963c863157 fix tests 2018-10-18 14:55:51 -05:00
Matthew Irish
5d44827c83 special case backend attr on the secret v1 model 2018-10-18 14:55:50 -05:00
Matthew Irish
940b69bc07 move key mixin to the mixin dir and update imports - also use it in secret-v2 model 2018-10-18 14:55:50 -05:00
Matthew Irish
5c8a71b67a fix metadata save on creation and use autocomplete=off for inputs 2018-10-18 14:55:50 -05:00
Matthew Irish
f7643a519e add in secret metadata form for create 2018-10-18 14:55:50 -05:00
Matthew Irish
712e3e73ec add secret metadata editing and fix v1 links 2018-10-18 14:55:50 -05:00
Matthew Irish
59280ef6e1 use cas when saving secret version 2018-10-18 14:55:50 -05:00
Matthew Irish
077f366954 use model dirty tracking to track changes 2018-10-18 14:55:49 -05:00
Matthew Irish
e5ff92962d create version from old versions uses that data in the edit page 2018-10-18 14:55:49 -05:00
Matthew Irish
aa1859f71e fix styling and only focus input type=text 2018-10-18 14:55:49 -05:00
Matthew Irish
32b19ad7f6 load and view different secret versions 2018-10-18 14:55:49 -05:00
Matthew Irish
f36b9da02f fix error with namespaces by reloading, new switch styles 2018-10-18 14:55:49 -05:00
Matthew Irish
ffee108908 fix padding on masked-input and web cli 2018-10-18 14:55:49 -05:00
Matthew Irish
5d3c576b80 make delete, destory, undelete work via the ui 2018-10-18 14:55:48 -05:00
Matthew Irish
66a4c26184 extract list-header css component to match header from namespace-picker 2018-10-18 14:55:48 -05:00
Matthew Irish
76524273d9 add block-error and block-empty components to centralize some bulma markup 2018-10-18 14:55:48 -05:00
Matthew Irish
15bf5667ce add new icon 2018-10-18 14:55:48 -05:00
Matthew Irish
69c8a122a6 use new local capabilities, move secret-edit-display partial to a component 2018-10-18 14:54:36 -05:00
Matthew Irish
d057ba1a5d move capabilities into the secret-edit component 2018-10-18 14:54:36 -05:00