Commit Graph

6242 Commits

Author SHA1 Message Date
Rohit Yadav df8625bda3 metrics: make karet larger
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-10-01 22:32:48 +05:30
Rohit Yadav 6b05fb9fd2 metrics: cluster metrics view implement
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-10-01 22:32:48 +05:30
Rohit Yadav 69b2262fe2 metrics: add support for collapsible column in listView widget
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-10-01 22:32:47 +05:30
Rohit Yadav fa32e60c0a metrics: don't resize collapsible column in datatable widget
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-10-01 22:32:47 +05:30
Rohit Yadav 7f790af2c2 metrics: fix css
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-10-01 22:32:47 +05:30
Rohit Yadav 2fddb9fde5 metrics: add labels for cluster metrics view
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-10-01 22:32:46 +05:30
Rohit Yadav 4a130be174 metrics: add groupable column support to listview table
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-10-01 22:32:46 +05:30
Rohit Yadav c2b1393f2d metrics: make table widget horizontly scrollable, keep tbody/thead in same table
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-10-01 22:32:46 +05:30
Rohit Yadav 1bd7ef6b73 metrics: show metrics table if it shoots off horizontal x axis
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-10-01 22:32:45 +05:30
Rohit Yadav 5c37238042 metrics: cluster view table model/api wip
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-10-01 22:32:45 +05:30
Rohit Yadav 218468b8c1 metrics: work in progress cluster resource metrics view
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-10-01 22:32:45 +05:30
Rohit Yadav 4643e5609d metrics: implement a general refresh metrics framework
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-10-01 22:32:44 +05:30
Rohit Yadav c0db096c79 metrics: implement cluster table header
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-10-01 22:32:44 +05:30
Rohit Yadav 4175c25229 metrics: implement horizontal scrollbar for metrics tables
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-10-01 22:32:44 +05:30
Rohit Yadav 992693b67e metrics: work in progress list views
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-10-01 22:32:44 +05:30
Rohit Yadav 62bccb08d4 metrics: fix button string, as it causes other elements to spill out
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-10-01 22:32:43 +05:30
Rohit Yadav e88249829b metrics: render resource specific listViews
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-10-01 22:32:43 +05:30
Rohit Yadav e8f9920211 metrics: add metrics listView module, include js files in index.jsp
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-10-01 22:32:43 +05:30
Rohit Yadav 5a1662500f metrics: add view metrics button across resources
resouces: zones, clusters, hosts, primary storage, vms and volumes

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-10-01 22:32:42 +05:30
Rohit Yadav b8b28568ae ui/scripts/system: work in progress zone metrics view button
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-10-01 22:32:42 +05:30
Rohit Yadav 11f10fe664 ui/widgets: enable sortability of the data-table
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-10-01 22:32:41 +05:30
Rohit Yadav 5fd0a6f289 ui: add view metrics label
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-10-01 22:32:41 +05:30
Rohit Yadav 069e3f92ad CLOUDSTACK-8766: Fix infinite scrolling pagination for zonal iso/template listing
Due to aggregation of templates and isos on the UI/client side, it could result
that for each page we could end up having lesser templates/isos listed to have
the scroll shown that triggers infinite scrolling. In theory, there
is still a chance if there are several zones with the same template being listed
resulting in only one aggregated template which could cause the scroll to not
get shown; but in practice I believe this fix should work for most users.

Page size set based on experimental data:
https://github.com/apache/cloudstack/pull/751#issuecomment-135661968

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-08-28 13:06:13 +05:30
Rohit Yadav 26700fbe76 CLOUDSTACK-8766: Fix infinite scrolling pagination for zonal template listing
Uses listViewDataProvider to implement pagination for listing templates and ISOs
in the zones tab. Dedupes isos and templates in the list views.

This closes #739

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-08-26 12:41:31 +05:30
Milamber 9866e9707c Add missing localization for some labels in Web UI - on the zone configuration wizard for the "Next" button - on templates, Shared, extratable and Dynamically Scalable - Improve some French translations ("Téléverser" for "Upload") - update French messages properties from transifex (4.5 branch)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>

This closes #687
2015-08-14 14:11:11 +05:30
Rohit Yadav 1065661cd5 CLOUDSTACK-8701: Allow SAML users to switch accounts
SAML authorized accounts might be across various domains, this allows for
switching of accounts only in case of SAML authenticated user accounts across
other accounts with the same SAML uid/username.

Moves the previous switch account logic to its own ui-custom module

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-08-14 11:55:14 +05:30
Rohit Yadav 17366f2b18 CLOUDSTACK-8301: Enable configuring local storage use for system VMs at zone level
Backported from #263 for 4.5 branch, original bugfix by @koushik-das et al

More information on:
https://issues.apache.org/jira/browse/CLOUDSTACK-8301
https://cwiki.apache.org/confluence/display/CLOUDSTACK/Enable+configuring+local+storage+use+for+system+VMs+at+zone+level

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>

