Commit Graph

322 Commits

Author SHA1 Message Date
Joshua Ogle
ba857d27c3
Merge branch 'master' into ui-copy-guidelines 2019-04-01 09:35:06 -06:00
Joshua Ogle
4635c81ba1 Fix copy for tests 2019-03-31 17:00:14 -06:00
Joshua Ogle
c13acac14f Consistent capitalization 2019-03-29 18:29:48 -06:00
Joshua Ogle
a5573502dd
Merge branch 'master' into ui-mobile-fixup 2019-03-29 15:18:38 -06:00
Joshua Ogle
796e2e21cc Fix User menu links on mobile 2019-03-29 13:50:19 -06:00
Josh Freda
6f1017066a Remove --disable-dev-shm-usage flag in CI 2019-03-28 17:44:33 -05:00
Joshua Ogle
9f23b1de38 Hide footer links on mobile 2019-03-28 16:15:48 -06:00
Matthew Irish
3c917a96b0
add support for authenticating with RADIUS (#6488) 2019-03-28 16:40:22 -05:00
Matthew Irish
0e759be3be
fix enterprise routing assertion (#6495) 2019-03-28 16:09:35 -05:00
Matthew Irish
9ba0372621
always show secrets tab in the main nav (#6477)
* always show secrets tab in the main nav

* remove secrets key from permissions service
2019-03-26 11:24:29 -05:00
Matthew Irish
43f06e0a8b
recompute has-permissions helper when permissions service attributes change (#6473) 2019-03-26 11:20:09 -05:00
Matthew Irish
81425f1511
use proto() not prototype (#6474) 2019-03-26 10:13:09 -05:00
Matthew Irish
96f7ccd71e
UI - add description as helpText, and add sensitive from x-vault-displaySensitive (#6411)
* add description from openAPI as helpText in the models, and add sensitive from x-vault-displaySensitive

* use TypeDurationSecond for TTLs on the GitHub auth method config

* remove empty vals in a loop and add tests

* hold off on changing GH config

* remove isEmpty import

* fix defaultValue
2019-03-14 16:12:13 -05:00
Matthew Irish
3bd53150c9
UI - jwt auth config model (#6410)
* have jwt auth config generated from OpenAPI response

* support for viewing and enabling an 'oidc' auth type

* finish oidc config and clean up auth config form
2019-03-14 16:01:56 -05:00
Matthew Irish
0acbfb5031
UI - fetch role for oidc auth when rendering the default form (#6399)
* fetch jwt role on render for default paths

* fix tests to expect fetching role on render at default paths

* update label for JWT auth method

* fix tests
2019-03-14 14:26:09 -05:00
Noelle Daley
eb4d799463
add AlertPopup (#6402)
* add AlertPopup

* use curlies

Co-Authored-By: noelledaley <noelledaley@users.noreply.github.com>
2019-03-13 14:52:09 -07:00
Matthew Irish
6e73c7e602
UI: fix bug where users couldn't nav back to unwrapped data (#6404)
* fix bug where users couldn't nav back to unwrapped data

* don't autocomplete wrapped token input on unwrap page
2019-03-13 09:43:57 -05:00
Joakim Bakke Hellum
6ec1c3b7b9 UI - Add space in enable secrets engine title (#6344)
This adds a space in the title of the enable secrets engine page. Example: "Enable Google Cloud KMSsecrets engine" should be "Enable Google Cloud KMS secrets engine"
2019-03-05 14:41:59 -06:00
Matthew Irish
00d9bb4368
use 'oidc' as the default when it's selected (#6338) 2019-03-05 10:03:54 -06:00
Matthew Irish
2c732cea0a
allow permissions service to match on glob path that may or may not end in / (#6301) 2019-03-01 15:16:53 -06:00
Matthew Irish
b585c20d06
UI - fix encoding for user-entered paths (#6294)
* directly depend on route-recognizer

* add path encode helper using route-recognizer normalizer methods

* encode user-entered paths/ids for places we're not using the built-in ember data buildUrl method

* encode secret link params

* decode params from the url, and encode for linked-block and navigate-input components

* add escape-string-regexp

* use list-controller mixin and escape the string when contructing new Regex objects

* encode paths in the console service

* add acceptance tests for kv secrets

* make encoding in linked-block an attribute, and use it on secret lists

* egp endpoints are enterprise-only, so include 'enterprise' text in the test

* fix routing test and exclude single quote from encoding tests

* encode cli string before tokenizing

* encode auth_path for use with urlFor

* add test for single quote via UI input instead of web cli
2019-03-01 10:08:30 -06:00
Matthew Irish
4ce2ad9b43
fix tests for auth-jwt and related functionality (#6277) 2019-02-21 16:21:23 -06:00
Jesus Fernandez Manzano
a277a41640
Fix wrong link in PKI menu-list
"Generate Certificate" button was linking to "sign" endpoint instead of "issue"
2019-02-20 12:29:08 +01:00
Brian Kassouf
731419f3c2 Merge remote-tracking branch 'oss/master' into 1.1-beta 2019-02-19 12:17:15 -08:00
Noelle Daley
a15bbee8f9
throw an error when starting vault if one occurs (#6235)
* throw an error when starting vault if one occurs

* use node 10

* do not use shorthand
2019-02-14 15:11:43 -08:00
madalynrose
368d431b93
Dynamic OpenAPI UI (#6209) 2019-02-14 13:52:34 -05:00
Matthew Irish
50c7797984
UI - jwt auth (#6188)
* fix default rendering of svg and allow plugins access to mount tune form

* add auth-jwt component

* add callback route, and allow it to be navigated to on load

* add jwt as a supported auth method

* use auth-jwt component and implement intial oidc flow

* allow wrapping un-authed requests

* pass redirect_url and properly redirect with the wrapped token

* popup for login

* center popup window and move to localStorage events for cross window communication because of IE11

* access window via a getter on the auth-form component

* show OIDC provider name on the button

* fetch default role on render of the auth-jwt component

* simplify auth-form template

* style callback page

* refetch auth_url when path changes for auth-jwt component

* fix glimmer error on alias metadata, and add back popup-metadata component

* fix link in metadata page

* add logo-edition component and remove use of partial for logo svg

* render oidc callback template on the loading page if we're going there

* add docs icon and change timeout on the auth form

* move OIDC auth specific things to auth-jwt component

* start to add branded buttons for OIDC providers

* add google button

* finish branded buttons

* update glyph for error messages

* update tests for auth screen not showing tabs, add adapter tests and new auth jwt tests

* start auth-jwt tests

* simplify auth-jwt

* remove negative top margin on AlertInline

* only preventDefault if there's an event

* fill out tests

* sort out some naming

* feedback on templates and styles

* clear error when starting OIDC auth and call for new auth_url

* also allow 'oidc' as the auth method type

* handle namespaces with OIDC auth

* review feedback

* use new getters in popup-metadata
2019-02-14 09:39:19 -06:00
Matthew Irish
fa13c45e7c update to node v10 for all of the things (#6218)
* update to node v10 for all of the things

* combine apt-get commands
2019-02-13 09:34:38 -05:00
Matthew Irish
b16527d791
fix nav-to-nearest mixin when there are no ancestors (#6198) 2019-02-08 18:50:50 -06:00
Noelle Daley
679c09e60f
UI/gate wizard (#6094)
* check for capabilities when finding matching paths

* disable wizard items that user does not have access to

* make hasPermissions accept an array of capabilities

* refactor features-selection

* fix tests

* implement feedback
2019-01-28 14:49:25 -08:00
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