Commit Graph

947 Commits

Author SHA1 Message Date
Westly Wright 3eda4eb71a
Change filtering for global cluster list and hide local
can't filter in the route as this is not any kind of property that will recompute. Instead create a new computed for all clusters that filters correctly.
2020-10-22 16:37:20 -07:00
Westly Wright b8ae49352b
hide local cluster from header & global clusters list if hide local true
if the new setting hide-local-cluster exists and is true we will hide the local cluster in the UI. this doesnt prevent api access.
additionally if the setting is true and a user attempts to navigate directly to a cluster or project route we will redirect them to the authenticated index route which redirects to global admin.

rancher/rancher#29325
2020-10-22 16:04:31 -07:00
Westly Wright 4d3528b826
remove required field from keycloak entityId
rancher/rancher#29553
2020-10-16 15:57:20 -07:00
Westly Wright 84e7b17464
expose new entity id on keycloak
rancher/rancher#29553
2020-10-16 08:44:30 -07:00
Westly Wright d3d78e87c8
Upgrade Ember & Dependencies for LTS support >3.12
There are changes required for the ember upgrade but additional changes
for individual libs are also present. Commit has been squashed, see
individual commits if needed.

There are a bunch of HBS changes as well. These are to deal with a
couple new rules and there impact is low. The button one has bitten us a
few time so this seemed great to add IMO.

update ember 3.12.4

ember 3.13

fixes for new eslint rules

ember 3.13->3.14

ember3.14->3.16

ember3.16->3.20

3.20 lint rules

yarn upgrade

update ember-optional-feature

update deps that can go to patch versions

upgrade major versions that are possible

update ansi_up

only reset term var if we're not destroying

prevents new ember 'same computation' error

update async

upgrade dot-object

new-catalog - add set to deal with new warning
marked-down - drop call into next to ensure its called at the correct time

upgrade ember-assign

update ember-cli-clipboard

remove unused & deprecated ember-cli-release

remove unused drag-drop lib

use set on tracked prop

update ember-flatpickr && cli-test-loader

upgrade ember-href-to

update filesaver

update liquid-fire and ipaddr

upgrade jsondiffpatch

upgrade marked

upgrade semver

update xterm

Update ember-basic-dropdown

the library has changed quite a bit and no longer provides an addon for the content-item where we handling the click event to close the dropdown,
thus click events must be added manually to the items being clicked to close the dropdown.

udpate dompurify

fix page header project styles

Bump ember api store, remove npm-run-all

Autofix button types from hbs linting

this change looks large but only adds `type` button to any buttons that dont have a type, which should help to reduce weird side effects

more hbs lint changes for no-negate-condition

turned off a couple rules that could be too much to test right now
2020-10-07 16:52:22 -07:00
Westly Wright b51b28f5cc
Move new restricted admin to login access roles
rancher/rancher#29315
2020-10-01 16:44:37 -07:00
Westly Wright 02e31e6d28
rework when to show multicluster app dep notice
rancher/rancher#29312
2020-10-01 15:34:39 -07:00
Westly Wright 8ab688edb9
Merge pull request #4166 from onpaws/full-width-template
[2.5] cosmetic: template dropdown full width consistent across all breakpoints
2020-09-29 09:54:16 -07:00
Westly Wright b1c66eed04
Dont use scope currentCluster at the global level 2020-09-28 10:42:03 -07:00
Westly Wright b95399afeb
Only show cluster explorer links if the cluster is ready
this prevents the user being sent to a non-existant page

rancher/rancher#29199
2020-09-28 10:18:36 -07:00
Westly Wright 0bfa0317de
more banner changes
rancher/rancher#29179
2020-09-27 11:29:46 -07:00
Westly Wright 1cdc2bf5d8
Merge pull request #4189 from deniseschannon/deprecation
Deprecation Messages and Restore/Backup to Rancher Backups
2020-09-27 10:56:03 -07:00
Denise Schannon c4ea789f79 Change from info to warning for deprecation banners. Updated istio isnt enabled banner to info to match monitoring. 2020-09-26 11:14:34 -07:00
Westly Wright 39a19a4160
actually use filtered feature flags 2020-09-26 09:34:41 -07:00
Westly Wright e1cd8d5e94
Add multi-cluster app and pipeline banner message
rancher/rancher#29179
2020-09-25 17:21:49 -07:00
Westly Wright 1b932d42a6
Filter the dashboard feature flags
rancher/rancher#28928
2020-09-25 14:55:32 -07:00
Vincent Fiduccia 47fe68ee7e
Dashboard link on cluster list 2020-09-24 00:40:22 -07:00
Pat 89cd866444 cosmetic: cut off template paths more likely to be fully visible 2020-09-13 16:04:58 +02:00
Westly Wright eeacedb81a
Update cluster selector markup for new design
rancher/rancher#28625
2020-08-31 13:41:36 -07:00
jesse.millan 473551b9cf
Verify OCI cloud credentials and fetch values dynamically from OCI. 2020-08-28 09:28:10 -07:00
Westly Wright 4925f54ef7
Expose node group versions on eks v2 node groups
adds both tooltip warning on cluster row and alert warning on cluster dashboard