This closes #661
2015-08-08 22:41:52 +05:30
Boris Schrijver 56522fda67 CLOUDSTACK-8642: SSO Method not allowed bug fix. Due to CLOUDSTACK-8505 and commit 1c81b241e7
Signed-off-by: Daan Hoogland <daan@onecht.net>

This closes #598

(cherry picked from commit b1e5906923)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-07-16 21:44:58 +05:30
Rohit Yadav c7a6623cac CLOUDSTACK-8457: SAML UI Dialog fixes to use local $form
This uses local selector to access the DOM elements, the previous commit
would find a global element which is not in the context and fail changing the
element in the opened dialog.

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>

This closes #583

(cherry picked from commit 47d2d07eb9)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-07-15 18:37:27 +05:30
Rohit Yadav 7d11c7bc70 CLOUDSTACK-8457: SAML UI enhancements
Add option to authorize SAML SSO for user when adding user. Appends a domain to
user/account name if global setting is enabled, useful in case of multiple IDP
server. By default the setting is set to false (keep as it is).

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>

This closes #575
2015-07-14 10:20:00 +05:30
Rohit Yadav 12edad3e20 CLOUDSTACK-8622: Reinstate working sessions in browser
- Login is based on sessionkey HttpOnly Cookie
- ApiServlet does login verification using sessionKey from both the request cookies
  and the API parameters. In both cases, if either or both are passed they should
  match the sessionKey stored in the current session of the HttpRequest
- UI: it no longer needs to read or set sessionkey cookie
- UI: it no longer needs to return g_sessionKey value in the API requests, though
  to support a sso mechanism g_sessionKey is still passed in the API is not null
- Secure jsessionid cookie is set to be HttpOnly and Secure
- SAML login should also set HttpOnly cookie before redirecting to UI
- SAML: listIdps & getSPMetadata APIs are readonly now, won't log out a logged in user

Performed tests (login, saml login if applicable, page refreshes, opening
multiple tabs, logout) with following combinations:
- SAML disabled, normal auth as admin, domain-admin and user
- SAML enabled, normal auth as admin, domain-admin and user; and saml sso as
  admin, domain-admin and user

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>

This closes #574
This closes #308
2015-07-10 17:27:34 +05:30
Rohit Yadav 4de4a0f3dd CLOUDSTACK-8621: Allow UI plugins to be shown on navigation bar
Introduces a boolean option in UI plugins setting it to 'true' would display
the UI plugin on the left navigation bar.

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>

This closes #563

(cherry picked from commit 7c206c30a5)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-07-09 15:26:00 +05:30
Rohit Yadav 20ce346f3a CLOUDSTACK-8457: SAML auth plugin improvements for production usage
* Move config options to SAML plugin
  This moves all configuration options from Config.java to SAML auth manager. This
  allows us to use the config framework.
* Make SAML2UserAuthenticator validate SAML token in httprequest
* Make logout API use ConfigKeys defined in saml auth manager
* Before doing SAML auth, cleanup local states and cookies
* Fix configurations in 4.5.1 to 4.5.2 upgrade path
* Fail if idp has no sso URL defined
* Add a default set of SAML SP cert for testing purposes
  Now to enable and use saml, one needs to do a deploydb-saml after doing a deploydb
* UI remembers login selections, IDP server

- CLOUDSTACK-8458:
    * On UI show dropdown list of discovered IdPs
    * Support SAML Federation, where there may be more than one IdP
        - New datastructure to hold metadata of SP or IdP
        - Recursive processing of IdP metadata
        - Fix login/logout APIs to get new interface and metadata data structure
        - Add org/contact information to metadata
        - Add new API: listIdps that returns list of all discovered IdPs
        - Refactor and cleanup code and tests

- CLOUDSTACK-8459:
    * Add HTTP-POST binding to SP metadata
    * Authn requests must use either HTTP POST/Artifact binding

- CLOUDSTACK-8461:
    * Use unspecified x509 cert as a fallback encryption/signing key
      In case a IDP's metadata does not clearly say if their certificates need to be
      used as signing or encryption and we don't find that, fallback to use the
      unspecified key itself.

