Commit Graph

308 Commits

Author SHA1 Message Date
Westly Wright 5e69e5c40c
ensure create new role link doesn't reuse cached query params
rancher/rancher#25086
2020-01-31 15:39:47 -07:00
Westly Wright 5f6dfbaf47
Expose nonResourceURLs on global role editor
rancher/rancher#25085
2020-01-31 14:59:19 -07:00
loganhz 036691dad9 Support search node in cluster list
https://github.com/rancher/rancher/issues/23305
2020-01-06 17:30:38 +08:00
Cody Jackson 9e03d4a41b Improve Vsphere UX around cloudinit/cloudconfig
There was confusion and misuse around cloudinit and cloudconfig.
This change switches things up so cloudinit is only used for the
legacy creation type and cloudconfig is used for all other creation
types.

Changes the textarea that was used for cloudconfig to
input-yaml to make it clear to users that they can enter yaml.

Switches the vmware cloud credential vcenter input to an input-url
so that we automatically strip the scheme from the input.

rancher/rancher#24314
2019-12-20 10:48:49 -07:00
loganhz 78320f78de Fix psp labels issues
https://github.com/rancher/rancher/issues/24621
2019-12-17 11:07:16 +08: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 fcf05c3681
remove group link that doesn't work 2019-12-02 14:25:51 -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 d0a9c4179f
Fix recompute bug 2019-11-18 12:35:23 -07:00
Westly Wright 1ac41a98ce
Allow users to create global roles
rancher/rancher#23453
2019-11-18 10:45:14 -07:00
Westly Wright 6656c6601d
Setup observed property on init rather than default to object @ boot
`templateChanged` which loads the content of what we need for a MC app was
updated to watch a new property, `editable: { selectedTemplateUrl } `. The new
property was declared on the component as a object. Observers watching a static
object and that have never been fetched do not recompute. If we set the property
on init to the object it would have been declared with then additional sets on
the watched property cause the observer to recompute.

rancher/rancher#24057
2019-11-14 10:55:44 -07:00
Westly Wright 8c9789f82f
check answers required fields for mc app
rancher/rancher#24057
2019-11-12 16:25:14 -07:00
Westly Wright da782cacc0
Expose wait and timeout on mc and regular apps
rancher/rancher#22373
2019-11-04 09:52:55 -07:00
Cody Jackson 53681e397e Prevent App editing from modifying state on cancel
When editing both single and multi-cluster apps if you modified the
Template Version or the Target Projects and then cancelled it the
underlying store was still modified which then reflected those changes
on other pages like the single and multi-Cluster Apps pages.

To change this I cloned and nested the fields into a nested object named
'editable' and updated the primarySource on willSave for the relevant
targets subfield.

rancher/rancher#21228
2019-10-31 10:03:36 -07:00
Westly Wright a03fc685b6
Merge pull request #3499 from lvuch/lh-1015
22180
2019-10-25 08:47:22 -07:00
Westly Wright afe32d4be3
Merge pull request #3496 from westlywright/fp.global.roles
[Forwardport] Global Permission Bug
2019-10-25 08:45:47 -07:00
lvuch 9a7f337889 22180 2019-10-23 15:28:09 -07:00
Westly Wright 2c7e45c80d
Fix incorrect import of observer
update lock file
2019-10-23 13:20:05 -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
Westly Wright ef002be770
Merge pull request #3432 from westlywright/feature.feature.flags
Feature Flags UI
2019-10-23 11:49:03 -07:00
Cody Jackson 1fb9b5274a Enable '.' in answer variables
This enables '.' to be a valid character in answer varaibles.
So we can support sub.key as a key now.

This also resolves a double render issue that was ran into while
reproducing this issue.

rancher/rancher#23379
2019-10-17 13:04:14 -07:00
Westly Wright 5242a1fb7f
First run on Feature Flags ui
rancher/rancher#23184

Translation changes

Failing tests