version can only be updated on edit when cluster version is different from node group version
all other times we set the node group version to the clusters version

rancher/rancher#28335
2020-08-14 16:38:02 -07:00
Westly Wright 6806c60958
changed the wrong param provider->clusterProvider 2020-08-14 11:57:43 -07:00
Westly Wright 44ceaedaef
Update cluster model param provider
backend added there own provider param so this just renames the provider to clusterProvider

rancher/rancher#28355
2020-08-14 09:55:27 -07:00
Westly Wright 33040bd83b
select 'other' as default for register
rancher/rancher#28160
2020-07-30 09:23:17 -07:00
Westly Wright 95406e42d4
Tweak import launch ux
rancher/rancher#28007
2020-07-28 11:36:51 -07:00
Westly Wright 3d13864e53
Amazon EKS V2
error handler

wip - dev for aws cloud creds

wip - refactor aws login

wip - kms key

wip - encrypt secrets

wip - private access & vpcs

wip - translations and formatting

wip - more cleanup

remove unneeded code

wip - node groups

add ability to disable value label

fix double import, fix double negative disable add button and expose
addbuttonenabled

clean up public access and node groups

cleanup variable names and default config

eks regions

wip - eks v2 select

differentiate v1/2 amazon eks providers

clean up node groups, translations

unionize top errors

Consolidate aws util statics

WIP - Import/Cloud Creds

tweak cloud cred events for eks driver

WIP new import selector

drop unneeded variables eks import

kms keys cleanup

allow user to enter if the kms keys call fails

firefox styles

drop vpc selection and group subnets by vpcs

import cluster name input if allClusters fails to load from eks

make eks import a bit more dynamic

fix bug in driver eks for default subnet

more imported cleanup

eks v2 edit

eks v2 vendors

remove use cloud creds temp branchs

push current version to version choices if it doesnt exist

eks v2 rename cloudcred param

fix eks v2 versions

clean up for pr
2020-07-22 16:09:14 -07:00
Westly Wright 1bc15c2dd3
add additional warning about rancher outage to feature flags
rancher/rancher#27849
2020-07-15 14:56:43 -07:00
Westly Wright 2a382f570b
Merge pull request #4062 from westlywright/bug.mac.custom.answer
MC App Upgrade Error
2020-06-26 10:37:25 -07:00
Westly Wright c7eb2815d5
fetch nested custom answers correctly
add some error checking incase custom answer is missing

rancher/rancher#27416
2020-06-25 17:01:06 -07:00
Westly Wright 80984cd7e0
Expose runAsGroup option on PSPs
rancher/rancher#26827
2020-06-25 12:03:25 -07:00
Westly Wright f5c48884d3
Merge pull request #4046 from westlywright/bug.group.roles
Filter Global Role Bindings Creating User
2020-06-22 15:19:06 -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 350bace8af
add auth perms clarification banner
adds a warning banner when auth provider is local clarifying the
permissions and roles you are granting to the external account used
in the configuration process.

rancher/rancher#15037
2020-06-19 14:46:21 -07:00
loganhz a859b0547d Use external UI for Aliyun ACK cluster 2020-05-27 22:49:26 +08:00
Westly Wright 719a8ed506
Clear the cloud cred config after successful save
To ensure that the private keys are no longer present if the model is edited again
2020-05-20 16:28:52 -07:00
Westly Wright f830812d7e
Merge pull request #3931 from jlamillan/jlamillan/oke_driver_builtin
Add Oracle Container Engine (OKE) as a builtin custom cluster driver.
2020-04-22 17:38:55 -07:00
Jesse Millan de9d024dce
Add support for OCI cloud credentials and node template. 2020-04-22 12:30:25 -07:00
jesse.millan 84410805f2
Add Oracle Container Engine (OKE) as a builtin cluster driver. 2020-04-22 12:17:49 -07:00
Westly Wright 3f3715f3e3
make catalog app for longhorn use consistent name
so users can only launch one longhorn catalog app per cluster