- CLOUDSTACK-8462:
    * SAML Auth plugin should not do authorization
      This removes logic to create user if they don't exist. This strictly now
      assumes that users have been already created/imported/authorized by admins.
      As per SAML v2.0 spec section 4.1.2, the SP provider should create authn requests using
      either HTTP POST or HTTP Artifact binding to transfer the message through a
      user agent (browser in our case). The use of HTTP Redirect was one of the reasons
      why this plugin failed to work for some IdP servers that enforce this.
    * Add new User Source
      By reusing the source field, we can find if a user has been SAML enabled or not.
      The limitation is that, once say a user is imported by LDAP and then SAML
      enabled - they won't be able to use LDAP for authentication
    * UI should allow users to pass in domain they want to log into, though it is
      optional and needed only when a user has accounts across domains with same
      username and authorized IDP server
    * SAML users need to be authorized before they can authenticate
        - New column entity to track saml entity id for a user
        - Reusing source column to check if user is saml enabled or not
        - Add new source types, saml2 and saml2disabled
        - New table saml_token to solve the issue of multiple users across domains and
          to enforce security by tracking authn token and checking the samlresponse for
          the tokens
        - Implement API: authorizeSamlSso to enable/disable saml authentication for a
          user
        - Stubs to implement saml token flushing/expiry

- CLOUDSTACK-8463:
    * Use username attribute specified in global setting
      Use username attribute defined by admin from a global setting
      In case of encrypted assertion/attributes:
      - Decrypt them
      - Check signature if provided to check authenticity of message using IdP's
        public key and SP's private key
      - Loop through attributes to find the username

- CLOUDSTACK-8538:
    * Add new global config for SAML request sig algorithm

- CLOUDSTACK-8539:
    * Add metadata refresh timer task and token expiring
        - Fix domain path and save it to saml_tokens
        - Expire hour old saml tokens
        - Refresh metadata based on timer task
        - Fix unit tests

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>

This closes #489
2015-06-29 12:25:02 +02:00
Vadim Kimlaychuk f8e1ff12ab CLOUDSTACK-8231: Fixed UI empty drop-down list for LB rules
This closes #302

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
(cherry picked from commit 94f1ebb60a)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-05-29 21:19:26 +02:00
Rafael da Fonseca ddd0328c8c Fixes breadcrumbs problem described in CLOUDSTACK-7907
Signed-off-by: Rajani Karuturi <rajanikaruturi@gmail.com>

This closes #282
2015-05-22 10:36:09 +05:30
Vadim Kimlaychuk 79ddd74340 CLOUDSTACK-8231: Fixed UI empty drop-down list for LB rules
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>

This closes #271

(cherry picked from commit bede3a87ad)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-05-20 21:30:02 +01:00
Rohit Yadav 9c995f1cab rat: add license header to error.jsp
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-05-18 23:21:52 +01:00
Rohit Yadav 112cecc2d4 ui: add custom error handling page
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>

This closes #256
2015-05-18 23:11:11 +01:00
Rohit Yadav bc636de122 engine: add upgrade path from 4.5.1 to 4.5.2
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-05-18 22:09:36 +01:00
Erik Weber 877c07e126 CLOUDSTACK-1667: Make a better description of the extractable flag
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>

This closes #245

(cherry picked from commit ab1df169f2)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-05-12 12:52:27 +02:00
Laszlo Hornyak 4ec24ad468 CSS for the hungarian localization
Signed-off-by: Laszlo Hornyak <laszlo.hornyak@gmail.com>
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-05-08 17:26:36 +02:00
Laszlo Hornyak 7d8151e5c4 added hungarian to the list of localized languages
Signed-off-by: Laszlo Hornyak <laszlo.hornyak@gmail.com>
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-05-08 17:26:36 +02:00
Rohit Yadav cb3d03c7b0 ui: use cloudstack logo as favicon
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
(cherry picked from commit ba9c4cfa81)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-05-03 15:25:44 +02:00
Laszlo Hornyak a686d2e8b3 added favicon
This closes #225

Signed-off-by: Laszlo Hornyak <laszlo.hornyak@gmail.com>
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
(cherry picked from commit 0347f733dd)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-05-03 15:25:34 +02:00
Remi Bergsma 9a8ee5664f CLOUDSTACK-6543 Sort domain lists in UI
As recently discussed on the dev list:
This sorts the domain lists based on their path.
Especially handy when having a lot of domains,
like in a public cloud.

Cherry-picked to 4.5 branch since commit exists in 4.4 and master branch.

(cherry picked from commit befa28251d)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-04-17 15:18:16 +02:00
Rohit Yadav 1ef585f9e6 CLOUDSTACK-8364: don't async poll for deleteVolume which is not an async API
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-04-09 12:41:03 +05:30
Rohit Yadav 6f2facfa39 CLOUDSTACK-8231: use hardcoded list of LB algorithms as backup
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-03-27 09:28:16 +05:30
Rohit Yadav 221e429b45 CLOUDSTACK-7915: as a backup use hardcoded LB algorithms in UI
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-03-26 12:45:30 +05:30
Rohit Yadav ca1e5c1690 ui: list all networks
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-03-26 12:45:16 +05:30
vetrivelc fc9a4f66ca CLOUDSTACK-8094: Fixed incorrect label issue.
(cherry picked from commit 4e1284147e)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>

Conflicts:
	ui/dictionary2.jsp
2015-03-23 16:44:06 +05:30