cleanup
2019-10-17 10:15:04 -07:00
Westly Wright 1616b54aa4
remove other missing apis 2019-10-07 12:05:22 -07:00
Cody Jackson 6718c4886e Addressing a number of ember deprecations
- Moved from Ember.$() to importing jquery.
- Moved from fn().on() to on(fn())
- Moved from fn().observes() to observer(fn())

This got /g/clusters from 27 warnings to 5 warnings for me.
2019-10-03 10:53:36 -07:00
Westly Wright 7004f1e500
Merge pull request #3407 from codyrancher/cloud-credential
[2.3.2] Add # Node Templates column to cloud credentials
2019-10-02 14:01:04 -07:00
Cody Jackson 16fc847790 Fix linter warnings 2019-10-02 13:49:17 -07:00
Westly Wright d29e9f9d62
Allow edits to cloud credential name
rancher/rancher#23059
2019-10-01 10:00:04 -07:00
Westly Wright 6d21bc8093
Merge pull request #3389 from codyrancher/multi-cluster
Use current template version for app upgrades
2019-09-26 16:47:17 -07:00
Cody Jackson 65f0fc3c5b Use current template version for app upgrades
When upgrading a multi-cluster-application the template version was set
to the default version instead of the apps current version.

When a current version is present we now use it before using the
default.

rancher/rancher#23101
2019-09-26 12:18:26 -07:00
Cody Jackson 71a7fb8d2d Include Template/Revision in cluster table
We want to make it easier for someone that is managing multiple
clusters to see what template and template revision a cluster
is using. We also want to make it easy for a user to notice
that a cluster isn't using the latest revision.

To achieve this we added the template and revision to a column
in the clusters table to display both. We also indicate add
a warning badge beside a revision when the revision isn't
the latest.

rancher/rancher#22047
2019-09-26 09:20:45 -07:00
loganhz 822e14016e Fix google auth text 2019-09-24 10:54:59 +08:00
n313893254 d3d759c362 Fix Google Auth translation
https://github.com/rancher/rancher/issues/22887
2019-09-18 10:31:13 +08:00
lvuch 6f56afa3a6 recuce white space, remove unnecessary tooltips, move info tooltip to end after clipboard 2019-08-29 15:31:07 -07:00
lvuch 091dd3f6c8 google auth 2019-08-28 16:30:34 -07:00
n313893254 c4fbeb84fd Instructions to create "Service account" can be provided
https://github.com/rancher/rancher/issues/21389
2019-08-26 17:10:45 +08:00
Vincent Fiduccia 3b655b415f
Merge pull request #3282 from n313893254/22214
Fix google auth issue
2019-08-21 15:24:18 -07:00
n313893254 b3899f5de9 Fix google auth issue
https://github.com/rancher/rancher/issues/22214
2019-08-21 18:19:29 +08:00
loganhz 3881f5809a Do not pass hiden fields in catalog answers
https://github.com/rancher/rancher/issues/22265
2019-08-21 09:58:47 +08:00
loganhz 1c6f481fe4 Fix custom role issue 2019-08-17 14:59:56 +08:00
n313893254 39f0cf2bb1 Add Edit button for Google Auth
https://github.com/rancher/rancher/issues/22214
2019-08-16 16:40:24 +08:00
phillc 6f2edabebb [UI] Check Linode cloud credential against profile
- Account required a key scope

https://github.com/rancher/rancher/issues/22128
2019-08-14 15:50:00 -04:00
loganhz e8bc206f03 Able to supply no target projects on app upgrade
https://github.com/rancher/rancher/issues/22130
2019-08-14 12:24:25 +08:00
lvuch d043baa4f6 tooltips 2019-08-13 15:28:16 -07:00
n313893254 68b3c230c1 Fix Google Auth issue
https://github.com/rancher/rancher/issues/21404
2019-08-13 16:51:55 +08:00
Vincent Fiduccia 04d48c72a4
Merge pull request #3227 from loganhz/cc-error
Multi cluster app upgrade issue
2019-08-12 11:32:27 -07:00