rancher/rancher#26627
2020-04-15 11:02:31 -07:00
Westly Wright f4206fdaa9
fix role context bugs
rancher/rancher#26547

lint error
2020-04-08 12:27:07 -07:00
Westly Wright 1fe3f8dfe1
Flip checkbox for dynamic features 2020-03-14 07:58:11 -07:00
Westly Wright 25609b3555
Merge pull request #3838 from westlywright/restart.required.features
Add restart required text and column to features page
2020-03-13 11:36:19 -07:00
Westly Wright cb2e0b1e86
Add restart required text and column to features page
rancher/rancher#25421
2020-03-13 10:23:06 -07:00
Westly Wright b23bd4a878
Merge pull request #3804 from westlywright/revert.aws.key.change
Revert "Expose region on Amazon Cloud Credential"
2020-03-13 09:37:46 -07:00
Westly Wright 7bc7fc2c83
Stop propigation on clicking of the link inside the import cluster box
rancher/rancher#25981
2020-03-12 11:48:57 -07:00
Westly Wright 494b95487e
update verbiage for k3s cluster import 2020-03-11 11:19:51 -07:00
Westly Wright f2bc03da9a
revert k3sConfig version check always use gitVersion as source ver 2020-03-10 09:42:24 -07:00
Westly Wright f8ed8ccf76
Use built in descriptions for feature flags
rancher/rancher#25909
2020-03-09 16:50:54 -07:00
Westly Wright 67e70cc674
Revert "Expose region on Amazon Cloud Credential"
rancher/rancher#23060

This reverts commit 94d48efcdf.
2020-03-09 09:40:08 -07:00
Westly Wright d3bec56e3e
lint 2020-03-06 11:29:35 -07:00
Westly Wright f5949394b4
Update Shibboleth OpenLDAP config port on tls enable
rancher/rancher#25799
2020-03-06 11:24:04 -07:00
Westly Wright a823836245
Add helm3 logo to all the places 2020-03-06 09:25:43 -07:00
Westly Wright 87d88164ab
target the correct cofig for openldap search shibb
rancher/rancher#25775
2020-03-04 15:23:01 -07:00
Westly Wright 1f42be105c
Update k3sConfig shape based on new api design
rancher/rancher#25720
2020-03-04 10:21:51 -07:00
Cody Jackson 3bc2069b92 Adding id as a column to the roles page
Since we allow users to create roles with duplicate
names we're adding the id as a column to allow them
to differentiate between the two.

rancher/rancher#24409
2020-03-03 16:20:05 -07:00
Westly Wright 3365ad4e0b
remove nested group search from Shibboleth OpenLdap Config
rancher/rancher#25471
2020-03-02 15:11:45 -07:00
Westly Wright a9ba72a73a
Only show rotate action in tooltips and banners if exists on model
rancher/rancher#25563
2020-02-28 15:44:26 -07:00
Westly Wright b831adaea8
cluster row should use k3sConfig version if present 2020-02-27 11:13:38 -07:00
Westly Wright 816a2c23b5
Fix cancel in saml-auth to cancel editing
rancher/rancher#25477
2020-02-19 14:56:08 -07:00
Westly Wright 9f66033b7a
Handle missing rancherApiHost errors
Because the way the apiHost computed property is set we always have protocol in
the field. Added some checks to validate around this side effect.

rancher/rancher#25456
2020-02-19 13:24:16 -07:00
Westly Wright eb027e86f8
Additional checks around default/existing openLdapConfig Shibboleth
rancher/rancher#25459
2020-02-18 16:59:05 -07:00
Westly Wright 0847b6a774
overload expand function for shibbolethOpenLdapConfig
I've overloaded the expand function for shibboleth when using the open ldap
search. Upon open we'll pre-populate with all the data from teh schema, on close
we'll assume the user doesn't want this feature and delete the fields.

