Commit Graph

23 Commits

Author SHA1 Message Date
Westly Wright b51b28f5cc
Move new restricted admin to login access roles
rancher/rancher#29315
2020-10-01 16:44:37 -07:00
Westly Wright 41d1813121
filter global role bindings assigned to a group when creating user 2020-06-22 14:50:29 -07:00
Westly Wright b112dcc914
remove null/undefined entries from baseRoles array
This occurs when a non-admin or user that doesn't have access to global roles
lands on the page.

rancher/rancher#24458
2019-12-09 13:50:14 -07:00
Westly Wright a2d5289e26
check for empty rules before pusing into rules array
rancher/rancher#24438
2019-12-05 14:43:44 -07:00
Westly Wright a256d4cddc
populate default roles for custom roles as well 2019-12-03 15:10:53 -07:00
Westly Wright 78d23ab4d9
pass user-roles to save and add all target to resource validation
rancher/rancher#24362
2019-12-03 12:54:46 -07:00
Westly Wright 0d8d6ab28e
Refactor role permissions validator
the old permissions validating was somewhat dumb in its checking, only looking
for local names of roles. This updates the check to loop through all the roles
and fetch there rules upon which we check for the existance of certain rules and
targets.

This also includes fixes for some broken links which happened as apart of the
previous change to this area.

This also fixes a broken translation

rancher/rancher#24341
2019-12-03 11:46:34 -07:00
Westly Wright a7a81456b4
Feature: associate global role w/external group
rancher/rancher#23452

expose link-to new-group route

Translations change and move static property (convention)

Refactor form-global-roles

Refactor such that user and group are optional parameters. Adds
groupPrincipalId. Destructure smarter so that users are not required for the
mapper function to work. Move bindings to own init. Refactor make to recognize
groups. Translations changes.

Add cru-group-account component

This component does not actually create a group but a global-role-binding with a
groupPrincipalId instead of a userId. Perhaps cru-global-role-binding would work
but in the future this component can and probably will be adapted to create
local groups as well, so the name would fit. At that point the component could
also be refactored to work for the add user page because at that point pretty
much doing the same thing but that is not with-in the scope of this change.

Currently the componet is expected to be used with an auth provider that
supports groups which is why it does not also create the group. This should be
taken into consideration if we ever update this to work with local groups.

Translations changes.

formatting

wip

Add tab nav template only component

rename users index route -> users & add groups route

get groups from grb list and build groupPrincipal list

Add role binding to the fetched group principal

Add account-group-row component and define table row views

global role binding with group edit page

Fix transitionTo in cancel and doneSaving -> cru-group-account

translations

Add initialPrincipal param to input-identity to allow use on edit

reduce duplicate principal calls and display on groups list page

fix role links types from account-group-row

add group delete functionality

translations and bulk action fix

sort global role names in modal and row

delete GRB modal translations

move users route to security-> users, break out groups route security

remove unneeded component

Live update fixes

translation fix

fix broken link to old accounts route

remove unneeded props, angle bracket components, general cleanup

lint fixes

Change add group button

Add warning on add group for non-local auth only and translations

Remove warning from delete group modal and change translations

re-org form-global-roles display

breaks the display out into base|user-custom|additional roles
adds back in details & descriptions
fixes role ids in translations file
2019-12-02 09:40:26 -07:00
Westly Wright 94a4c1a7e2
cleanup from review 2019-10-23 12:10:11 -07:00
Westly Wright 943d8b6662
refactor global permissions to simplify and not overwrite roles
When global roles were added the front end had to make some assumptions for
non-admin users to ensure the user had login access. This role used to be hidden
but was made visible by default. With this exposed we now check before save if
the user has some kind of login access and throw an error if not. We also no
longer need to hide the custom roles which allows new user default roles to be
displayed without all the crazy logic to decide which mode to show. The old
login-access read only param was removed; This used to map to user-base and we
only displayed it because the role was hidden.

rancher/rancher#23644
2019-10-23 12:08:42 -07:00
loganhz 1c6f481fe4 Fix custom role issue 2019-08-17 14:59:56 +08:00
Vincent Fiduccia 93f922b92d
eslint --fix 2018-07-20 11:47:19 -07:00
Vincent Fiduccia 0686d4840d
Revert part of eslint fix 2018-07-16 17:50:16 -07:00
Westly Wright 877ed1f522
More lint files changes (see lib) 2018-07-11 14:06:27 -07:00
Westly Wright 5e6c056864
Upgrade ember -> 3.1
also linting errors
2018-05-09 11:24:36 -07:00
Vincent Fiduccia cf39b29c1d
Principal select bugs, role row click 2018-03-08 14:09:57 -07:00
Westly Wright fb2f050a16
global roles custom select issues
rancher/rancher#12030
2018-03-07 16:40:44 -07:00
Westly Wright 9fc2c8f700
Prevent users without roles from being created 2018-03-05 14:11:41 -07:00
Westly Wright b354444a67
fix user roles editing
rancher/rancher#11227
2018-01-30 14:33:19 -07:00
Westly Wright 259a1824bc
change role bindings to use the userId field rather then subjectName 2018-01-26 16:30:43 -07:00
Vincent Fiduccia b826e0ee0d
changepass, gke version, lint, user roles 2018-01-20 14:14:54 -07:00
Westly Wright 9910d43df4
Add new user-base role 2018-01-19 15:17:53 -07:00
Vincent Fiduccia af95ff9119
Global role binding editor 2018-01-17 03:02:31 -07:00