rancher/rancher#25459
2020-02-18 15:45:11 -07:00
Westly Wright 07121bc87b
Incorrect comparison
I mistyped and forgot to add the `!` comparitor when refactoring this logic in 61864ca793

rancher/rancher#25449
2020-02-18 11:01:21 -07:00
Westly Wright 61864ca793
Fix destructuring error
rancher/rancher#25426
2020-02-14 15:48:19 -07:00
Westly Wright 21c04fe108
Merge pull request #3721 from westlywright/shibboleth.ldap.auth
Shibboleth.ldap.auth
2020-02-13 09:18:59 -07:00
Westly Wright 530436f22d
move saml openldap servers to correct config
add server url to apiHost if apiHost is empty
2020-02-10 16:15:36 -07:00
Westly Wright 5b644d56f3
refactor openLdapConfig into sub config of shibboleth 2020-02-10 11:26:09 -07:00
Westly Wright 94d48efcdf
Expose region on Amazon Cloud Credential
rancher/rancher#23060
2020-02-06 09:56:29 -07:00
Westly Wright 59e5ea5027
remove debug code and change edit label on shibboleth config page 2020-02-05 15:38:46 -07:00
Westly Wright 43849eaca4
Add shibboleth auth with ldap search
rancher/rancher#24957
2020-02-05 15:11:24 -07:00
Westly Wright a3f1bc996b
Fix bugs that prevent cluster cr8 when editing yaml
Adds an empty name to the cluster model creation so it isn't missing if the user
opens yaml editor and knows they should input it
Removes incorrect next usage
Adds logic to handle overriding the name in name-desc when updateYaml is called
Updates form-name-description model observer to watch the two props it actually
cares about
Fixes bug in removeEmpty util which would remove excludedKeys during filter phase

rancher/rancher#24971
2020-02-05 15:03:13 -07:00
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 cbdd32f493
Add warning to global roles view when no default user role exists
rancher/rancher#24301
2019-12-03 11:46:16 -07:00
Westly Wright fcf05c3681
remove group link that doesn't work 2019-12-02 14:25:51 -07:00
Westly Wright fdac35182b
fix broken link to accounts 2019-12-02 14:17:29 -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 7f5debb985
Allow clone of global roles 2019-11-18 12:11:01 -07:00
Westly Wright 1ac41a98ce
Allow users to create global roles
rancher/rancher#23453
2019-11-18 10:45:14 -07:00
Westly Wright 1feaf4c1b5
Merge pull request #3584 from westlywright/mc.app.display.issues
Mc.app.display.issues
2019-11-15 09:44:13 -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 3d4b81e2d6
Merge pull request #3577 from hubert-he/master
fix ui error message never pop up
2019-11-14 09:51:38 -07:00
Westly Wright 87cd611652
Merge pull request #3513 from westlywright/fp.cr8.template.from.cluster
[Forwardport] Convert Existing Cluster to RKE Cluster Template
2019-11-13 15:25:36 -07:00
Westly Wright 62ef5bc39d
when upgrading mc app ensure we are using a fresh copy of mc app
rancher/rancher#24057
2019-11-13 13:08:03 -07:00
zhenhua he 106de7be6b Merge branch 'master' of github.com:hubert-he/ui 2019-11-13 14:47:17 +08:00
zhenhua he 3961b39020 error message never pop up when add user in global member page 2019-11-13 14:29:54 +08:00
Westly Wright 8c9789f82f
check answers required fields for mc app
rancher/rancher#24057
2019-11-12 16:25:14 -07:00
Westly Wright 07c77cc41d
rework query params for edit cluster and template revisions 2019-11-05 16:26:02 -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
Westly Wright 5bc4737743
Fix sorting on cloud credentials page
While I was cleaning this up I found that groupByRef in cc this case did nothing
so I removed it. This exposed a bug in the sortable-table code where groupByRef
was coming back null but when we tried to get it, using embers getter, it would
fail because we passed a null value instead of an empty string.

Additionally I found that when using presorts we were continuously pushing into
the sort array on the component, which never gets reset, so I decided to clone
the array. We rarely use preSorts so it was never caught.

Additionally we never add/remove the descending key to our presorts so I've
added that. Without these when we pass the sort to embers sort we'd never
correctly sort any presorts based the descending flag.

rancher/rancher#23828
2019-11-01 09:14:20 -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